本文整理了Java中android.os.Parcel.readSparseArray()
方法的一些代码示例,展示了Parcel.readSparseArray()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parcel.readSparseArray()
方法的具体详情如下:
包路径:android.os.Parcel
类名称:Parcel
方法名:readSparseArray
[英]Read and return a new SparseArray object from the parcel at the current dataPosition(). Returns null if the previously written list object was null. The given class loader will be used to load any enclosed Parcelables.
[中]从当前dataPosition()处的地块读取并返回一个新的SparseArray对象。如果之前写入的列表对象为null,则返回null。给定的类装入器将用于装入任何封闭的包裹。
代码示例来源:origin: android-hacker/VirtualXposed
protected PackageSetting(Parcel in) {
this.packageName = in.readString();
this.apkPath = in.readString();
this.libPath = in.readString();
this.dependSystem = in.readByte() != 0;
this.appId = in.readInt();
//noinspection unchecked
this.userState = in.readSparseArray(PackageUserState.class.getClassLoader());
this.skipDexOpt = in.readByte() != 0;
}
代码示例来源:origin: chentao0707/SimplifyReader
@SuppressWarnings("unchecked")
private ParcelableSparseIntArray(Parcel in) {
append(in.readSparseArray (ClassLoader.getSystemClassLoader()));
}
代码示例来源:origin: eneim/toro
protected ExtraPlaybackInfo(Parcel in) {
super(in);
this.actualInfo = in.readSparseArray(PlaybackInfo.class.getClassLoader());
}
代码示例来源:origin: dbachelder/CreditCardEntry
private SavedState(Parcel in, ClassLoader classLoader) {
super(in);
childrenStates = in.readSparseArray(classLoader);
}
代码示例来源:origin: dbachelder/CreditCardEntry
private SavedState(Parcel in, ClassLoader classLoader) {
super(in);
childrenStates = in.readSparseArray(classLoader);
}
代码示例来源:origin: kaushikgopal/rem
private ParcelableSparseArray(Parcel in) {
_sparseArray = in.readSparseArray(ParcelableSparseArray.class.getClassLoader());
}
代码示例来源:origin: BoD/jraf-android-util
public SavedState(Parcel source) {
super(source);
mValues = source.readSparseArray(getClass().getClassLoader());
}
代码示例来源:origin: bzsome/VirtualApp-x326
protected PackageSetting(Parcel in) {
this.packageName = in.readString();
this.apkPath = in.readString();
this.libPath = in.readString();
this.dependSystem = in.readByte() != 0;
this.appId = in.readInt();
//noinspection unchecked
this.userState = in.readSparseArray(PackageUserState.class.getClassLoader());
this.skipDexOpt = in.readByte() != 0;
}
代码示例来源:origin: darkskygit/VirtualApp
protected PackageSetting(Parcel in) {
this.packageName = in.readString();
this.apkPath = in.readString();
this.libPath = in.readString();
this.dependSystem = in.readByte() != 0;
this.appId = in.readInt();
//noinspection unchecked
this.userState = in.readSparseArray(PackageUserState.class.getClassLoader());
this.skipDexOpt = in.readByte() != 0;
}
代码示例来源:origin: aliumujib/Nibo
private SavedState(Parcel in, ClassLoader classLoader) {
super(in);
childrenStates = in.readSparseArray(classLoader);
mCurrentSearchViewState = SearchViewState.fromInt(in.readInt());
}
代码示例来源:origin: stackoverflow.com
public Test(Parcel in) {
this.id = in.readInt();
in.readSparseArray(OBJECT_STORED.class.getClassLoader());
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.id);
dest.writeSparseArray(mSparseArray);
}
内容来源于网络,如有侵权,请联系作者删除!