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

The following examples show how to use android.os.Parcel#writeStringList() . 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 File: BusinessPayment.java    From px-android with MIT License 6 votes vote down vote up
@Override
public void writeToParcel(final Parcel dest, final int flags) {
    dest.writeInt(iconId);
    dest.writeString(title);
    dest.writeByte((byte) (shouldShowPaymentMethod ? 1 : 0));
    dest.writeParcelable(exitActionPrimary, flags);
    dest.writeParcelable(exitActionSecondary, flags);
    dest.writeString(decorator.name);
    dest.writeString(help);
    dest.writeString(statementDescription);
    dest.writeString(receiptId);
    dest.writeString(imageUrl);
    dest.writeParcelable(topFragment, 0);
    dest.writeParcelable(bottomFragment, 0);
    dest.writeParcelable(importantFragment, 0);
    dest.writeString(paymentStatus);
    dest.writeString(paymentStatusDetail);
    dest.writeString(subtitle);
    dest.writeString(paymentMethodId);
    dest.writeString(paymentTypeId);
    dest.writeStringList(receiptIdList);
    dest.writeByte((byte) (shouldShowReceipt ? 1 : 0));
}
 
Example 2
Source File: DeviceState.java    From spark-sdk-android with Apache License 2.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(deviceId);
    dest.writeValue(name);
    dest.writeValue(isConnected);
    dest.writeStringList(new ArrayList<>(functions));
    Parcelables.writeSerializableMap(dest, variables);
    dest.writeValue(version);
    dest.writeValue(deviceType != null ? deviceType.name() : null);
    dest.writeValue(platformId);
    dest.writeValue(productId);
    dest.writeValue(cellular);
    dest.writeValue(imei);
    dest.writeValue(lastIccid);
    dest.writeValue(currentBuild);
    dest.writeValue(defaultBuild);
    dest.writeValue(ipAddress);
    dest.writeValue(lastAppName);
    dest.writeValue(status);
    dest.writeValue(requiresUpdate);
    dest.writeValue(lastHeard != null ? lastHeard.getTime() : 0);
}
 
Example 3
Source File: Link.java    From Klyph with MIT License 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags)
{
	dest.writeString(backdated_time);
	dest.writeByte((byte) (can_backdate ? 1 : 0));
	dest.writeString(caption);
	dest.writeParcelable(comment_info, PARCELABLE_WRITE_RETURN_VALUE);
	dest.writeString(created_time);
	dest.writeStringList(image_urls);
	dest.writeParcelable(like_info, PARCELABLE_WRITE_RETURN_VALUE);
	dest.writeString(link_id);
	dest.writeString(owner);
	dest.writeString(owner_comment);
	dest.writeString(owner_cursor);
	dest.writeString(owner_name);
	dest.writeString(owner_pic);
	dest.writeString(owner_type);
	dest.writeString(picture);
	dest.writeParcelable(privacy, PARCELABLE_WRITE_RETURN_VALUE);
	dest.writeString(summary);
	dest.writeString(title);
	dest.writeString(url);
	dest.writeString(via_id);
	dest.writeString(via_name);
	dest.writeString(via_type);
	dest.writeString(xid);
}
 
Example 4
Source File: Hop.java    From biermacht with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel p, int flags) {
  super.writeToParcel(p, flags);

  // Required
  p.writeDouble(alpha);
  p.writeString(use);

  // Optional
  p.writeString(type);
  p.writeString(form);
  p.writeString(origin);
  p.writeStringList(substitutes);
  p.writeString(description);
}
 
Example 5
Source File: Nabi.java    From BiodataNabi with MIT License 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.nama);
    dest.writeString(this.alias);
    dest.writeString(this.usia);
    dest.writeString(this.periode);
    dest.writeString(this.tempatDiUtus);
    dest.writeString(this.tempatWafat);
    dest.writeString(this.disebutDalamAlquran);
    dest.writeString(this.sebutanKaum);
    dest.writeString(this.jumlahKeturunan);
    dest.writeStringList(this.garisKeturunan);
}
 
