List of usage examples for android.os Parcel writeParcelableArray
public final <T extends Parcelable> void writeParcelableArray(T[] value, int parcelableFlags)
From source file:Main.java
public static byte[] arrayToByteArray(ContentValues[] contentValues) { Parcel obtain = Parcel.obtain(); obtain.writeParcelableArray(contentValues, 0); byte[] byteArray = obtain.marshall(); obtain.recycle();//from ww w . j a v a2 s . co m return byteArray; }
From source file:com.bmd.android.collection.example.EnhancedArrayMap.java
@Override public void writeToParcel(final Parcel parcel, final int i) { parcel.writeParcelableArray(mIterable.toParcelableArray(ParcelableObjectSparseObjectEntry.class), 0); }
From source file:com.grepsound.model.Playlist.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeSerializable(info);/*from w ww. j ava2 s .co m*/ dest.writeParcelableArray(set.toArray(new Track[set.size()]), 0); }
From source file:com.smoothsync.smoothsetup.microfragments.ChooseProviderMicroFragment.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeParcelableArray(mProviders, flags); dest.writeString(mAccount.value(null)); dest.writeParcelable(mNext.boxed(), flags); }
From source file:com.bangz.shotrecorder.SplitManager.java
@Override public void writeToParcel(Parcel dest, int flags) { SplitItem[] ss = Splits.toArray(new SplitItem[0]); dest.writeParcelableArray(ss, flags); }
From source file:com.github.jobs.bean.AboutMeUser.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeValue(firstName);/*from w w w .java 2 s . c o m*/ dest.writeValue(lastName); dest.writeValue(header); dest.writeValue(profile); dest.writeValue(bio); dest.writeParcelableArray(services, flags); }
From source file:com.codebutler.farebot.transit.orca.OrcaTransitData.java
@Override public void writeToParcel(Parcel parcel, int flags) { parcel.writeInt(mSerialNumber);//from w ww .j ava2 s. c o m parcel.writeDouble(mBalance); if (mTrips != null) { parcel.writeInt(mTrips.length); parcel.writeParcelableArray(mTrips, flags); } else { parcel.writeInt(0); } }
From source file:android.support.design.internal.ParcelableSparseArray.java
@Override public void writeToParcel(Parcel parcel, int flags) { int size = size(); int[] keys = new int[size]; Parcelable[] values = new Parcelable[size]; for (int i = 0; i < size; ++i) { keys[i] = keyAt(i);/*w w w. j av a 2 s.c o m*/ values[i] = valueAt(i); } parcel.writeInt(size); parcel.writeIntArray(keys); parcel.writeParcelableArray(values, flags); }
From source file:com.morphoss.jumble.models.Word.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(nameKey);//from w ww.jav a 2 s . c om dest.writeString(imagePath); ArrayList<Localisation> valueList = new ArrayList<Localisation>(); valueList.addAll(localisations.values()); Localisation[] arr = new Localisation[valueList.size()]; valueList.toArray(arr); dest.writeParcelableArray(arr, 0); }
From source file:com.facebook.login.LoginClient.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeParcelableArray(handlersToTry, flags); dest.writeInt(currentHandler);/*from w ww .jav a 2 s . c o m*/ dest.writeParcelable(pendingRequest, flags); Utility.writeStringMapToParcel(dest, loggingExtras); }