Java Code Examples for android.os.Parcel#writeList()

The following examples show how to use android.os.Parcel#writeList() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: V2EX   File: Topic.java    License: GNU General Public License v3.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeString(this.title);
    dest.writeLong(this.last_touched);
    dest.writeLong(this.last_modified);
    dest.writeString(this.url);
    dest.writeLong(this.created);
    dest.writeInt(this.clicks);
    dest.writeInt(this.favors);
    dest.writeInt(this.thanks);
    dest.writeInt(this.replies);
    dest.writeString(this.content);
    dest.writeString(this.content_rendered);
    dest.writeString(this.last_reply_by);
    dest.writeParcelable(this.member, flags);
    dest.writeParcelable(this.node, flags);
    dest.writeList(this.replyList);
    dest.writeList(this.tags);
}
 
Example 2
Source Project: 920-text-editor-v2   File: ExtGrep.java    License: Apache License 2.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeByte(invertMatch ? (byte) 1 : (byte) 0);
    dest.writeByte(ignoreCase ? (byte) 1 : (byte) 0);
    dest.writeInt(this.maxCount);
    dest.writeByte(printFileNameOnly ? (byte) 1 : (byte) 0);
    dest.writeByte(printByteOffset ? (byte) 1 : (byte) 0);
    dest.writeByte(quiet ? (byte) 1 : (byte) 0);
    dest.writeByte(printCountOnly ? (byte) 1 : (byte) 0);
    dest.writeByte(printFilesWithoutMatch ? (byte) 1 : (byte) 0);
    dest.writeByte(wordRegex ? (byte) 1 : (byte) 0);
    dest.writeByte(lineRegex ? (byte) 1 : (byte) 0);
    dest.writeByte(noMessages ? (byte) 1 : (byte) 0);
    dest.writeByte(printFileName ? (byte) 1 : (byte) 0);
    dest.writeByte(printMatchOnly ? (byte) 1 : (byte) 0);
    dest.writeByte(printLineNumber ? (byte) 1 : (byte) 0);
    dest.writeByte(recurseDirectories ? (byte) 1 : (byte) 0);
    dest.writeByte(skipDirectories ? (byte) 1 : (byte) 0);
    dest.writeStringList(this.excludeFilePatterns);
    dest.writeByte(useInclude ? (byte) 1 : (byte) 0);
    dest.writeByte(useExclude ? (byte) 1 : (byte) 0);
    dest.writeInt(this.beforeContext);
    dest.writeInt(this.afterContext);
    dest.writeString(this.regex);
    dest.writeList(this.filesToProcess);
}
 
Example 3
Source Project: xmrwallet   File: TransactionInfo.java    License: Apache License 2.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel out, int flags) {
    out.writeInt(direction.getValue());
    out.writeByte((byte) (isPending ? 1 : 0));
    out.writeByte((byte) (isFailed ? 1 : 0));
    out.writeLong(amount);
    out.writeLong(fee);
    out.writeLong(blockheight);
    out.writeString(hash);
    out.writeLong(timestamp);
    out.writeString(paymentId);
    out.writeInt(account);
    out.writeInt(subaddress);
    out.writeLong(confirmations);
    out.writeString(subaddressLabel);
    out.writeList(transfers);
    out.writeString(txKey);
    out.writeString(notes);
    out.writeString(address);
}
 
Example 4
Source Project: edx-app-android   File: SocialMessage.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(this.id);
    dest.writeString(this.message);
    dest.writeParcelable(this.author, 0);
    dest.writeList(this.comments);
}
 
Example 5
@Override
public void writeToParcel(Parcel dest, int flags)
{

    dest.writeInt(this.tid);
    dest.writeInt(this.reid);
    dest.writeString(this.name);
    dest.writeString(this.logo);
    dest.writeString(this.gotoX);
    dest.writeString(this.param);
    dest.writeList(this.children);
}
 
Example 6
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeDouble(this.getAvg());
    dest.writeDouble(this.getMin());
    dest.writeDouble(this.getMax());
    dest.writeList(this.getPitches());
}
 
