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

The following examples show how to use android.os.Parcel#readFloat() . These examples are extracted from open source projects. 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
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
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 3
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 4
Source Project: DUtil   File: DownloadData.java    License: 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 Project: RxTools-master   File: RxSeekBar.java    License: 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 6
Source Project: Lay-s   File: ProgressWheel.java    License: 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 7
Source Project: FilterMenu   File: FilterMenuLayout.java    License: 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 8
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 9
Source Project: libcommon   File: VideoConfig.java    License: 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 10
Source Project: Noyze   File: PlaybackInfo.java    License: 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 Project: OpenFit   File: SleepData.java    License: 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 12
Source Project: UpcomingMoviesMVP   File: Movie.java    License: 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 13
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 14
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 15
Source Project: spline   File: Layer.java    License: 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 16
private MarkerInfo(Parcel in) {
    mHue = in.readFloat();
}
 
Example 17
Source Project: Lassi-Android   File: CropImageOptions.java    License: 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 18
Source Project: ticdesign   File: AppBarLayout.java    License: 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 19
private SavedState( Parcel in ){
    super( in );
    this.margin = in.readFloat();
    this.currentIndex = in.readInt();
    this.position = in.readInt();
}
 
Example 20
State(Parcel parcel) {
    this.verticalOffset = parcel.readInt();
    this.scrollingDiff = parcel.readInt();
    this.translationY = parcel.readFloat();
    this.elevation = parcel.readFloat();
}