Java Code Examples for android.os.Parcel#readFloat()

The following examples show how to use android.os.Parcel#readFloat() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ContinuousGlucoseMeasurementResponse.java    From Android-BLE-Library with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
private ContinuousGlucoseMeasurementResponse(final Parcel in) {
	super(in);
	glucoseConcentration = in.readFloat();
	if (in.readByte() == 0) {
		trend = null;
	} else {
		trend = in.readFloat();
	}
	if (in.readByte() == 0) {
		quality = null;
	} else {
		quality = in.readFloat();
	}
	if (in.readByte() == 0) {
		status = null;
	} else {
		final int warningStatus = in.readInt();
		final int calibrationTempStatus = in.readInt();
		final int sensorStatus = in.readInt();
		status = new CGMStatus(warningStatus, calibrationTempStatus, sensorStatus);
	}
	timeOffset = in.readInt();
	secured = in.readByte() != 0;
	crcValid = in.readByte() != 0;
}
 
Example 2
Source File: CGMSpecificOpsControlPointResponse.java    From Android-BLE-Library with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
private CGMSpecificOpsControlPointResponse(final Parcel in) {
	super(in);
	operationCompleted = in.readByte() != 0;
	secured = in.readByte() != 0;
	crcValid = in.readByte() != 0;
	requestCode = in.readInt();
	errorCode = in.readInt();
	glucoseCommunicationInterval = in.readInt();
	glucoseConcentrationOfCalibration = in.readFloat();
	calibrationTime = in.readInt();
	nextCalibrationTime = in.readInt();
	type = in.readInt();
	sampleLocation = in.readInt();
	calibrationDataRecordNumber = in.readInt();
	if (in.readByte() == 0) {
		calibrationStatus = null;
	} else {
		calibrationStatus = new CGMCalibrationStatus(in.readInt());
	}
	alertLevel = in.readFloat();
}
 
Example 3
Source File: BaseRoundCornerProgressBar.java    From RoundCornerProgressBar with Apache License 2.0 6 votes vote down vote up
SavedState(Parcel in, ClassLoader loader) {
    super(in, loader);
    this.max = in.readFloat();
    this.progress = in.readFloat();
    this.secondaryProgress = in.readFloat();

    this.radius = in.readInt();
    this.padding = in.readInt();

    this.colorBackground = in.readInt();
    this.colorProgress = in.readInt();
    this.colorSecondaryProgress = in.readInt();
    this.colorProgressArray = new int[in.readInt()];
    in.readIntArray(this.colorProgressArray);
    this.colorSecondaryProgressArray = new int[in.readInt()];
    in.readIntArray(this.colorSecondaryProgressArray);

    this.isReverse = in.readByte() != 0;
}
 
Example 4
Source File: DownloadData.java    From DUtil with Apache License 2.0 5 votes vote down vote up
protected DownloadData(Parcel in) {
    this.url = in.readString();
    this.path = in.readString();
    this.name = in.readString();
    this.currentLength = in.readInt();
    this.totalLength = in.readInt();
    this.percentage = in.readFloat();
    this.status = in.readInt();
    this.childTaskCount = in.readInt();
    this.date = in.readLong();
    this.lastModify = in.readString();
}
 
Example 5
Source File: Layer.java    From spline with Apache License 2.0 5 votes vote down vote up
public Layer(Parcel in) {
    id = UUID.fromString(in.readString());
    name = in.readString();
    selected = in.readByte() != 0;
    visible = in.readByte() != 0;
    opacity = in.readInt();
    x = in.readFloat();
    y = in.readFloat();
    width = in.readFloat();
    height = in.readFloat();
    initTransformVertices();
}
 
Example 6
Source File: SuggestionSpan.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
public SuggestionSpan(Parcel src) {
    mSuggestions = src.readStringArray();
    mFlags = src.readInt();
    mLocaleStringForCompatibility = src.readString();
    mLanguageTag = src.readString();
    mNotificationTargetClassName = src.readString();
    mNotificationTargetPackageName = src.readString();
    mHashCode = src.readInt();
    mEasyCorrectUnderlineColor = src.readInt();
    mEasyCorrectUnderlineThickness = src.readFloat();
    mMisspelledUnderlineColor = src.readInt();
    mMisspelledUnderlineThickness = src.readFloat();
    mAutoCorrectionUnderlineColor = src.readInt();
    mAutoCorrectionUnderlineThickness = src.readFloat();
}
 
Example 7
Source File: AnimatedRoundCornerProgressBar.java    From RoundCornerProgressBar with Apache License 2.0 5 votes vote down vote up
SavedState(Parcel in, ClassLoader loader) {
    super(in, loader);
    this.isProgressAnimating = in.readByte() != 0;
    this.isSecondaryProgressAnimating = in.readByte() != 0;
    this.lastProgress = in.readFloat();
    this.lastSecondaryProgress = in.readFloat();
    this.animationSpeedScale = in.readFloat();
    this.isAnimationEnabled = in.readByte() != 0;
}
 
Example 8
Source File: Movie.java    From UpcomingMoviesMVP with Apache License 2.0 5 votes vote down vote up
protected Movie(Parcel in) {
  id = in.readInt();
  title = in.readString();
  posterImage = (Image) in.readValue(Image.class.getClassLoader());
  backdropImage = (Image) in.readValue(Image.class.getClassLoader());
  long tmpReleaseDate = in.readLong();
  releaseDate = tmpReleaseDate != -1 ? new Date(tmpReleaseDate) : null;
  adult = in.readByte() != 0x00;
  voteAverage = in.readByte() == 0x00 ? null : in.readDouble();
  voteCount = in.readFloat();
  popularity = in.readDouble();
  overview = in.readString();
}
 
Example 9
Source File: SleepData.java    From OpenFit with MIT License 5 votes vote down vote up
public SleepData(Parcel source) {
    startTimeStamp = source.readLong();
    endTimeStamp = source.readLong();
    efficiency = source.readFloat();
    index = source.readInt();
    len = source.readInt();
}
 
Example 10
Source File: PlaybackInfo.java    From Noyze with Apache License 2.0 5 votes vote down vote up
public PlaybackInfo(Parcel in) {
    mState = in.readInt();
    mStateChangeTimeMs = in.readLong();
    mCurrentPosMs = in.readLong();
    mSpeed = in.readFloat();
    mTransportControlFlags = in.readInt();
    mRemotePackageName = in.readString();
}
 
Example 11
Source File: VideoConfig.java    From libcommon with Apache License 2.0 5 votes vote down vote up
/**
 * Parcelable用のコンストラクタ
 * @param in
 */
protected VideoConfig(final Parcel in) {
	BPP = in.readFloat();
	mIframeIntervalsS = in.readFloat();
	mNumFramesBetweenIframeOn30fps = in.readFloat();
	mCaptureFps = in.readInt();
	mMaxDuration = in.readLong();
	mUseMediaMuxer = in.readByte() != 0;
	mUseSurfaceCapture = in.readByte() != 0;
}
 
Example 12
Source File: Location.java    From GeometricWeather with GNU Lesser General Public License v3.0 5 votes vote down vote up
protected Location(Parcel in) {
    this.cityId = in.readString();
    this.latitude = in.readFloat();
    this.longitude = in.readFloat();
    this.timeZone = (TimeZone) in.readSerializable();
    this.country = in.readString();
    this.province = in.readString();
    this.city = in.readString();
    this.district = in.readString();
    int tmpWeatherSource = in.readInt();
    this.weatherSource = tmpWeatherSource == -1 ? null : WeatherSource.values()[tmpWeatherSource];
    this.currentPosition = in.readByte() != 0;
    this.residentPosition = in.readByte() != 0;
    this.china = in.readByte() != 0;
}
 
Example 13
Source File: FilterMenuLayout.java    From FilterMenu with Apache License 2.0 5 votes vote down vote up
private SavedState(Parcel in) {
    super(in);
    this.expandProgress = in.readFloat();
    this.primaryColor = in.readInt();
    this.primaryDarkColor = in.readInt();
    this.collapsedRadius = in.readInt();
    this.expandedRadius = in.readInt();
    this.state = in.readInt();
}
 
Example 14
Source File: ProgressWheel.java    From Lay-s with MIT License 5 votes vote down vote up
private WheelSavedState(Parcel in) {
    super(in);
    this.mProgress = in.readFloat();
    this.mTargetProgress = in.readFloat();
    this.isSpinning = in.readByte() != 0;
    this.spinSpeed = in.readFloat();
    this.barWidth = in.readInt();
    this.barColor = in.readInt();
    this.rimWidth = in.readInt();
    this.rimColor = in.readInt();
    this.circleRadius = in.readInt();
    this.linearProgress = in.readByte() != 0;
    this.fillRadius = in.readByte() != 0;
}
 
