List of usage examples for android.os Parcel writeString
public final void writeString(String val)
From source file:tv.yatse.plugin.avreceiver.api.PluginCustomCommand.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(PARCELABLE_VERSION);//from w w w . j a va 2 s . com dest.writeLong(mId); dest.writeInt(mColor); dest.writeString(mDescription); dest.writeInt(mDisplayOrder); dest.writeString(mIcon); dest.writeString(mParam1); dest.writeString(mParam2); dest.writeString(mParam3); dest.writeString(mParam4); dest.writeString(mParam5); dest.writeInt(mReadOnly ? 1 : 0); dest.writeString(mSource); dest.writeString(mTitle); dest.writeInt(mType); dest.writeString(mUniqueId); }
From source file:com.nextgis.firereporter.ScanexNotificationItem.java
public void writeToParcel(Parcel out, int flags) { out.writeSerializable(dt); // private Date dt; out.writeDouble(X);/*from w w w . j a va 2s. c om*/ out.writeDouble(Y); // private double X,Y; out.writeInt(nIconId); // private nIconId; out.writeLong(nID); // private long nFid; out.writeInt(nConfidence); // private int nConfidence; out.writeInt(nPower); // private int nPower; out.writeString(sURL1); // private String sURL1 out.writeString(sURL2); // private String sURL2 out.writeString(sType); // private String sType out.writeString(sPlace); // private String sPlace out.writeString(sMap); // private String sMap out.writeInt(mbWatched == true ? 1 : 0); // private boolean mbWatched // out.writeInt(nFormat); out.writeString(sCoordLat); out.writeString(sCoordLon); out.writeString(sN); out.writeString(sS); out.writeString(sW); out.writeString(sE); }
From source file:com.tdispatch.passenger.model.BookingData.java
@Override public void writeToParcel(Parcel out, int flags) { out.writeLong(getLocalId());//from w w w . j a v a 2 s . co m out.writeString(getPk()); out.writeString(getBookingKey()); out.writeString(getDriverPk()); out.writeString(getPickupDateString()); out.writeParcelable(getPickupLocation(), 0); out.writeParcelable(getDropoffLocation(), 0); out.writeInt(getPassengerCount()); out.writeInt(getLuggageCount()); out.writeString(getFlightNumber()); out.writeDouble(getDistanceKm()); out.writeDouble(getDistanceMiles()); out.writeString(getCustomerName()); out.writeString(getCustomerPhone()); out.writeString(getExtraInfo()); out.writeString(getPaymentStatus()); out.writeInt(getPaymentMethod()); out.writeByte((byte) (isPrepaid() ? 1 : 0)); out.writeString(getCost()); out.writeString(getTotalCost()); out.writeString(getCabOfficeName()); out.writeString(getCabOfficeSlug()); out.writeInt(getType()); out.writeString(getReceiptUrl()); out.writeString(getJson().toString()); out.writeInt(mWayPoints.size()); for (LocationData item : mWayPoints) { out.writeParcelable(item, 0); } }
From source file:com.jefftharris.passwdsafe.file.PasswdFileUri.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeParcelable(itsUri, flags); dest.writeString(itsType.name()); dest.writeString((itsFile != null) ? itsFile.getAbsolutePath() : null); dest.writeString(itsTitle);//from ww w. ja va 2 s. c om dest.writeString((itsSyncType != null) ? itsSyncType.name() : null); }
From source file:com.vk.sdk.api.model.VKApiCommunityFull.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeParcelable(this.city, flags); dest.writeParcelable(this.country, flags); dest.writeParcelable(this.status_audio, flags); dest.writeParcelable(this.place, flags); dest.writeString(this.description); dest.writeString(this.wiki_page); dest.writeInt(this.members_count); dest.writeParcelable(this.counters, flags); dest.writeLong(this.start_date); dest.writeLong(this.end_date); dest.writeByte(can_post ? (byte) 1 : (byte) 0); dest.writeByte(can_see_all_posts ? (byte) 1 : (byte) 0); dest.writeString(this.status); dest.writeParcelable(this.contacts, flags); dest.writeParcelable(this.links, flags); dest.writeInt(this.fixed_post); dest.writeByte(verified ? (byte) 1 : (byte) 0); dest.writeString(this.site); dest.writeByte(blacklisted ? (byte) 1 : (byte) 0); }
From source file:de.azapps.mirakel.model.list.ListMirakel.java
@Override public void writeToParcel(final Parcel dest, final int flags) { dest.writeInt(this.sortBy.ordinal()); dest.writeString(this.createdAt); dest.writeString(this.updatedAt); dest.writeInt(this.syncState.ordinal()); dest.writeInt(this.lft); dest.writeInt(this.rgt); dest.writeInt(this.color); dest.writeLong(this.accountID); dest.writeByte(isSpecial ? (byte) 1 : (byte) 0); dest.writeLong(this.getId()); dest.writeString(this.getName()); }
From source file:com.github.michalbednarski.intentslab.browser.ComponentFetcher.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt((testWritePermissionForProviders ? 2 : 0)); dest.writeInt(type);//from w w w. j av a 2s .co m dest.writeInt(appType); dest.writeInt(protection); dest.writeString(requireMetaDataSubstring); }
From source file:com.frodo.github.bean.dto.response.Repo.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeByte(fork ? (byte) 1 : (byte) 0); dest.writeByte(isPrivate ? (byte) 1 : (byte) 0); dest.writeLong(created_at != null ? created_at.getTime() : -1); dest.writeLong(pushed_at != null ? pushed_at.getTime() : -1); dest.writeLong(updated_at != null ? updated_at.getTime() : -1); dest.writeInt(this.forks_count); dest.writeLong(this.id); dest.writeParcelable(this.parent, 0); dest.writeParcelable(this.source, 0); dest.writeString(this.clone_url); dest.writeString(this.forks_url); dest.writeString(this.description); dest.writeString(this.homepage); dest.writeString(this.git_url); dest.writeString(this.contents_url); dest.writeString(this.language); dest.writeString(this.default_branch); dest.writeString(this.mirror_url); dest.writeString(this.name); dest.writeString(this.full_name); dest.writeString(this.ssh_url); dest.writeString(this.svn_url); dest.writeParcelable(this.owner, 0); dest.writeInt(this.stargazers_count); dest.writeInt(this.subscribers_count); dest.writeInt(this.network_count); dest.writeInt(this.watchers_count); dest.writeInt(this.size); dest.writeInt(this.open_issues_count); dest.writeByte(has_issues ? (byte) 1 : (byte) 0); dest.writeByte(has_downloads ? (byte) 1 : (byte) 0); dest.writeByte(has_wiki ? (byte) 1 : (byte) 0); dest.writeParcelable(this.permissions, 0); dest.writeParcelable(this.license, 0); dest.writeTypedList(branches);// ww w .ja va 2s .c o m dest.writeString(archive_url); }
From source file:edu.umich.flowfence.common.QMDetails.java
@Override public void writeToParcel(Parcel dest, int flags) { // This space will be filled in with the final size of the object, minus this header. final int headerPos = dest.dataPosition(); dest.writeInt(0);/*from ww w .j a v a2s . c om*/ final int startPos = dest.dataPosition(); // Special handling for completely null objects - leave length at zero. if (ObjectUtils.firstNonNull(descriptor, resultType, paramInfo, requiredTaints, optionalTaints) == null) { if (localLOGV) { Log.v(TAG, "Null case, writing size 0"); } return; } QMDescriptor.writeToParcel(descriptor, dest, flags); dest.writeString(resultType); dest.writeTypedList(paramInfo); TaintSet.writeToParcel(requiredTaints, dest, flags); TaintSet.writeToParcel(optionalTaints, dest, flags); final int endPos = dest.dataPosition(); dest.setDataPosition(headerPos); dest.writeInt(endPos - startPos); dest.setDataPosition(endPos); if (localLOGV) { Log.v(TAG, "Total size: " + (endPos - startPos)); } }
From source file:edu.umich.oasis.common.SodaDetails.java
@Override public void writeToParcel(Parcel dest, int flags) { // This space will be filled in with the final size of the object, minus this header. final int headerPos = dest.dataPosition(); dest.writeInt(0);/*from w w w . java 2 s . co m*/ final int startPos = dest.dataPosition(); // Special handling for completely null objects - leave length at zero. if (ObjectUtils.firstNonNull(descriptor, resultType, paramInfo, requiredTaints, optionalTaints) == null) { if (localLOGV) { Log.v(TAG, "Null case, writing size 0"); } return; } SodaDescriptor.writeToParcel(descriptor, dest, flags); dest.writeString(resultType); dest.writeTypedList(paramInfo); TaintSet.writeToParcel(requiredTaints, dest, flags); TaintSet.writeToParcel(optionalTaints, dest, flags); final int endPos = dest.dataPosition(); dest.setDataPosition(headerPos); dest.writeInt(endPos - startPos); dest.setDataPosition(endPos); if (localLOGV) { Log.v(TAG, "Total size: " + (endPos - startPos)); } }