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

The following are Jave code examples for showing how to use writeTypedList() 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: data-mediator   File: HistoryData.java   View Source Code Vote up 6 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.age);
    dest.writeLong(this.id);
    dest.writeInt(this.testShort);
    dest.writeByte(this.testByte);
    dest.writeByte(this.testBoolean ? (byte) 1 : (byte) 0);
    dest.writeFloat(this.testFloat);
    dest.writeDouble(this.testDouble);
    dest.writeInt(this.testChar);
    dest.writeValue(this.testLONG);
    dest.writeValue(this.testDOUBLE);
    dest.writeSerializable(this.testCharacter);
    dest.writeValue(this.testBOOLEAN);
    dest.writeValue(this.testSHORT);
    dest.writeString(this.name);
    dest.writeParcelable(this.data, flags);
    dest.writeTypedList(this.datas);
    dest.writeTypedArray(this.testArrayResultData, flags);
    dest.writeIntArray(this.testArrayInt);
    dest.writeArray(this.testArrayInteger);
}
 
Example 2
Project: MyFire   File: CircleItem.java   View Source Code Vote up 6 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.address);
    dest.writeString(this.appointUserNickname);
    dest.writeString(this.appointUserid);
    dest.writeString(this.content);
    dest.writeLong(this.createTime);
    dest.writeInt(this.goodjobCount);
    dest.writeString(this.id);
    dest.writeString(this.isvalid);
    dest.writeDouble(this.latitude);
    dest.writeDouble(this.longitude);
    dest.writeString(this.pictures);
    dest.writeInt(this.replyCount);
    dest.writeInt(this.type);
    dest.writeString(this.icon);
    dest.writeString(this.userId);
    dest.writeString(this.nickName);
    dest.writeTypedList(goodjobs);
    dest.writeTypedList(replys);
    dest.writeString(this.linkImg);
    dest.writeString(this.linkTitle);
    dest.writeInt(this.takeTimes);
}
 
Example 3
Project: Phoenix-for-VK   File: Poll.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeInt(id);
    dest.writeInt(ownerId);
    dest.writeLong(creationTime);
    dest.writeString(question);
    dest.writeInt(voteCount);
    dest.writeInt(myAnswerId);
    dest.writeByte((byte) (anonymous ? 1 : 0));
    dest.writeTypedList(answers);
    dest.writeByte((byte) (board ? 1 : 0));
}
 
Example 4
Project: TPlayer   File: VirtualLocationService.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.mode);
    dest.writeParcelable(this.cell, flags);
    dest.writeTypedList(this.allCell);
    dest.writeTypedList(this.neighboringCell);
    dest.writeParcelable(this.location, flags);
}
 
Example 5
Project: Hands-On-Android-UI-Development   File: ClaimItem.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(final Parcel dest, final int flags) {
    dest.writeLong(id);
    dest.writeString(description);
    dest.writeDouble(amount);
    dest.writeLong(timestamp != null ? timestamp.getTime() : -1);
    dest.writeInt(category != null ? category.ordinal() : -1);
    dest.writeTypedList(attachments);
}
 
Example 6
Project: anitrend-app   File: UserLists.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeTypedList(on_hold);
    parcel.writeTypedList(plan_to_read);
    parcel.writeTypedList(dropped);
    parcel.writeTypedList(completed);
    parcel.writeTypedList(reading);
    parcel.writeTypedList(watching);
    parcel.writeTypedList(plan_to_watch);
}
 
Example 7
Project: UdacityBakingAndroid   File: Recipe.java   View Source Code Vote up 5 votes
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(id);
    dest.writeString(name);
    dest.writeInt(servings);
    dest.writeString(image);
    dest.writeTypedList(ingredients);
    dest.writeTypedList(steps);
}
 
Example 8
Project: 9AnimeAndroid   File: Episode.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(animeId);
    dest.writeString(episode);
    dest.writeString(link);
    dest.writeTypedList(medias);
}
 
Example 9
Project: VirtualAPK   File: BookManagerImpl.java   View Source Code Vote up 5 votes
@Override
public boolean onTransact(int code, Parcel data, Parcel reply, int flags)
        throws RemoteException {
    switch (code) {
    case INTERFACE_TRANSACTION: {
        reply.writeString(DESCRIPTOR);
        return true;
    }
    case TRANSACTION_getBookList: {
        data.enforceInterface(DESCRIPTOR);
        List<Book> result = this.getBookList();
        reply.writeNoException();
        reply.writeTypedList(result);
        return true;
    }
    case TRANSACTION_addBook: {
        data.enforceInterface(DESCRIPTOR);
        Book arg0;
        if ((0 != data.readInt())) {
            arg0 = Book.CREATOR.createFromParcel(data);
        } else {
            arg0 = null;
        }
        this.addBook(arg0);
        reply.writeNoException();
        return true;
    }
    }
    return super.onTransact(code, data, reply, flags);
}
 
Example 10
Project: letv   File: PlaybackStateCompat.java   View Source Code Vote up 5 votes
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.mState);
    dest.writeLong(this.mPosition);
    dest.writeFloat(this.mSpeed);
    dest.writeLong(this.mUpdateTime);
    dest.writeLong(this.mBufferedPosition);
    dest.writeLong(this.mActions);
    TextUtils.writeToParcel(this.mErrorMessage, dest, flags);
    dest.writeTypedList(this.mCustomActions);
    dest.writeLong(this.mActiveItemId);
    dest.writeBundle(this.mExtras);
}
 
Example 11
Project: Accessibility   File: Cgroup.java   View Source Code Vote up 4 votes
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeTypedList(this.groups);
}
 
Example 12
Project: Orin   File: Album.java   View Source Code Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeTypedList(songs);
}
 
Example 13
Project: BLPlayer   File: BangumiListData.java   View Source Code Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.count);
    dest.writeInt(this.page);
    dest.writeTypedList(this.data);
}
 
Example 14
Project: find-client-android   File: WifiData.java   View Source Code Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeTypedList(mNetworks);
}
 
Example 15
Project: Orin   File: BreadCrumbLayout.java   View Source Code Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.mActive);
    dest.writeTypedList(mCrumbs);
    dest.writeInt(this.mVisibility);
}
 
Example 16
Project: mvvm-template   File: PullRequest.java   View Source Code Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(this.id);
    dest.writeString(this.url);
    dest.writeString(this.body);
    dest.writeString(this.title);
    dest.writeInt(this.comments);
    dest.writeInt(this.number);
    dest.writeByte(this.locked ? (byte) 1 : (byte) 0);
    dest.writeByte(this.mergable ? (byte) 1 : (byte) 0);
    dest.writeByte(this.merged ? (byte) 1 : (byte) 0);
    dest.writeByte(this.mergeable ? (byte) 1 : (byte) 0);
    dest.writeInt(this.commits);
    dest.writeInt(this.additions);
    dest.writeInt(this.deletions);
    dest.writeString(this.state);
    dest.writeString(this.bodyHtml);
    dest.writeString(this.htmlUrl);
    dest.writeLong(this.closedAt != null ? this.closedAt.getTime() : -1);
    dest.writeLong(this.createdAt != null ? this.createdAt.getTime() : -1);
    dest.writeLong(this.updatedAt != null ? this.updatedAt.getTime() : -1);
    dest.writeInt(this.changedFiles);
    dest.writeString(this.diffUrl);
    dest.writeString(this.patchUrl);
    dest.writeString(this.mergeCommitSha);
    dest.writeLong(this.mergedAt != null ? this.mergedAt.getTime() : -1);
    dest.writeString(this.mergeState);
    dest.writeInt(this.reviewComments);
    dest.writeString(this.repoId);
    dest.writeString(this.login);
    dest.writeTypedList(this.assignees);
    dest.writeParcelable(this.mergedBy, flags);
    dest.writeParcelable(this.closedBy, flags);
    dest.writeParcelable(this.user, flags);
    dest.writeParcelable(this.assignee, flags);
    dest.writeTypedList(this.labels);
    dest.writeParcelable(this.milestone, flags);
    dest.writeParcelable(this.base, flags);
    dest.writeParcelable(this.head, flags);
    dest.writeParcelable(this.pullRequest, flags);
    dest.writeParcelable(this.reactions, flags);
}
 
Example 17
Project: Phoenix-for-VK   File: IdOption.java   View Source Code Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(id);
    dest.writeString(title);
    dest.writeTypedList(childs);
}
 
Example 18
Project: BLPlayer   File: HomeData.java   View Source Code Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeTypedList(this.banner);
    dest.writeTypedList(this.video_list);
}
 
Example 19
Project: UndoEditText   File: EditActionStack.java   View Source Code Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeTypedList(this.list);
    dest.writeInt(this.maxCapacity);
}
 
Example 20
Project: Phoenix-for-VK   File: FwdMessages.java   View Source Code Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeTypedList(fwds);
}