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

The following examples show how to use android.os.Parcel#writeFloatArray() . 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: CursorAnchorInfo.java    From android_9.0.0_r45 with Apache License 2.0 6 votes vote down vote up
/**
 * Used to package this object into a {@link Parcel}.
 *
 * @param dest The {@link Parcel} to be written.
 * @param flags The flags used for parceling.
 */
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(mHashCode);
    dest.writeInt(mSelectionStart);
    dest.writeInt(mSelectionEnd);
    dest.writeInt(mComposingTextStart);
    TextUtils.writeToParcel(mComposingText, dest, flags);
    dest.writeInt(mInsertionMarkerFlags);
    dest.writeFloat(mInsertionMarkerHorizontal);
    dest.writeFloat(mInsertionMarkerTop);
    dest.writeFloat(mInsertionMarkerBaseline);
    dest.writeFloat(mInsertionMarkerBottom);
    dest.writeParcelable(mCharacterBoundsArray, flags);
    dest.writeFloatArray(mMatrixValues);
}
 
Example 2
Source File: BrightnessChangeEvent.java    From android_9.0.0_r45 with Apache License 2.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeFloat(brightness);
    dest.writeLong(timeStamp);
    dest.writeString(packageName);
    dest.writeInt(userId);
    dest.writeFloatArray(luxValues);
    dest.writeLongArray(luxTimestamps);
    dest.writeFloat(batteryLevel);
    dest.writeFloat(powerBrightnessFactor);
    dest.writeBoolean(nightMode);
    dest.writeInt(colorTemperature);
    dest.writeFloat(lastBrightness);
    dest.writeBoolean(isDefaultBrightnessConfig);
    dest.writeBoolean(isUserSetBrightness);
}
 
Example 3
Source File: CropImage.java    From timecat with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(getUri(), flags);
    dest.writeSerializable(getError());
    dest.writeFloatArray(getCropPoints());
    dest.writeParcelable(getCropRect(), flags);
    dest.writeInt(getRotation());
    dest.writeInt(getSampleSize());
}
 
Example 4
Source File: CropImage.java    From Android-Image-Cropper with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeParcelable(getOriginalUri(), flags);
  dest.writeParcelable(getUri(), flags);
  dest.writeSerializable(getError());
  dest.writeFloatArray(getCropPoints());
  dest.writeParcelable(getCropRect(), flags);
  dest.writeParcelable(getWholeImageRect(), flags);
  dest.writeInt(getRotation());
  dest.writeInt(getSampleSize());
}
 
Example 5
Source File: PrimitiveArrayParcelable.java    From android-parcelable-intellij-plugin with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeIntArray(this.a);
    dest.writeDoubleArray(this.b);
    dest.writeStringArray(this.c);
    dest.writeFloatArray(this.e);
    dest.writeBooleanArray(this.f);
    dest.writeByteArray(this.g);
}
 
Example 6
Source File: ViewInfosContainer.java    From pandroid with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeSerializable(viewClass);
    dest.writeInt(viewId);
    dest.writeSerializable(viewTagS);
    dest.writeParcelable(viewTagP, flags);
    dest.writeSerializable(backgroundColor);
    dest.writeIntArray(padding);
    dest.writeFloatArray(position);
    dest.writeIntArray(size);
    dest.writeInt(textColor);
    dest.writeFloat(textSize);
    dest.writeInt(textGravity);
    dest.writeFloat(elevation);
}
 
Example 7
Source File: ViewTransformDelegater.java    From libcommon with Apache License 2.0 5 votes vote down vote up
@Override
     public void writeToParcel(final Parcel out, final int flags) {
         super.writeToParcel(out, flags);
         // should write as same order when reading
         out.writeInt(mState);
         out.writeInt(mHandleTouchEvent);
         out.writeFloat(mMinScale);
out.writeFloat(mMaxScale);
         out.writeFloat(mCurrentDegrees);
         out.writeFloatArray(mMatrixCache);
     }
 
Example 8
Source File: BarWavesView.java    From Musicoco with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeInt(barColor);
    out.writeInt(fallAnimEnable);
    out.writeInt(fallDuration);
    out.writeValue(waveColors);
    out.writeFloatArray(waveHeight);
}
 
Example 9
Source File: SparseRectFArray.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
/**
 * Used to package this object into a {@link Parcel}.
 *
 * @param dest The {@link Parcel} to be written.
 * @param flags The flags used for parceling.
 */
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeIntArray(mKeys);
    dest.writeFloatArray(mCoordinates);
    dest.writeIntArray(mFlagsArray);
}
 
Example 10
Source File: CropImage.java    From giffun with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeParcelable(getOriginalUri(), flags);
  dest.writeParcelable(getUri(), flags);
  dest.writeSerializable(getError());
  dest.writeFloatArray(getCropPoints());
  dest.writeParcelable(getCropRect(), flags);
  dest.writeParcelable(getWholeImageRect(), flags);
  dest.writeInt(getRotation());
  dest.writeInt(getSampleSize());
}
 
Example 11
Source File: CropImage.java    From Lassi-Android with MIT License 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(getOriginalUri(), flags);
    dest.writeParcelable(getUri(), flags);
    dest.writeSerializable(getError());
    dest.writeFloatArray(getCropPoints());
    dest.writeParcelable(getCropRect(), flags);
    dest.writeParcelable(getWholeImageRect(), flags);
    dest.writeInt(getRotation());
    dest.writeInt(getSampleSize());
}
 
Example 12
Source File: Action.java    From android-ui with Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
	dest.writeFloatArray(this.lineData);
	dest.writeTypedList(lineSegments);
}
 
Example 13
Source File: BrightnessConfiguration.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeFloatArray(mLux);
    dest.writeFloatArray(mNits);
    dest.writeString(mDescription);
}
 
Example 14
Source File: ParcelUtils.java    From mollyim-android with GNU General Public License v3.0 4 votes vote down vote up
public static void writeMatrix(@NonNull Parcel dest, @NonNull Matrix matrix) {
  float[] values = new float[9];
  matrix.getValues(values);
  dest.writeFloatArray(values);
}
 
Example 15
Source File: AmbientBrightnessDayStats.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mLocalDate.toString());
    dest.writeFloatArray(mBucketBoundaries);
    dest.writeFloatArray(mStats);
}
 
Example 16
Source File: ColorWheelView.java    From SimpleDialogFragments with Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeFloatArray(saveColor);
    out.writeInt(saveAlpha);
}
 
Example 17
Source File: ParcelUtils.java    From deltachat-android with GNU General Public License v3.0 4 votes vote down vote up
public static void writeMatrix(@NonNull Parcel dest, @NonNull Matrix matrix) {
  float[] values = new float[9];
  matrix.getValues(values);
  dest.writeFloatArray(values);
}
 
Example 18
Source File: AutomaticControlPointBezierLine.java    From deltachat-android with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeFloatArray(Arrays.copyOfRange(x, 0, count));
  dest.writeFloatArray(Arrays.copyOfRange(y, 0, count));
}
 
Example 19
Source File: StaticAdapters.java    From paperparcel with Apache License 2.0 4 votes vote down vote up
@Override public void writeToParcel(@Nullable float[] value, @NonNull Parcel dest, int flags) {
  dest.writeFloatArray(value);
}
 
Example 20
Source File: SpectrumData.java    From chromadoze with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeFloatArray(mData);
}