List of usage examples for android.os Parcel writeTypedArray
public final <T extends Parcelable> void writeTypedArray(T[] val, int parcelableFlags)
From source file:com.cuddlesoft.norilib.SearchResult.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeTypedList(images);/* w w w . j av a2s.c o m*/ dest.writeInt(offset); dest.writeTypedArray(query, 0); dest.writeByte((byte) (hasNextPage ? 0x01 : 0x00)); }
From source file:com.facebook.notifications.internal.configuration.ActionsConfiguration.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeParcelable(style, flags);// w w w . j av a 2 s . c om dest.writeParcelable(layoutStyle, flags); dest.writeParcelable(background, flags); dest.writeFloat(topInset); dest.writeFloat(contentInset); dest.writeFloat(cornerRadius); dest.writeTypedArray(actions, flags); dest.writeFloat(height); }
From source file:com.codebutler.farebot.card.felica.FelicaCard.java
@Override public void writeToParcel(Parcel parcel, int flags) { super.writeToParcel(parcel, flags); parcel.writeParcelable(mIDm, flags); parcel.writeParcelable(mPMm, flags); parcel.writeInt(mSystems.length);/*from w w w . j av a 2s. c o m*/ parcel.writeTypedArray(mSystems, flags); }
From source file:de.schildbach.wallet.data.PaymentIntent.java
@Override public void writeToParcel(final Parcel dest, final int flags) { dest.writeSerializable(standard);/*from ww w . j a va2s . co m*/ dest.writeString(payeeName); dest.writeString(payeeVerifiedBy); if (outputs != null) { dest.writeInt(outputs.length); dest.writeTypedArray(outputs, 0); } else { dest.writeInt(0); } dest.writeString(memo); dest.writeString(paymentUrl); if (payeeData != null) { dest.writeInt(payeeData.length); dest.writeByteArray(payeeData); } else { dest.writeInt(0); } dest.writeString(paymentRequestUrl); if (paymentRequestHash != null) { dest.writeInt(paymentRequestHash.length); dest.writeByteArray(paymentRequestHash); } else { dest.writeInt(0); } }
From source file:com.codebutler.farebot.transit.SuicaTransitData.java
public void writeToParcel(Parcel parcel, int flags) { parcel.writeInt(mTrips.length); parcel.writeTypedArray(mTrips, flags); }
From source file:android.app.FragmentManager.java
public void writeToParcel(Parcel dest, int flags) { dest.writeTypedArray(mActive, flags); dest.writeIntArray(mAdded);/* w w w . j av a 2 s. c o m*/ dest.writeTypedArray(mBackStack, flags); }
From source file:android.app.Notification.java
/** * Flatten this notification from a parcel. *///from www .ja v a 2s . c o m public void writeToParcel(Parcel parcel, int flags) { parcel.writeInt(1); parcel.writeLong(when); parcel.writeInt(icon); parcel.writeInt(number); if (contentIntent != null) { parcel.writeInt(1); contentIntent.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } if (deleteIntent != null) { parcel.writeInt(1); deleteIntent.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } if (tickerText != null) { parcel.writeInt(1); TextUtils.writeToParcel(tickerText, parcel, flags); } else { parcel.writeInt(0); } if (tickerView != null) { parcel.writeInt(1); tickerView.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } if (contentView != null) { parcel.writeInt(1); contentView.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } if (largeIcon != null) { parcel.writeInt(1); largeIcon.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } parcel.writeInt(defaults); parcel.writeInt(this.flags); if (sound != null) { parcel.writeInt(1); sound.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } parcel.writeInt(audioStreamType); parcel.writeLongArray(vibrate); parcel.writeInt(ledARGB); parcel.writeInt(ledOnMS); parcel.writeInt(ledOffMS); parcel.writeInt(iconLevel); if (fullScreenIntent != null) { parcel.writeInt(1); fullScreenIntent.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } parcel.writeInt(priority); parcel.writeStringArray(kind); // ok for null if (extras != null) { parcel.writeInt(1); extras.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } parcel.writeTypedArray(actions, 0); if (bigContentView != null) { parcel.writeInt(1); bigContentView.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } }