本文整理了Java中android.os.Parcel.createLongArray()
方法的一些代码示例,展示了Parcel.createLongArray()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parcel.createLongArray()
方法的具体详情如下:
包路径:android.os.Parcel
类名称:Parcel
方法名:createLongArray
暂无
代码示例来源:origin: h6ah4i/android-advancedrecyclerview
SavedState(Parcel in) {
this.adapterSavedState = in.createLongArray();
}
代码示例来源:origin: koral--/android-gif-drawable
private GifViewSavedState(Parcel in) {
super(in);
mStates = new long[in.readInt()][];
for (int i = 0; i < mStates.length; i++)
mStates[i] = in.createLongArray();
}
代码示例来源:origin: hidroh/materialistic
@Synthetic
HackerNewsItem(Parcel source) {
id = source.readLong();
title = source.readString();
time = source.readLong();
by = source.readString();
kids = source.createLongArray();
url = source.readString();
text = source.readString();
type = source.readString();
favorite = source.readInt() != 0;
descendants = source.readInt();
score = source.readInt();
favorite = source.readInt() == 1;
viewed = source.readInt() == 1;
localRevision = source.readInt();
level = source.readInt();
dead = source.readInt() == 1;
deleted = source.readInt() == 1;
collapsed = source.readInt() == 1;
contentExpanded = source.readInt() == 1;
rank = source.readInt();
lastKidCount = source.readInt();
hasNewDescendants = source.readInt() == 1;
parent = source.readLong();
voted = source.readInt() == 1;
pendingVoted = source.readInt() == 1;
next = source.readLong();
previous = source.readLong();
}
代码示例来源:origin: robolectric/robolectric
@Test
public void testWriteAndCreateNullLongArray() throws Exception {
parcel.writeLongArray(null);
parcel.setDataPosition(0);
assertThat(parcel.createLongArray()).isNull();
}
代码示例来源:origin: codezjx/AndLinker
@Override
public long[] createFromParcel(Parcel in) {
return in.createLongArray();
}
代码示例来源:origin: com.albedinsky.android/ui
/**
* Called from {@link #CREATOR} to create an instance of SavedState form the given parcel
* <var>source</var>.
*
* @param source Parcel with data for the new instance.
*/
protected SavedState(@NonNull Parcel source) {
super(source);
this.mode = source.readInt();
this.selectedIds = source.createLongArray();
}
代码示例来源:origin: com.albedinsky.android/ui-widget-adapter
/**
* Called from {@link #CREATOR} to create an instance of SavedState form the given parcel
* <var>source</var>.
*
* @param source Parcel with data for the new instance.
*/
protected SavedState(@NonNull Parcel source) {
super(source);
this.mode = source.readInt();
this.selectedIds = source.createLongArray();
}
代码示例来源:origin: 8enet/AppOpsX
protected OpEntry(Parcel in) {
this.mOp = in.readInt();
this.mMode = in.readInt();
this.mTimes = in.createLongArray();
this.mRejectTimes = in.createLongArray();
this.mDuration = in.readInt();
this.mRunning = in.readByte() != 0;
this.mProxyUid = in.readInt();
this.mProxyPackageName = in.readString();
this.mAllowedCount = in.readInt();
this.mIgnoredCount = in.readInt();
}
代码示例来源:origin: geniusgithub/AndroidDialer
@SuppressWarnings("unchecked")
public void readFromParcel(Parcel source) {
final ClassLoader loader = getClass().getClassLoader();
final int size = source.readInt();
for (int i = 0; i < size; i++) {
this.add(source.<RawContactDelta> readParcelable(loader));
}
mJoinWithRawContactIds = source.createLongArray();
mSplitRawContacts = source.readInt() != 0;
}
代码示例来源: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();
}
内容来源于网络,如有侵权,请联系作者删除!