本文整理了Java中android.os.Parcel.writeFloatArray()
方法的一些代码示例,展示了Parcel.writeFloatArray()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parcel.writeFloatArray()
方法的具体详情如下:
包路径:android.os.Parcel
类名称:Parcel
方法名:writeFloatArray
暂无
代码示例来源:origin: ArthurHub/Android-Image-Cropper
@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());
}
代码示例来源:origin: robolectric/robolectric
@Test
public void testReadWriteFloatArray() throws Exception {
final float[] floats = { 1.1f, 2.0f };
parcel.writeFloatArray(floats);
parcel.setDataPosition(0);
final float[] floats2 = new float[floats.length];
parcel.readFloatArray(floats2);
assertTrue(Arrays.equals(floats, floats2));
}
代码示例来源:origin: robolectric/robolectric
@Test
public void testWriteAndCreateNullFloatArray() throws Exception {
parcel.writeFloatArray(null);
parcel.setDataPosition(0);
assertThat(parcel.createFloatArray()).isNull();
}
代码示例来源:origin: guolindev/giffun
@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());
}
代码示例来源:origin: codezjx/AndLinker
@Override
public void writeToParcel(Parcel dest, int flags, float[] val) {
dest.writeFloatArray(val);
}
代码示例来源:origin: pmarks-net/chromadoze
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeFloatArray(mData);
}
代码示例来源:origin: stackoverflow.com
out.writeFloatArray(data);
内容来源于网络,如有侵权,请联系作者删除!