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

The following examples show how to use android.os.Parcel#createFloatArray() . 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 want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: Lassi-Android   File: CropImage.java    License: 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 Project: giffun   File: CropImage.java    License: 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 3
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 4
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 5
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 Project: pandroid   File: ViewInfosContainer.java    License: 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 7
Source Project: Android-Image-Cropper   File: CropImage.java    License: 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 8
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 9
@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 10
public SparseRectFArray(final Parcel source) {
    mKeys = source.createIntArray();
    mCoordinates = source.createFloatArray();
    mFlagsArray = source.createIntArray();
}
 
Example 11
private AmbientBrightnessDayStats(Parcel source) {
    mLocalDate = LocalDate.parse(source.readString());
    mBucketBoundaries = source.createFloatArray();
    mStats = source.createFloatArray();
}
 
Example 12
Source Project: android_9.0.0_r45   File: Curve.java    License: 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 13
Source Project: timecat   File: CropImage.java    License: 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 14
private SavedState(Parcel in) {
    super(in);
    saveColor = in.createFloatArray();
    saveAlpha = in.readInt();
}
 
Example 15
private SavedState(Parcel in) {
    super(in);
    saveColor = in.createFloatArray();
    saveAlpha = in.readInt();
}
 
Example 16
@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 17
Source Project: paperparcel   File: StaticAdapters.java    License: Apache License 2.0 4 votes vote down vote up
@Nullable @Override public float[] readFromParcel(@NonNull Parcel source) {
  return source.createFloatArray();
}
 
Example 18
Source Project: android-ui   File: Action.java    License: Apache License 2.0 4 votes vote down vote up
private Action(Parcel in) {
	this.lineData = in.createFloatArray();
	in.readTypedList(lineSegments, LineSegment.CREATOR);
}