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

The following are Jave code examples for showing how to use readArrayList() 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: airgram   File: StaggeredGridLayoutManager.java   View Source Code Vote up 6 votes
SavedState(Parcel in) {
    mAnchorPosition = in.readInt();
    mVisibleAnchorPosition = in.readInt();
    mSpanOffsetsSize = in.readInt();
    if (mSpanOffsetsSize > 0) {
        mSpanOffsets = new int[mSpanOffsetsSize];
        in.readIntArray(mSpanOffsets);
    }

    mSpanLookupSize = in.readInt();
    if (mSpanLookupSize > 0) {
        mSpanLookup = new int[mSpanLookupSize];
        in.readIntArray(mSpanLookup);
    }
    mReverseLayout = in.readInt() == 1;
    mAnchorLayoutFromEnd = in.readInt() == 1;
    mLastLayoutRTL = in.readInt() == 1;
    //noinspection unchecked
    mFullSpanItems = in.readArrayList(
            LazySpanLookup.FullSpanItem.class.getClassLoader());
}
 
Example 2
Project: xmrwallet   File: TransactionInfo.java   View Source Code Vote up 6 votes
private TransactionInfo(Parcel in) {
    direction = Direction.fromInteger(in.readInt());
    isPending = in.readByte() != 0;
    isFailed = in.readByte() != 0;
    amount = in.readLong();
    fee = in.readLong();
    blockheight = in.readLong();
    hash = in.readString();
    timestamp = in.readLong();
    paymentId = in.readString();
    confirmations = in.readLong();
    transfers = in.readArrayList(Transfer.class.getClassLoader());
    txKey = in.readString();
    notes = in.readString();
}
 
Example 3
Project: PlusGram   File: StaggeredGridLayoutManager.java   View Source Code Vote up 6 votes
SavedState(Parcel in) {
    mAnchorPosition = in.readInt();
    mVisibleAnchorPosition = in.readInt();
    mSpanOffsetsSize = in.readInt();
    if (mSpanOffsetsSize > 0) {
        mSpanOffsets = new int[mSpanOffsetsSize];
        in.readIntArray(mSpanOffsets);
    }

    mSpanLookupSize = in.readInt();
    if (mSpanLookupSize > 0) {
        mSpanLookup = new int[mSpanLookupSize];
        in.readIntArray(mSpanLookup);
    }
    mReverseLayout = in.readInt() == 1;
    mAnchorLayoutFromEnd = in.readInt() == 1;
    mLastLayoutRTL = in.readInt() == 1;
    //noinspection unchecked
    mFullSpanItems = in.readArrayList(
            LazySpanLookup.FullSpanItem.class.getClassLoader());
}
 
Example 4
Project: AndroidSDK2.0   File: Stroke.java   View Source Code Vote up 5 votes
@Override
public Stroke createFromParcel(Parcel source) {
	Stroke oStroke = new Stroke();

	oStroke.sectionId = source.readInt();
	oStroke.ownerId = source.readInt();
	oStroke.noteId = source.readInt();
	oStroke.pageId = source.readInt();
	oStroke.color = source.readInt();
	oStroke.type = source.readInt();
	oStroke.penTipType = source.readInt();

	oStroke.dots = source.readArrayList( Dot.class.getClassLoader() );
	return oStroke;
}
 
Example 5
Project: android-schedules   File: DaySchedulesContainer.java   View Source Code Vote up 5 votes
private DaySchedulesContainer(Parcel in) {
    date = new Date(in.readLong());

    List<DayScheduleContainer> days = new ArrayList<>();
    days = in.readArrayList(days.getClass().getClassLoader());

    for (DayScheduleContainer day : days)
        schedules.put(day.getCode(), day.getClasses());
}
 
Example 6
Project: letv   File: AdElementMime.java   View Source Code Vote up 5 votes
private AdElementMime(Parcel source) {
    boolean z = true;
    this.errCode = -1;
    this.hadExposed = false;
    this.hadComplete = false;
    this.vastTag = source.readInt();
    this.adTag = source.readInt();
    this.adReqType = source.readInt();
    this.adZoneType = source.readInt();
    this.cuePointType = source.readInt();
    this.dspType = source.readInt();
    this.hasProgressTracking = source.readInt();
    this.commonType = source.readInt();
    this.mediaFileUrl = source.readString();
    this.mediaFileType = source.readInt();
    this.duration = source.readInt();
    this.clickShowType = source.readInt();
    this.text = source.readString();
    this.textEx = source.readString();
    this.isRequestOffline = source.readInt();
    this.vid = source.readString();
    this.pid = source.readString();
    this.sid = source.readString();
    this.streamURL = source.readString();
    this.index = source.readInt();
    if (source.readInt() != 1) {
        z = false;
    }
    this.hadExposed = z;
    this.adAliList = source.readArrayList(AdAli.class.getClassLoader());
}
 