Example 7
Source Project: Defrag   File: ViewStack.java    License: Apache License 2.0 5 votes vote down vote up
@Override public void writeToParcel(Parcel dest, int flags) {
	if (stack == null) {
		dest.writeByte((byte) (0x00));
	} else {
		dest.writeByte((byte) (0x01));
		dest.writeList(stack);
	}
	dest.writeParcelable(superState, PARCELABLE_WRITE_RETURN_VALUE);
}
 
Example 8
Source Project: droidddle   File: Shot.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeValue(this.id);
    dest.writeString(this.title);
    dest.writeString(this.description);
    dest.writeValue(this.width);
    dest.writeValue(this.height);
    dest.writeParcelable(this.images, flags);
    dest.writeValue(this.viewsCount);
    dest.writeValue(this.likesCount);
    dest.writeValue(this.commentsCount);
    dest.writeValue(this.attachmentsCount);
    dest.writeValue(this.reboundsCount);
    dest.writeValue(this.bucketsCount);
    dest.writeLong(createdAt != null ? createdAt.getTime() : -1);
    dest.writeLong(updatedAt != null ? updatedAt.getTime() : -1);
    dest.writeString(this.htmlUrl);
    dest.writeString(this.attachmentsUrl);
    dest.writeString(this.bucketsUrl);
    dest.writeString(this.commentsUrl);
    dest.writeString(this.likesUrl);
    dest.writeString(this.projectsUrl);
    dest.writeString(this.reboundsUrl);
    dest.writeString(this.reboundSourceUrl);
    dest.writeList(this.tags);
    dest.writeParcelable(this.user, 0);
    dest.writeParcelable(this.team, flags);
}
 
Example 9
public void writeToParcel(Parcel out, int flags) {
    out.writeInt(id);
    out.writeString(short_name);
    out.writeString(name);
    out.writeList(types);
    out.writeDouble(price);
    out.writeString(currency);
    out.writeDouble(taxRate);
    out.writeString(sign);
    out.writeString(service_id);
    out.writeString(inapp_secret);

}
 
Example 10
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(filename);
    dest.writeList(filecontent);
}
 
Example 11
Source Project: arcusandroid   File: PersonRelationship.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeByte(selected ? (byte) 1 : (byte) 0);
    parcel.writeString(name);
    parcel.writeList(children);
}
 
Example 12
Source Project: AndroidForiOS   File: TripList.java    License: MIT License 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(subwayLine.getLineName());
    dest.writeLong(currentTime.getTime());
    dest.writeList(trips);
}
 
Example 13
Source Project: UltimateAndroid   File: Patio.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeList(mThumbnailsPaths);
    out.writeString(mTakePictureFilePath);
}
 
Example 14
Source Project: DeviceConnect-Android   File: ServiceData.java    License: MIT License 4 votes vote down vote up
@Override
public void writeToParcel(final Parcel parcel, final int flags) {
    parcel.writeString(mServiceId);
    parcel.writeString(mName);
    parcel.writeList(mProfileDataList);
}
 
Example 15
Source Project: incubator-taverna-mobile   File: Run.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeValue(this.workflowId);
    dest.writeString(this.name);
    dest.writeList(this.inputsAttributes);
}
 
Example 16
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeList(this.WorkflowList);
}
 
Example 17
Source Project: solid   File: SolidList.java    License: MIT License 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeList(list);
}
 
Example 18
@Override
public void writeToParcel(Parcel p, int arg1) {
    p.writeInt(isPolygon ? 1 : 0);
    p.writeInt(resource);
    p.writeList(points);
}
 
Example 19
Source Project: PigeonholeView   File: MyDataList.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeList(this);
}
 
Example 20
Source Project: Jager   File: Collections.java    License: GNU General Public License v3.0 4 votes vote down vote up
@Override
public void writeToParcel (Parcel parcel, int i) {
	parcel.writeList (collections);
}