下面列出了android.os.Parcel#readFloat ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
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;
}
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;
}
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();
}
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();
}
private SavedState(Parcel in) {
super(in);
minValue = in.readFloat();
maxValue = in.readFloat();
reserveValue = in.readFloat();
cellsCount = in.readInt();
currSelectedMin = in.readFloat();
currSelectedMax = in.readFloat();
}
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;
}
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();
}
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;
}
/**
* 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;
}
public PlaybackInfo(Parcel in) {
mState = in.readInt();
mStateChangeTimeMs = in.readLong();
mCurrentPosMs = in.readLong();
mSpeed = in.readFloat();
mTransportControlFlags = in.readInt();
mRemotePackageName = in.readString();
}
public SleepData(Parcel source) {
startTimeStamp = source.readLong();
endTimeStamp = source.readLong();
efficiency = source.readFloat();
index = source.readInt();
len = source.readInt();
}
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();
}
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;
}
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();
}
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();
}
private MarkerInfo(Parcel in) {
mHue = in.readFloat();
}
/**
* 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();
}
public SavedState(Parcel source, ClassLoader loader) {
super(source);
firstVisibleChildIndex = source.readInt();
firstVisibileChildPercentageShown = source.readFloat();
firstVisibileChildAtMinimumHeight = source.readByte() != 0;
}
private SavedState( Parcel in ){
super( in );
this.margin = in.readFloat();
this.currentIndex = in.readInt();
this.position = in.readInt();
}
State(Parcel parcel) {
this.verticalOffset = parcel.readInt();
this.scrollingDiff = parcel.readInt();
this.translationY = parcel.readFloat();
this.elevation = parcel.readFloat();
}