Example 7
Project: letv   File: StaggeredGridLayoutManager.java   View Source Code Vote up 5 votes
SavedState(Parcel in) {
    boolean z;
    boolean z2 = true;
    this.mAnchorPosition = in.readInt();
    this.mVisibleAnchorPosition = in.readInt();
    this.mSpanOffsetsSize = in.readInt();
    if (this.mSpanOffsetsSize > 0) {
        this.mSpanOffsets = new int[this.mSpanOffsetsSize];
        in.readIntArray(this.mSpanOffsets);
    }
    this.mSpanLookupSize = in.readInt();
    if (this.mSpanLookupSize > 0) {
        this.mSpanLookup = new int[this.mSpanLookupSize];
        in.readIntArray(this.mSpanLookup);
    }
    this.mReverseLayout = in.readInt() == 1;
    if (in.readInt() == 1) {
        z = true;
    } else {
        z = false;
    }
    this.mAnchorLayoutFromEnd = z;
    if (in.readInt() != 1) {
        z2 = false;
    }
    this.mLastLayoutRTL = z2;
    this.mFullSpanItems = in.readArrayList(FullSpanItem.class.getClassLoader());
}
 
Example 8
Project: OSchina_resources_android   File: Comment.java   View Source Code Vote up 5 votes
@SuppressWarnings("unchecked")
public Comment(Parcel source) {
    id = source.readInt();
    portrait = source.readString();
    author = source.readString();
    authorId = source.readInt();
    pubDate = source.readString();
    appClient = source.readInt();
    content = source.readString();

    replies = source.readArrayList(Reply.class.getClassLoader());
    refers = source.readArrayList(Refer.class.getClassLoader());
}
 
Example 9
Project: boohee_v5.6   File: StaggeredGridLayoutManager.java   View Source Code Vote up 5 votes
SavedState(Parcel in) {
    boolean z;
    boolean z2 = true;
    this.mAnchorPosition = in.readInt();
    this.mVisibleAnchorPosition = in.readInt();
    this.mSpanOffsetsSize = in.readInt();
    if (this.mSpanOffsetsSize > 0) {
        this.mSpanOffsets = new int[this.mSpanOffsetsSize];
        in.readIntArray(this.mSpanOffsets);
    }
    this.mSpanLookupSize = in.readInt();
    if (this.mSpanLookupSize > 0) {
        this.mSpanLookup = new int[this.mSpanLookupSize];
        in.readIntArray(this.mSpanLookup);
    }
    this.mReverseLayout = in.readInt() == 1;
    if (in.readInt() == 1) {
        z = true;
    } else {
        z = false;
    }
    this.mAnchorLayoutFromEnd = z;
    if (in.readInt() != 1) {
        z2 = false;
    }
    this.mLastLayoutRTL = z2;
    this.mFullSpanItems = in.readArrayList(FullSpanItem.class.getClassLoader());
}
 
Example 10
Project: Snach-Android   File: ListAppContentItem.java   View Source Code Vote up 5 votes
public void readFromParcel(Parcel in) {
    this.SCREEN_MODE = in.readInt();
    this.COLOR_BACK = in.readInt();
    this.COLOR_MAIN = in.readInt();
    this.COLOR_HIGHLIGHT = in.readInt();
    this.COLOR_TITLE = in.readInt();
    this.COLOR_CONTENT = in.readInt();

    this.BACK_THEME = in.readByte();
    this.FONT_THEME = in.readByte();
    this.ITEM_THEME = in.readByte();

    this.ITEMS_TITLE = in.readArrayList(String.class.getClassLoader());
    this.ITEMS_SUBTITLE = in.readArrayList(String.class.getClassLoader());
    this.ITEMS_CONTENT = in.readArrayList(String.class.getClassLoader());

    this.listTitle_top = in.readString();
    this.listTitle_bottom = in.readString();

    this.TOP_BUTTON_ICON = in.readByte();
    this.RIGHT_BUTTON_ICON = in.readByte();
    this.BOTTOM_BUTTON_ICON = in.readByte();
    this.LEFT_BUTTON_ICON = in.readByte();
    this.TOP_BUTTON_ICON_ENDSTATE = in.readByte();
    this.BOTTOM_BUTTON_ICON_ENDSTATE = in.readByte();

    this.TOP_BUTTON_STYLE_ENDSTATE = in.readByte();
    this.LEFT_BUTTON_STYLE = in.readByte();
    this.BOTTOM_BUTTON_STYLE_ENDSTATE = in.readByte();
    this.LEFT_BUTTON_STYLE = in.readByte();
}
 
Example 11
Project: android-schedules   File: DayScheduleContainer.java   View Source Code Vote up 4 votes
private DayScheduleContainer(Parcel in) {
    code = in.readString();

    this.classes = in.readArrayList(new ArrayList<Class>().getClass().getClassLoader());
}
 
Example 12
Project: GitHub   File: ArrayListLceViewState.java   View Source Code Vote up 2 votes
@Override protected void readFromParcel(Parcel source) {

    loadedData = (D) source.readArrayList(getClassLoader());

    super.readFromParcel(source);
  }
 
Example 13
Project: GitHub   File: ArrayListLceViewState.java   View Source Code Vote up 2 votes
@Override protected void readFromParcel(Parcel source) {

    loadedData = (D) source.readArrayList(getClassLoader());

    super.readFromParcel(source);
  }