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

The following are Jave code examples for showing how to use writeSparseArray() 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.
Example 1
Project: ChipsLayoutManager   File: ParcelableContainer.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel parcel, int i) {
    anchorViewState.writeToParcel(parcel, i);
    parcel.writeSparseArray(orientationCacheMap);
    parcel.writeSparseArray(cacheNormalizationPositionMap);
    parcel.writeInt(orientation);
}
 
Example 2
Project: VirtualHook   File: PackageSetting.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.packageName);
    dest.writeString(this.apkPath);
    dest.writeString(this.libPath);
    dest.writeByte(this.dependSystem ? (byte) 1 : (byte) 0);
    dest.writeInt(this.appId);
    //noinspection unchecked
    dest.writeSparseArray((SparseArray) this.userState);
    dest.writeByte(this.artFlyMode ? (byte) 1 : (byte) 0);
}
 
Example 3
Project: simple-stack   File: ParcelledState.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(parcelableKey, flags);
    // noinspection unchecked
    SparseArray<Object> sparseArray = (SparseArray) viewHierarchyState;
    dest.writeSparseArray(sparseArray);
    dest.writeByte(bundle != null ? (byte) 0x01 : 0x00);
    if(bundle != null) {
        dest.writeParcelable(bundle, 0);
    }
}
 
Example 4
Project: TPlayer   File: PackageSetting.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.packageName);
    dest.writeString(this.apkPath);
    dest.writeString(this.libPath);
    dest.writeByte(this.dependSystem ? (byte) 1 : (byte) 0);
    dest.writeInt(this.appId);
    //noinspection unchecked
    dest.writeSparseArray((SparseArray) this.userState);
    dest.writeByte(this.skipDexOpt ? (byte) 1 : (byte) 0);
}
 
Example 5
Project: boohee_v5.6   File: ParcelableSparseIntArray.java   Source Code and License Vote up 4 votes
public void writeToParcel(Parcel dest, int flags) {
    dest.writeSparseArray(toSparseArray());
}
 
Example 6
Project: Nibo   File: NiboPlacesAutoCompleteSearchView.java   Source Code and License Vote up 4 votes
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeSparseArray(childrenStates);
    out.writeInt(mCurrentSearchViewState.toInt());
}
 
Example 7
Project: Swap   File: ParcelableSparseIntArray.java   Source Code and License Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeSparseArray(toSparseArray());
}