List of usage examples for android.os Parcel writeString
public final void writeString(String val)
From source file:com.vk.sdk.api.model.VKApiUserFull.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeString(this.activity); dest.writeParcelable(this.status_audio, flags); dest.writeString(this.bdate); dest.writeParcelable(this.city, flags); dest.writeParcelable(this.country, flags); dest.writeLong(this.last_seen); dest.writeParcelable(this.universities, flags); dest.writeParcelable(this.schools, flags); dest.writeInt(this.smoking); dest.writeInt(this.alcohol); dest.writeInt(this.political); dest.writeInt(this.life_main); dest.writeInt(this.people_main); dest.writeString(this.inspired_by); dest.writeStringArray(this.langs); dest.writeString(this.religion); dest.writeString(this.facebook); dest.writeString(this.facebook_name); dest.writeString(this.livejournal); dest.writeString(this.skype); dest.writeString(this.site); dest.writeString(this.twitter); dest.writeString(this.instagram); dest.writeString(this.mobile_phone); dest.writeString(this.home_phone); dest.writeString(this.screen_name); dest.writeString(this.activities); dest.writeString(this.interests); dest.writeString(this.movies); dest.writeString(this.tv); dest.writeString(this.books); dest.writeString(this.games); dest.writeString(this.about); dest.writeString(this.quotes); dest.writeByte(can_post ? (byte) 1 : (byte) 0); dest.writeByte(can_see_all_posts ? (byte) 1 : (byte) 0); dest.writeByte(can_write_private_message ? (byte) 1 : (byte) 0); dest.writeByte(wall_comments ? (byte) 1 : (byte) 0); dest.writeByte(is_banned ? (byte) 1 : (byte) 0); dest.writeByte(is_deleted ? (byte) 1 : (byte) 0); dest.writeByte(wall_default_owner ? (byte) 1 : (byte) 0); dest.writeByte(verified ? (byte) 1 : (byte) 0); dest.writeInt(this.sex); dest.writeParcelable(this.counters, flags); dest.writeParcelable(this.occupation, flags); dest.writeInt(this.relation); dest.writeParcelable(this.relatives, flags); dest.writeByte(blacklisted_by_me ? (byte) 1 : (byte) 0); }
From source file:com.orbar.pxdemo.Model.FiveZeroZeroImageBean.java
@Override public void writeToParcel(Parcel dest, int flags) { Log.v(TAG, "writeToParcel..." + flags); dest.writeInt(id);/*from w ww.j a v a 2 s.c o m*/ dest.writeInt(userId); dest.writeString(name); dest.writeString(description); dest.writeString(camera); dest.writeString(lens); dest.writeString(focalLength); dest.writeString(iso); dest.writeString(shutterSpeed); dest.writeString(aperture); dest.writeInt(timesViewed); dest.writeFloat(rating); dest.writeString(createdAt); dest.writeInt(status); dest.writeString(createdAt); dest.writeInt(category); dest.writeString(location); dest.writeByte((byte) (privacy ? 1 : 0)); // Boolean dest.writeString(latitude); dest.writeString(longitude); dest.writeString(takenAt); dest.writeInt(hiResUploaded); dest.writeByte((byte) (forSale ? 1 : 0)); // Boolean dest.writeInt(width); dest.writeInt(height); dest.writeInt(votesCount); dest.writeInt(favoritesCount); dest.writeInt(commentsCount); dest.writeByte((byte) (nsfw ? 1 : 0)); // Boolean dest.writeInt(salesCount); dest.writeFloat(highestRating); dest.writeString(highestRatingDate); dest.writeInt(licenseType); dest.writeString(imageUrl); dest.writeByte((byte) (storeDownload ? 1 : 0)); // Boolean dest.writeByte((byte) (storePrint ? 1 : 0)); // Boolean dest.writeByte((byte) (voted ? 1 : 0)); // Boolean dest.writeByte((byte) (favorited ? 1 : 0)); // Boolean dest.writeByte((byte) (purchased ? 1 : 0)); // Boolean dest.writeParcelable(userBean, flags); }
From source file:com.tct.mail.providers.Attachment.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(name); dest.writeInt(size);//from www .ja va 2 s .c om dest.writeParcelable(uri, flags); dest.writeString(contentType); dest.writeInt(state); dest.writeInt(destination); dest.writeInt(downloadedSize); dest.writeParcelable(contentUri, flags); dest.writeParcelable(thumbnailUri, flags); dest.writeParcelable(previewIntentUri, flags); dest.writeString(providerData); dest.writeInt(supportsDownloadAgain ? 1 : 0); dest.writeInt(type); dest.writeInt(flags); //TS: wenggangjin 2014-12-10 EMAIL BUGFIX_852100 MOD_S dest.writeString(contentId); //TS: wenggangjin 2014-12-10 EMAIL BUGFIX_852100 MOD_E //TS: zhonghua.tuo 2015-3-3 EMAIL BUGFIX_936728 ADD_S dest.writeParcelable(realUri, flags); //TS: zhonghua.tuo 2015-3-3 EMAIL BUGFIX_936728 ADD_E // TS: Gantao 2015-09-19 EMAIL BUGFIX_570084 ADD_S dest.writeInt(isInline); // TS: Gantao 2015-09-19 EMAIL BUGFIX_570084 ADD_E }
From source file:com.echopf.ECHODataObject.java
public void writeToParcel(Parcel out, int flags) { out.writeString(this.instanceId); out.writeString(this.resourceType); out.writeString(this.refid); out.writeString((data != null) ? data.toString() : ""); out.writeString((newACL != null) ? newACL.toString() : ""); out.writeString((currentACL != null) ? currentACL.toString() : ""); out.writeString((multipart != null) ? multipart.toString() : ""); }
From source file:com.android.emailcommon.provider.Account.java
/** * Supports Parcelable//w ww . j av a 2 s.c o m */ @Override public void writeToParcel(Parcel dest, int flags) { // mBaseUri is not parceled dest.writeLong(mId); dest.writeString(mDisplayName); dest.writeString(mEmailAddress); dest.writeString(mSyncKey); dest.writeInt(mSyncLookback); dest.writeInt(mSyncInterval); dest.writeLong(mHostAuthKeyRecv); dest.writeLong(mHostAuthKeySend); dest.writeInt(mFlags); dest.writeString("" /* mCompatibilityUuid */); dest.writeString(mSenderName); dest.writeString(mRingtoneUri); dest.writeString(mProtocolVersion); dest.writeInt(0 /* mNewMessageCount */); dest.writeString(mSecuritySyncKey); dest.writeString(mSignature); dest.writeLong(mPolicyKey); if (mHostAuthRecv != null) { dest.writeByte((byte) 1); mHostAuthRecv.writeToParcel(dest, flags); } else { dest.writeByte((byte) 0); } if (mHostAuthSend != null) { dest.writeByte((byte) 1); mHostAuthSend.writeToParcel(dest, flags); } else { dest.writeByte((byte) 0); } }
From source file:com.google.android.apps.dashclock.api.ExtensionData.java
@Override public void writeToParcel(Parcel parcel, int i) { /**// ww w . j a v a 2 s. com * NOTE: When adding fields in the process of updating this API, make sure to bump * {@link #PARCELABLE_VERSION}. */ parcel.writeInt(PARCELABLE_VERSION); // Inject a placeholder that will store the parcel size from this point on // (not including the size itself). int sizePosition = parcel.dataPosition(); parcel.writeInt(0); int startPosition = parcel.dataPosition(); // Version 1 below parcel.writeInt(mVisible ? 1 : 0); parcel.writeInt(mIcon); parcel.writeString(TextUtils.isEmpty(mStatus) ? "" : mStatus); parcel.writeString(TextUtils.isEmpty(mExpandedTitle) ? "" : mExpandedTitle); parcel.writeString(TextUtils.isEmpty(mExpandedBody) ? "" : mExpandedBody); parcel.writeString((mClickIntent == null) ? "" : mClickIntent.toUri(0)); // Version 2 below parcel.writeString(TextUtils.isEmpty(mContentDescription) ? "" : mContentDescription); parcel.writeString(mIconUri == null ? "" : mIconUri.toString()); // Go back and write the size int parcelableSize = parcel.dataPosition() - startPosition; parcel.setDataPosition(sizePosition); parcel.writeInt(parcelableSize); parcel.setDataPosition(startPosition + parcelableSize); }
From source file:org.y20k.transistor.core.Station.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(TITLE); dest.writeString(StreamURI);//from w w w. ja va 2 s . c o m dest.writeBundle(mStationFetchResults); dest.writeByte((byte) (mPlayback ? 1 : 0)); // if mPlayback == true, byte == 1 dest.writeLong(_ID); dest.writeString(UNIQUE_ID); dest.writeString(SUBTITLE); dest.writeString(IMAGE_PATH); dest.writeString(IMAGE_FILE_NAME); dest.writeString(SMALL_IMAGE_FILE_NAME); dest.writeString(CONTENT_TYPE); dest.writeString(DESCRIPTION); dest.writeInt(RATING); dest.writeString(COMMA_SEPARATED_TAGS); dest.writeString(CATEGORY); dest.writeString(MarkdownDescription); dest.writeString(SMALL_IMAGE_PATH); dest.writeInt(IS_FAVOURITE); dest.writeString(THUMP_UP_STATUS); }
From source file:com.wootric.androidsdk.objects.Settings.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeValue(this.firstSurvey); dest.writeValue(this.userID); dest.writeValue(this.accountID); dest.writeInt(this.adminPanelTimeDelay); dest.writeParcelable(this.localizedTexts, 0); dest.writeParcelable(this.adminPanelCustomMessage, 0); dest.writeParcelable(this.localCustomMessage, 0); dest.writeInt(this.timeDelay); dest.writeByte(surveyImmediately ? (byte) 1 : (byte) 0); dest.writeValue(this.dailyResponseCap); dest.writeValue(this.registeredPercent); dest.writeValue(this.visitorPercent); dest.writeValue(this.resurveyThrottle); dest.writeValue(this.declineResurveyThrottle); dest.writeString(this.languageCode); dest.writeString(this.productName); dest.writeString(this.recommendTarget); dest.writeString(this.facebookPageId); dest.writeString(this.twitterPage); dest.writeParcelable(this.customThankYou, 0); }
From source file:android.database.DatabaseUtils.java
/** * Special function for writing an exception result at the header of * a parcel, to be used when returning an exception from a transaction. * exception will be re-thrown by the function in another process * @param reply Parcel to write to//from w w w.ja va 2 s.co m * @param e The Exception to be written. * @see Parcel#writeNoException * @see Parcel#writeException */ public static final void writeExceptionToParcel(Parcel reply, Exception e) { int code = 0; boolean logException = true; if (e instanceof FileNotFoundException) { code = 1; logException = false; } else if (e instanceof IllegalArgumentException) { code = 2; } else if (e instanceof UnsupportedOperationException) { code = 3; } else if (e instanceof SQLiteAbortException) { code = 4; } else if (e instanceof SQLiteConstraintException) { code = 5; } else if (e instanceof SQLiteDatabaseCorruptException) { code = 6; } else if (e instanceof SQLiteFullException) { code = 7; } else if (e instanceof SQLiteDiskIOException) { code = 8; } else if (e instanceof SQLiteException) { code = 9; } else if (e instanceof OperationApplicationException) { code = 10; } else { reply.writeException(e); Log.e(TAG, "Writing exception to parcel", e); return; } reply.writeInt(code); reply.writeString(e.getMessage()); if (logException) { Log.e(TAG, "Writing exception to parcel", e); } }
From source file:com.baasbox.android.BaasDocument.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(collection); Util.writeOptString(dest, id); dest.writeLong(version);/*from www . j a v a2s . c o m*/ Util.writeOptString(dest, author); Util.writeOptString(dest, creation_date); Util.writeOptString(dest, rid); dest.writeParcelable(data, 0); }