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

The following are Jave code examples for showing how to use readFloat() of the android.os.Parcel class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: data-mediator   File: HistoryData.java   View Source Code Vote up 6 votes
protected HistoryData(Parcel in) {
    this.age = in.readInt();
    this.id = in.readLong();
    this.testShort = (short) in.readInt();
    this.testByte = in.readByte();
    this.testBoolean = in.readByte() != 0;
    this.testFloat = in.readFloat();
    this.testDouble = in.readDouble();
    this.testChar = (char) in.readInt();
    this.testLONG = (Long) in.readValue(Long.class.getClassLoader());
    this.testDOUBLE = (Double) in.readValue(Double.class.getClassLoader());
    this.testCharacter = (Character) in.readSerializable();
    this.testBOOLEAN = (Boolean) in.readValue(Boolean.class.getClassLoader());
    this.testSHORT = (Short) in.readValue(Short.class.getClassLoader());
    this.name = in.readString();
    this.data = in.readParcelable(ResultData.class.getClassLoader());
    this.datas = in.createTypedArrayList(ResultData.CREATOR);
    this.testArrayResultData = in.createTypedArray(ResultData.CREATOR);
    this.testArrayInt = in.createIntArray();
    this.testArrayInteger = (Integer[]) in.readArray(Integer[].class.getClassLoader());
}
 
Example 2
Project: boohee_v5.6   File: FoodRecord.java   View Source Code Vote up 6 votes
protected FoodRecord(Parcel in) {
    boolean z = true;
    this.id = in.readInt();
    this.food_name = in.readString();
    this.record_on = in.readString();
    this.code = in.readString();
    this.time_type = in.readInt();
    this.amount = in.readFloat();
    this.calory = in.readFloat();
    this.food_unit_id = in.readInt();
    this.unit_name = in.readString();
    this.health_light = in.readInt();
    this.thumb_img_url = in.readString();
    if (in.readByte() == (byte) 0) {
        z = false;
    }
    this.isChecked = z;
}
 
Example 3
Project: airgram   File: MediaFormat.java   View Source Code Vote up 6 votes
MediaFormat(Parcel in) {
  trackId = in.readString();
  mimeType = in.readString();
  bitrate = in.readInt();
  maxInputSize = in.readInt();
  durationUs = in.readLong();
  width = in.readInt();
  height = in.readInt();
  rotationDegrees = in.readInt();
  pixelWidthHeightRatio = in.readFloat();
  channelCount = in.readInt();
  sampleRate = in.readInt();
  language = in.readString();
  subsampleOffsetUs = in.readLong();
  initializationData = new ArrayList<>();
  in.readList(initializationData, null);
  adaptive = in.readInt() == 1;
  maxWidth = in.readInt();
  maxHeight = in.readInt();
  pcmEncoding = in.readInt();
  encoderDelay = in.readInt();
  encoderPadding = in.readInt();
}
 
Example 4
Project: mapbox-events-android   File: MapLoadEvent.java   View Source Code Vote up 6 votes
private MapLoadEvent(Parcel in) {
  event = in.readString();
  created = in.readString();
  userId = in.readString();
  model = in.readString();
  operatingSystem = in.readString();
  resolution = in.readByte() == 0x00 ? null : in.readFloat();
  accessibilityFontScale = in.readByte() == 0x00 ? null : in.readFloat();
  orientation = in.readString();
  batteryLevel = in.readByte() == 0x00 ? null : in.readInt();
  byte pluggedInVal = in.readByte();
  pluggedIn = pluggedInVal == 0x02 ? null : pluggedInVal != 0x00;
  carrier = in.readString();
  cellularNetworkType = in.readString();
  byte wifiVal = in.readByte();
  wifi = wifiVal == 0x02 ? null : wifiVal != 0x00;
}
 
Example 5
Project: boohee_v5.6   File: PlaybackStateCompat.java   View Source Code Vote up 5 votes
private PlaybackStateCompat(Parcel in) {
    this.mState = in.readInt();
    this.mPosition = in.readLong();
    this.mSpeed = in.readFloat();
    this.mUpdateTime = in.readLong();
    this.mBufferedPosition = in.readLong();
    this.mActions = in.readLong();
    this.mErrorMessage = (CharSequence) TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
    this.mCustomActions = in.createTypedArrayList(CustomAction.CREATOR);
    this.mActiveItemId = in.readLong();
    this.mExtras = in.readBundle();
}
 
Example 6
Project: GitHub   File: FreshDownloadView.java   View Source Code Vote up 5 votes
protected FreshDownloadStatus(Parcel in) {
    super(in);
    int tmpStatus = in.readInt();
    this.status = tmpStatus == -1 ? null : STATUS.values()[tmpStatus];
    this.progress = in.readFloat();
    this.radius = in.readFloat();
    this.circular_color = in.readInt();
    this.circular_progress_color = in.readInt();
    this.circular_width = in.readFloat();
    this.mProgressTextSize = in.readFloat();
}
 
