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

The following examples show how to use android.os.Parcel#writeFloatArray() . 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
/**
 * 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
@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 Project: Lassi-Android   File: CropImage.java    License: 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 4
Source Project: giffun   File: CropImage.java    License: 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
/**
 * 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 6
Source Project: timecat   File: CropImage.java    License: 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 7
Source Project: Musicoco   File: BarWavesView.java    License: 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 8
@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 9
Source Project: pandroid   File: ViewInfosContainer.java    License: 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 10
@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 11
Source Project: Android-Image-Cropper   File: CropImage.java    License: 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 12
public static void writeMatrix(@NonNull Parcel dest, @NonNull Matrix matrix) {
  float[] values = new float[9];
  matrix.getValues(values);
  dest.writeFloatArray(values);
}
 
Example 13
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeFloatArray(mData);
}
 
Example 14
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mLocalDate.toString());
    dest.writeFloatArray(mBucketBoundaries);
    dest.writeFloatArray(mStats);
}
 
Example 15
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeFloatArray(mLux);
    dest.writeFloatArray(mNits);
    dest.writeString(mDescription);
}
 
Example 16
Source Project: android-ui   File: Action.java    License: 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 17
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeFloatArray(saveColor);
    out.writeInt(saveAlpha);
}
 
Example 18
public static void writeMatrix(@NonNull Parcel dest, @NonNull Matrix matrix) {
  float[] values = new float[9];
  matrix.getValues(values);
  dest.writeFloatArray(values);
}
 
Example 19
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeFloatArray(Arrays.copyOfRange(x, 0, count));
  dest.writeFloatArray(Arrays.copyOfRange(y, 0, count));
}
 
Example 20
Source Project: paperparcel   File: StaticAdapters.java    License: 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);
}