本文整理了Java中android.os.Parcel.createDoubleArray()
方法的一些代码示例,展示了Parcel.createDoubleArray()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parcel.createDoubleArray()
方法的具体详情如下:
包路径:android.os.Parcel
类名称:Parcel
方法名:createDoubleArray
暂无
代码示例来源:origin: robolectric/robolectric
@Test
public void testWriteAndCreateNullDoubleArray() throws Exception {
parcel.writeDoubleArray(null);
parcel.setDataPosition(0);
assertThat(parcel.createDoubleArray()).isNull();
}
代码示例来源:origin: codezjx/AndLinker
@Override
public double[] createFromParcel(Parcel in) {
return in.createDoubleArray();
}
代码示例来源:origin: posm/OpenMapKitAndroid
private Position(Parcel parcel) {
this(parcel.createDoubleArray());
}
代码示例来源:origin: andforce/iBeebo
protected HotGeoBean(Parcel in) {
type = in.readString();
coordinates = in.createDoubleArray();
}
代码示例来源:origin: proninyaroslav/libretorrent
public AdvanceStateParcel(Parcel source)
{
super(source);
torrentId = source.readString();
filesReceivedBytes = source.createLongArray();
totalSeeds = source.readInt();
seeds = source.readInt();
downloadedPieces = source.readInt();
shareRatio = source.readDouble();
activeTime = source.readLong();
seedingTime = source.readLong();
availability = source.readDouble();
filesAvailability = source.createDoubleArray();
}
内容来源于网络,如有侵权,请联系作者删除!