List of usage examples for android.os Parcel writeString
public final void writeString(String val)
From source file:com.citrus.sdk.TransactionResponse.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeParcelable(this.balanceAmount, 0); dest.writeParcelable(this.transactionAmount, 0); dest.writeString(this.message); dest.writeString(this.responseCode); dest.writeInt(this.transactionStatus == null ? -1 : this.transactionStatus.ordinal()); dest.writeParcelable(this.transactionDetails, 0); dest.writeParcelable(this.citrusUser, 0); dest.writeInt(this.paymentMode == null ? -1 : this.paymentMode.ordinal()); dest.writeString(this.issuerCode); dest.writeString(this.impsMobileNumber); dest.writeString(this.impsMmid); dest.writeString(this.authIdCode); dest.writeString(this.signature); dest.writeString(this.maskedCardNumber); dest.writeByte(COD ? (byte) 1 : (byte) 0); dest.writeMap(this.customParamsMap); dest.writeString(this.jsonResponse); }
From source file:com.nestlabs.sdk.Camera.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); Utils.writeBoolean(dest, mIsStreaming); Utils.writeBoolean(dest, mIsAudioInputEnabled); dest.writeString(mLastIsOnlineChange); Utils.writeBoolean(dest, mIsVideoHistoryEnabled); dest.writeString(mWebUrl);/* w ww . j a v a2 s.c o m*/ dest.writeString(mAppUrl); Utils.writeBoolean(dest, mIsPublicShareEnabled); dest.writeTypedList(mActivityZones); dest.writeString(mPublicShareUrl); dest.writeString(mSnapshotUrl); mLastEvent.writeToParcel(dest, flags); }
From source file:android.net.ProxyInfo.java
/** * Implement the Parcelable interface.// w w w. j av a 2 s .com * @hide */ public void writeToParcel(Parcel dest, int flags) { if (!Uri.EMPTY.equals(mPacFileUrl)) { dest.writeByte((byte) 1); mPacFileUrl.writeToParcel(dest, 0); dest.writeInt(mPort); return; } else { dest.writeByte((byte) 0); } if (mHost != null) { dest.writeByte((byte) 1); dest.writeString(mHost); dest.writeInt(mPort); } else { dest.writeByte((byte) 0); } dest.writeString(mExclusionList); dest.writeStringArray(mParsedExclusionList); }
From source file:com.amossys.hooker.common.InterceptEvent.java
private void writeDataMap(Parcel out) { if (data == null) { out.writeInt(0);//from w w w . j av a 2 s.c om } else { out.writeInt(data.size()); for (String key : data.keySet()) { out.writeString(key); out.writeString(data.get(key)); } } }
From source file:com.android.mail.providers.Attachment.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(name); dest.writeInt(size);/*w ww. j a v a 2 s.co m*/ 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); }
From source file:com.facebook.AccessToken.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeLong(expires.getTime());//from w ww. j a v a2s . c om dest.writeStringList(new ArrayList<String>(permissions)); dest.writeStringList(new ArrayList<String>(declinedPermissions)); dest.writeString(token); dest.writeString(source.name()); dest.writeLong(lastRefresh.getTime()); dest.writeString(applicationId); dest.writeString(userId); }
From source file:com.eTilbudsavis.etasdk.model.Shoppinglist.java
public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.mErn); dest.writeString(this.mName); dest.writeString(this.mAccess); dest.writeLong(mModified != null ? mModified.getTime() : -1); dest.writeString(this.mPrevId); dest.writeString(this.mType); dest.writeString(this.mMeta); dest.writeSerializable(this.mShares); dest.writeInt(this.mUserId); dest.writeInt(this.mSyncState); }
From source file:com.eTilbudsavis.etasdk.model.ShoppinglistItem.java
public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.mId); dest.writeString(this.mErn); dest.writeByte(mTick ? (byte) 1 : (byte) 0); dest.writeString(this.mOfferId); dest.writeInt(this.mCount); dest.writeString(this.mDescription); dest.writeString(this.mCreator); dest.writeLong(mModified != null ? mModified.getTime() : -1); dest.writeParcelable(this.mOffer, flags); dest.writeString(this.mShoppinglistId); dest.writeString(this.mPrevId); dest.writeString(this.mMeta); dest.writeInt(this.mUserId); dest.writeInt(this.mSyncState); }
From source file:com.amossys.hooker.common.InterceptEvent.java
private void writeParametersList(Parcel out) { if (parameters == null) { out.writeInt(0);/* w w w . java 2 s . c o m*/ } else { out.writeInt(parameters.size()); for (Entry<String, String> entry : parameters) { out.writeString(entry.getKey()); out.writeString(entry.getValue()); } } }
From source file:com.nestapi.lib.API.Thermostat.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); writeBoolean(dest, mCanCool);/* ww w . j a va2 s . c o m*/ writeBoolean(dest, mCanHeat); writeBoolean(dest, mIsUsingEmergencyHeat); writeBoolean(dest, mHasFan); dest.writeString(mFanTimerTimeout); writeBoolean(dest, mHasLeaf); dest.writeString(mTemperatureScale); dest.writeLong(mAwayTemperatureHighF); dest.writeDouble(mAwayTemperatureHighC); dest.writeLong(mAwayTemperatureLowF); dest.writeDouble(mAwayTemperatureLowC); dest.writeLong(mAmbientTemperatureF); dest.writeDouble(mAmbientTemperatureC); writeBoolean(dest, mFanTimerActive); dest.writeLong(mTargetTemperatureF); dest.writeDouble(mTargetTemperatureC); dest.writeLong(mTargetTemperatureHighF); dest.writeDouble(mTargetTemperatureHighC); dest.writeLong(mTargetTemperatureLowF); dest.writeDouble(mTargetTemperatureLowC); dest.writeSerializable(mHVACmode); }