Example 15
Source File: RxSeekBar.java    From RxTools-master with Apache License 2.0 5 votes vote down vote up
private SavedState(Parcel in) {
    super(in);
    minValue = in.readFloat();
    maxValue = in.readFloat();
    reserveValue = in.readFloat();
    cellsCount = in.readInt();
    currSelectedMin = in.readFloat();
    currSelectedMax = in.readFloat();
}
 
Example 16
Source File: AppBarLayout.java    From ticdesign with Apache License 2.0 4 votes vote down vote up
public SavedState(Parcel source, ClassLoader loader) {
    super(source);
    firstVisibleChildIndex = source.readInt();
    firstVisibileChildPercentageShown = source.readFloat();
    firstVisibileChildAtMinimumHeight = source.readByte() != 0;
}
 
Example 17
Source File: MarginStateButton.java    From recycler-view-margin-decoration with Apache License 2.0 4 votes vote down vote up
private SavedState( Parcel in ){
    super( in );
    this.margin = in.readFloat();
    this.currentIndex = in.readInt();
    this.position = in.readInt();
}
 
Example 18
Source File: CropImageOptions.java    From Lassi-Android with MIT License 4 votes vote down vote up
/**
 * Create object from parcel.
 */
protected CropImageOptions(Parcel in) {
    cropShape = CropImageView.CropShape.values()[in.readInt()];
    snapRadius = in.readFloat();
    touchRadius = in.readFloat();
    guidelines = CropImageView.Guidelines.values()[in.readInt()];
    scaleType = CropImageView.ScaleType.values()[in.readInt()];
    showCropOverlay = in.readByte() != 0;
    showProgressBar = in.readByte() != 0;
    autoZoomEnabled = in.readByte() != 0;
    multiTouchEnabled = in.readByte() != 0;
    maxZoom = in.readInt();
    initialCropWindowPaddingRatio = in.readFloat();
    fixAspectRatio = in.readByte() != 0;
    aspectRatioX = in.readInt();
    aspectRatioY = in.readInt();
    borderLineThickness = in.readFloat();
    borderLineColor = in.readInt();
    borderCornerThickness = in.readFloat();
    borderCornerOffset = in.readFloat();
    borderCornerLength = in.readFloat();
    borderCornerColor = in.readInt();
    guidelinesThickness = in.readFloat();
    guidelinesColor = in.readInt();
    backgroundColor = in.readInt();
    minCropWindowWidth = in.readInt();
    minCropWindowHeight = in.readInt();
    minCropResultWidth = in.readInt();
    minCropResultHeight = in.readInt();
    maxCropResultWidth = in.readInt();
    maxCropResultHeight = in.readInt();
    activityTitle = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
    activityMenuIconColor = in.readInt();
    outputUri = in.readParcelable(Uri.class.getClassLoader());
    outputCompressFormat = Bitmap.CompressFormat.valueOf(in.readString());
    outputCompressQuality = in.readInt();
    outputRequestWidth = in.readInt();
    outputRequestHeight = in.readInt();
    outputRequestSizeOptions = CropImageView.RequestSizeOptions.values()[in.readInt()];
    noOutputImage = in.readByte() != 0;
    initialCropWindowRectangle = in.readParcelable(Rect.class.getClassLoader());
    initialRotation = in.readInt();
    allowRotation = in.readByte() != 0;
    allowFlipping = in.readByte() != 0;
    allowCounterRotation = in.readByte() != 0;
    rotationDegrees = in.readInt();
    flipHorizontally = in.readByte() != 0;
    flipVertically = in.readByte() != 0;
    cropMenuCropButtonTitle = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
    cropMenuCropButtonIcon = in.readInt();
}
 
Example 19
Source File: SaveStateDemoActivity.java    From android-samples with Apache License 2.0 4 votes vote down vote up
private MarkerInfo(Parcel in) {
    mHue = in.readFloat();
}
 
Example 20
Source File: OnScrollerGoDownListener.java    From FlowGeek with GNU General Public License v2.0 4 votes vote down vote up
State(Parcel parcel) {
    this.verticalOffset = parcel.readInt();
    this.scrollingDiff = parcel.readInt();
    this.translationY = parcel.readFloat();
    this.elevation = parcel.readFloat();
}