Java Code Examples for android.os.Parcel.readSparseArray()

The following are Jave code examples for showing how to use readSparseArray() of the android.os.Parcel class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: ChipsLayoutManager   File: ParcelableContainer.java   View Source Code Vote up 5 votes
@SuppressWarnings("unchecked")
private ParcelableContainer(Parcel parcel) {
    anchorViewState = AnchorViewState.CREATOR.createFromParcel(parcel);
    orientationCacheMap = parcel.readSparseArray(CacheParcelableContainer.class.getClassLoader());
    cacheNormalizationPositionMap = parcel.readSparseArray(Integer.class.getClassLoader());
    orientation = parcel.readInt();
}
 
Example 2
Project: VirtualHook   File: PackageSetting.java   View Source Code Vote up 5 votes
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.artFlyMode = in.readByte() != 0;
}
 
Example 3
Project: simple-stack   File: ParcelledState.java   View Source Code Vote up 5 votes
protected ParcelledState(Parcel in) {
    parcelableKey = in.readParcelable(getClass().getClassLoader());
    // noinspection unchecked
    viewHierarchyState = in.readSparseArray(getClass().getClassLoader());
    boolean hasBundle = in.readByte() > 0;
    if(hasBundle) {
        bundle = in.readParcelable(getClass().getClassLoader());
    }
}
 
Example 4
Project: TPlayer   File: PackageSetting.java   View Source Code Vote up 5 votes
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;
}
 
Example 5
Project: Nibo   File: NiboPlacesAutoCompleteSearchView.java   View Source Code Vote up 4 votes
private SavedState(Parcel in, ClassLoader classLoader) {
    super(in);
    childrenStates = in.readSparseArray(classLoader);
    mCurrentSearchViewState = SearchViewState.fromInt(in.readInt());
}