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

The following are Jave code examples for showing how to use readLongArray() 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: Todule-android   File:   Source Code and License Vote up 6 votes
public LongSparseArrayBooleanParcelable createFromParcel(Parcel parcel) {
    LongSparseArrayBooleanParcelable read = new LongSparseArrayBooleanParcelable();
    int size = parcel.readInt();
    long[] keys = new long[size];
    boolean[] values = new boolean[size];


    for (int i=0; i<size; i++){
        read.put(keys[i], values[i]);

    return read;
Example 2
Project: choreographer-example   File:   Source Code and License Vote up 5 votes
private State(Parcel in) {
    int[] ordinals = new int[2];
    this.transitionStartTime = in.readLong();

    int i = 0;
    for (int ordinal : ordinals) {
        taggingStates[i++] = FunkyView.State.values()[ordinal];
Example 3
Project: primitive-collections-android   File:   Source Code and License Vote up 4 votes
private LongArrayList(@NonNull final Parcel in) {
    mSize = in.readInt();
    final int length = in.readInt();
    mItems = new long[length];