Example 7
Project: GitHub   File: LoadingView.java   View Source Code Vote up 5 votes
protected Ring(Parcel in) {
    this.strokeInset = in.readFloat();
    this.strokeWidth = in.readFloat();
    this.ringCenterRadius = in.readFloat();
    this.start = in.readFloat();
    this.end = in.readFloat();
    this.sweep = in.readFloat();
    this.sweeping = in.readFloat();
    this.starting = in.readFloat();
    this.ending = in.readFloat();
    this.color = in.readInt();
}
 
Example 8
Project: SlidingUpPanelLayout   File: SlidingUpPanelLayout.java   View Source Code Vote up 5 votes
private SavedState(Parcel in) {
    super(in);

    isSlidingEnable = in.readByte() == 1;
    expendThreshold = in.readFloat();
    collapseThreshold = in.readFloat();
}
 
Example 9
Project: boohee_v5.6   File: WeightPhoto.java   View Source Code Vote up 5 votes
protected WeightPhoto(Parcel in) {
    this.id = in.readInt();
    this.record_on = in.readString();
    this.weight = in.readFloat();
    this.photo_url = in.readString();
    this.thumb_photo_url = in.readString();
}
 
Example 10
Project: VirtualHook   File: SessionInfo.java   View Source Code Vote up 5 votes
protected SessionInfo(Parcel in) {
    this.sessionId = in.readInt();
    this.installerPackageName = in.readString();
    this.resolvedBaseCodePath = in.readString();
    this.progress = in.readFloat();
    this.sealed = in.readByte() != 0;
    this.active = in.readByte() != 0;
    this.mode = in.readInt();
    this.sizeBytes = in.readLong();
    this.appPackageName = in.readString();
    this.appIcon = in.readParcelable(Bitmap.class.getClassLoader());
    this.appLabel = in.readString();
}
 
Example 11
Project: letv   File: PlaybackStateCompat.java   View Source Code Vote up 5 votes
private PlaybackStateCompat(Parcel in) {
    this.mState = in.readInt();
    this.mPosition = in.readLong();
    this.mSpeed = in.readFloat();
    this.mUpdateTime = in.readLong();
    this.mBufferedPosition = in.readLong();
    this.mActions = in.readLong();
    this.mErrorMessage = (CharSequence) TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
    this.mCustomActions = in.createTypedArrayList(CustomAction.CREATOR);
    this.mActiveItemId = in.readLong();
    this.mExtras = in.readBundle();
}
 
Example 12
Project: SunmiUI   File: ProgressWheel.java   View Source Code Vote up 5 votes
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 13
Project: GitHub   File: MaterialViewPager.java   View Source Code Vote up 4 votes
private SavedState(Parcel in) {
    super(in);
    this.settings = in.readParcelable(MaterialViewPagerSettings.class.getClassLoader());
    this.yOffset = in.readFloat();
}
 
Example 14
Project: WeatherPlus   File: MainDTO.java   View Source Code Vote up 4 votes
protected MainDTO(Parcel in) {
    this.temp = in.readFloat();
    this.pressure = in.readFloat();
    this.humidity = in.readInt();
}
 
Example 15
Project: Cluttr   File: CropImageOptions.java   View Source Code Vote up 4 votes
/**
 * 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 = in.readString();
    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;
}
 
Example 16
Project: CircleMenu   File: PathPoint.java   View Source Code Vote up 4 votes
public PathPoint(Parcel parcel) {
    x = parcel.readFloat();
    y = parcel.readFloat();
    fraction = parcel.readFloat();
    radian = parcel.readDouble();
}
 
Example 17
Project: Android-Demo_ImageCroper   File: CropImageOptions.java   View Source Code Vote up 4 votes
/**
 * 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 = in.readString();
    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;
    allowCounterRotation = in.readByte() != 0;
    rotationDegrees = in.readInt();
}
 
Example 18
Project: MoreApps   File: Items.java   View Source Code Vote up 4 votes
protected Items(Parcel in) {
    id = in.readFloat();
    name = in.readString();
    link = in.readString();
    imageId = in.readString();
}
 
Example 19
Project: UdacityBakingAndroid   File: Ingredient.java   View Source Code Vote up 4 votes
protected Ingredient(Parcel in) {
    quantity = in.readFloat();
    measure = in.readString();
    ingredient = in.readString();
}
 
Example 20
Project: sign-android   File: CircleMenu.java   View Source Code Vote up 4 votes
private SavedState(Parcel in) {
    super(in);
    this.stateToSave = in.readFloat();
}