Example 6
Source File: Route.java    From GoogleDirectionLibrary with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeParcelable(bound, i);
    parcel.writeString(copyrights);
    parcel.writeParcelable(overviewPolyline, i);
    parcel.writeString(summary);
    parcel.writeParcelable(fare, i);
    parcel.writeStringList(warningList);
}
 
Example 7
Source File: RequestConfig.java    From ImageSelector with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeByte(this.isCrop ? (byte) 1 : (byte) 0);
    dest.writeByte(this.useCamera ? (byte) 1 : (byte) 0);
    dest.writeByte(this.onlyTakePhoto ? (byte) 1 : (byte) 0);
    dest.writeByte(this.isSingle ? (byte) 1 : (byte) 0);
    dest.writeByte(this.canPreview ? (byte) 1 : (byte) 0);
    dest.writeInt(this.maxSelectCount);
    dest.writeStringList(this.selected);
    dest.writeFloat(this.cropRatio);
    dest.writeInt(this.requestCode);
}
 
Example 8
Source File: Details.java    From ArchPackages with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.pkgdesc);
    dest.writeStringList(this.depends);
    dest.writeStringList(this.licenses);
    dest.writeString(this.lastUpdate);
    dest.writeString(this.buildDate);
    dest.writeString(this.compressedSize);
    dest.writeString(this.installedSize);
    dest.writeString(this.filename);
    dest.writeString(this.epoch);
    dest.writeStringList(this.provides);
    dest.writeStringList(this.makedepends);
    dest.writeStringList(this.checkdepends);
    dest.writeString(this.repo);
    dest.writeStringList(this.maintainers);
    dest.writeStringList(this.groups);
    dest.writeStringList(this.conflicts);
    dest.writeString(this.packager);
    dest.writeString(this.arch);
    dest.writeString(this.pkgver);
    dest.writeStringList(this.replaces);
    dest.writeString(this.pkgname);
    dest.writeStringList(this.optdepends);
    dest.writeString(this.url);
    dest.writeString(this.pkgbase);
    dest.writeString(this.pkgrel);
    dest.writeString(this.flagDate);
}
 
Example 9
Source File: Result.java    From ArchPackages with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.pkgdesc);
    dest.writeStringList(this.depends);
    dest.writeStringList(this.licenses);
    dest.writeString(this.lastUpdate);
    dest.writeString(this.buildDate);
    dest.writeString(this.compressedSize);
    dest.writeString(this.installedSize);
    dest.writeString(this.filename);
    dest.writeString(this.epoch);
    dest.writeStringList(this.provides);
    dest.writeStringList(this.makedepends);
    dest.writeStringList(this.checkdepends);
    dest.writeString(this.repo);
    dest.writeStringList(this.maintainers);
    dest.writeStringList(this.groups);
    dest.writeStringList(this.conflicts);
    dest.writeString(this.packager);
    dest.writeString(this.arch);
    dest.writeString(this.pkgver);
    dest.writeStringList(this.replaces);
    dest.writeString(this.pkgname);
    dest.writeStringList(this.optdepends);
    dest.writeString(this.url);
    dest.writeString(this.pkgbase);
    dest.writeString(this.pkgrel);
    dest.writeString(this.flagDate);
}
 
Example 10
Source File: News.java    From Flora with MIT License 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this._id);
    dest.writeString(this.createdAt);
    dest.writeString(this.desc);
    dest.writeString(this.publishedAt);
    dest.writeString(this.source);
    dest.writeString(this.type);
    dest.writeString(this.url);
    dest.writeByte(this.used ? (byte) 1 : (byte) 0);
    dest.writeString(this.who);
    dest.writeStringList(this.images);
}
 
