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

The following examples show how to use android.os.Parcel#createFloatArray() . 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: CropImage.java    From Lassi-Android with MIT License 5 votes vote down vote up
protected ActivityResult(Parcel in) {
    super(
            null,
            in.readParcelable(Uri.class.getClassLoader()),
            null,
            in.readParcelable(Uri.class.getClassLoader()),
            (Exception) in.readSerializable(),
            in.createFloatArray(),
            in.readParcelable(Rect.class.getClassLoader()),
            in.readParcelable(Rect.class.getClassLoader()),
            in.readInt(),
            in.readInt());
}
 
Example 2
Source File: PrimitiveArrayParcelable.java    From android-parcelable-intellij-plugin with Apache License 2.0 5 votes vote down vote up
protected PrimitiveArrayParcelable(Parcel in) {
    this.a = in.createIntArray();
    this.b = in.createDoubleArray();
    this.c = in.createStringArray();
    this.e = in.createFloatArray();
    this.f = in.createBooleanArray();
    this.g = in.createByteArray();
}
 
Example 3
Source File: CropImage.java    From Android-Image-Cropper with Apache License 2.0 5 votes vote down vote up
protected ActivityResult(Parcel in) {
  super(
      null,
      (Uri) in.readParcelable(Uri.class.getClassLoader()),
      null,
      (Uri) in.readParcelable(Uri.class.getClassLoader()),
      (Exception) in.readSerializable(),
      in.createFloatArray(),
      (Rect) in.readParcelable(Rect.class.getClassLoader()),
      (Rect) in.readParcelable(Rect.class.getClassLoader()),
      in.readInt(),
      in.readInt());
}
 
Example 4
Source File: ViewInfosContainer.java    From pandroid with Apache License 2.0 5 votes vote down vote up
protected ViewInfosContainer(Parcel in) {
    viewClass = (Class<? extends View>) in.readSerializable();
    viewId = in.readInt();
    viewTagS = in.readSerializable();
    viewTagP = in.readParcelable(getClass().getClassLoader());
    backgroundColor = (Integer) in.readSerializable();
    padding = in.createIntArray();
    position = in.createFloatArray();
    size = in.createIntArray();
    textColor = in.readInt();
    textSize = in.readFloat();
    textGravity = in.readInt();
    elevation = in.readFloat();
}
 
Example 5
Source File: BrightnessChangeEvent.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
private BrightnessChangeEvent(Parcel source) {
    brightness = source.readFloat();
    timeStamp = source.readLong();
    packageName = source.readString();
    userId = source.readInt();
    luxValues = source.createFloatArray();
    luxTimestamps = source.createLongArray();
    batteryLevel = source.readFloat();
    powerBrightnessFactor = source.readFloat();
    nightMode = source.readBoolean();
    colorTemperature = source.readInt();
    lastBrightness = source.readFloat();
    isDefaultBrightnessConfig = source.readBoolean();
    isUserSetBrightness = source.readBoolean();
}
 
Example 6
Source File: BrightnessConfiguration.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
public BrightnessConfiguration createFromParcel(Parcel in) {
    float[] lux = in.createFloatArray();
    float[] nits = in.createFloatArray();
    Builder builder = new Builder(lux, nits);
    builder.setDescription(in.readString());
    return builder.build();
}
 
Example 7
Source File: CursorAnchorInfo.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
public CursorAnchorInfo(final Parcel source) {
    mHashCode = source.readInt();
    mSelectionStart = source.readInt();
    mSelectionEnd = source.readInt();
    mComposingTextStart = source.readInt();
    mComposingText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
    mInsertionMarkerFlags = source.readInt();
    mInsertionMarkerHorizontal = source.readFloat();
    mInsertionMarkerTop = source.readFloat();
    mInsertionMarkerBaseline = source.readFloat();
    mInsertionMarkerBottom = source.readFloat();
    mCharacterBoundsArray = source.readParcelable(SparseRectFArray.class.getClassLoader());
    mMatrixValues = source.createFloatArray();
}
 
Example 8
Source File: CropImage.java    From giffun with Apache License 2.0 5 votes vote down vote up
protected ActivityResult(Parcel in) {
  super(
      null,
      (Uri) in.readParcelable(Uri.class.getClassLoader()),
      null,
      (Uri) in.readParcelable(Uri.class.getClassLoader()),
      (Exception) in.readSerializable(),
      in.createFloatArray(),
      (Rect) in.readParcelable(Rect.class.getClassLoader()),
      (Rect) in.readParcelable(Rect.class.getClassLoader()),
      in.readInt(),
      in.readInt());
}
 
Example 9
Source File: AmbientBrightnessDayStats.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
private AmbientBrightnessDayStats(Parcel source) {
    mLocalDate = LocalDate.parse(source.readString());
    mBucketBoundaries = source.createFloatArray();
    mStats = source.createFloatArray();
}
 
Example 10
Source File: Curve.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
public Curve createFromParcel(Parcel in) {
    float[] x = in.createFloatArray();
    float[] y = in.createFloatArray();
    return new Curve(x, y);
}
 
Example 11
Source File: SparseRectFArray.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
public SparseRectFArray(final Parcel source) {
    mKeys = source.createIntArray();
    mCoordinates = source.createFloatArray();
    mFlagsArray = source.createIntArray();
}
 
Example 12
Source File: CropImage.java    From timecat with Apache License 2.0 4 votes vote down vote up
protected ActivityResult(Parcel in) {
    super(null, in.readParcelable(Uri.class.getClassLoader()), (Exception) in.readSerializable(), in.createFloatArray(), in.readParcelable(Rect.class.getClassLoader()), in.readInt(), in.readInt());
}
 
Example 13
Source File: ColorWheelView.java    From SimpleDialogFragments with Apache License 2.0 4 votes vote down vote up
private SavedState(Parcel in) {
    super(in);
    saveColor = in.createFloatArray();
    saveAlpha = in.readInt();
}
 
Example 14
Source File: ColorWheelView.java    From SimpleDialogFragments with Apache License 2.0 4 votes vote down vote up
private SavedState(Parcel in) {
    super(in);
    saveColor = in.createFloatArray();
    saveAlpha = in.readInt();
}
 
Example 15
Source File: AutomaticControlPointBezierLine.java    From deltachat-android with GNU General Public License v3.0 4 votes vote down vote up
@Override
public AutomaticControlPointBezierLine createFromParcel(Parcel in) {
  float[] x = in.createFloatArray();
  float[] y = in.createFloatArray();
  return new AutomaticControlPointBezierLine(x, y, x != null ? x.length : 0);
}
 
Example 16
Source File: StaticAdapters.java    From paperparcel with Apache License 2.0 4 votes vote down vote up
@Nullable @Override public float[] readFromParcel(@NonNull Parcel source) {
  return source.createFloatArray();
}
 
Example 17
Source File: Action.java    From android-ui with Apache License 2.0 4 votes vote down vote up
private Action(Parcel in) {
	this.lineData = in.createFloatArray();
	in.readTypedList(lineSegments, LineSegment.CREATOR);
}
 
Example 18
Source File: AutomaticControlPointBezierLine.java    From mollyim-android with GNU General Public License v3.0 4 votes vote down vote up
@Override
public AutomaticControlPointBezierLine createFromParcel(Parcel in) {
  float[] x = in.createFloatArray();
  float[] y = in.createFloatArray();
  return new AutomaticControlPointBezierLine(x, y, x != null ? x.length : 0);
}