Example 11
Source File: StoriesEntity.java    From RxZhihuPager with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.type);
    dest.writeInt(this.id);
    dest.writeString(this.ga_prefix);
    dest.writeString(this.title);
    dest.writeStringList(this.images);
    dest.writeByte(isRead ? (byte) 1 : (byte) 0);
}
 
Example 12
Source File: NoteEntity.java    From CrazyDaily with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeValue(this.id);
    dest.writeStringList(this.images);
    dest.writeString(this.videoUrl);
    dest.writeString(this.text);
    dest.writeByte(this.isCanDownload ? (byte) 1 : (byte) 0);
    dest.writeValue(this.flag);
}
 
Example 13
Source File: SkinEntity.java    From NewFastFrame with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeString(url);
    parcel.writeString(path);
    parcel.writeString(title);
    parcel.writeByte((byte) (hasSelected ? 1 : 0));
    parcel.writeStringList(imageList);
}
 
Example 14
Source File: Shot.java    From android-proguards with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(id);
    dest.writeString(title);
    dest.writeString(url);
    dest.writeString(description);
    dest.writeLong(width);
    dest.writeLong(height);
    dest.writeValue(images);
    dest.writeLong(views_count);
    dest.writeLong(likes_count);
    dest.writeLong(comments_count);
    dest.writeLong(attachments_count);
    dest.writeLong(rebounds_count);
    dest.writeLong(buckets_count);
    dest.writeLong(created_at != null ? created_at.getTime() : -1L);
    dest.writeLong(updated_at != null ? updated_at.getTime() : -1L);
    dest.writeString(html_url);
    dest.writeString(attachments_url);
    dest.writeString(buckets_url);
    dest.writeString(comments_url);
    dest.writeString(likes_url);
    dest.writeString(projects_url);
    dest.writeString(rebounds_url);
    dest.writeByte((byte) (animated ? 0x01 : 0x00));
    dest.writeStringList(tags);
    dest.writeValue(user);
    dest.writeValue(team);
    dest.writeByte((byte) (hasFadedIn ? 0x01 : 0x00));
}
 
Example 15
Source File: Voice.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mName);
    dest.writeSerializable(mLocale);
    dest.writeInt(mQuality);
    dest.writeInt(mLatency);
    dest.writeByte((byte) (mRequiresNetworkConnection ? 1 : 0));
    dest.writeStringList(new ArrayList<String>(mFeatures));
}
 
Example 16
Source File: Link.java    From KlyphMessenger with MIT License 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags)
{
	dest.writeString(backdated_time);
	dest.writeByte((byte) (can_backdate ? 1 : 0));
	dest.writeString(caption);
	dest.writeParcelable(comment_info, PARCELABLE_WRITE_RETURN_VALUE);
	dest.writeString(created_time);
	dest.writeStringList(image_urls);
	dest.writeParcelable(like_info, PARCELABLE_WRITE_RETURN_VALUE);
	dest.writeString(link_id);
	dest.writeString(owner);
	dest.writeString(owner_comment);
	dest.writeString(owner_cursor);
	dest.writeString(owner_name);
	dest.writeString(owner_pic);
	dest.writeString(owner_type);
	dest.writeString(picture);
	dest.writeParcelable(privacy, PARCELABLE_WRITE_RETURN_VALUE);
	dest.writeString(summary);
	dest.writeString(title);
	dest.writeString(url);
	dest.writeString(via_id);
	dest.writeString(via_name);
	dest.writeString(via_type);
	dest.writeString(xid);
}
 
Example 17
Source File: BTDeviceUSourceData.java    From Easer with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeStringList(hwAddresses);
}
 
Example 18
Source File: BookSubSortBean.java    From NovelReader with MIT License 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(major);
    dest.writeStringList(mins);
}
 
Example 19
Source File: GenericListParcelable.java    From android-parcelable-intellij-plugin with Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeStringList(this.stringList);
    dest.writeList(this.intList);
}
 
Example 20
Source File: Student.java    From Learning-Rxandroid with Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.name);
    dest.writeStringList(this.cources);
}