List of usage examples for android.os Parcel writeBundle
public final void writeBundle(Bundle val)
From source file:Main.java
public static Bundle mutate(Bundle bundle) { if (bundle == null) { return null; }//from w w w. jav a2 s . c o m final Parcel in = Parcel.obtain(); in.writeBundle(bundle); final byte[] bytes = in.marshall(); final Parcel out = Parcel.obtain(); out.unmarshall(bytes, 0, bytes.length); out.setDataPosition(0); try { return out.readBundle(); } finally { in.recycle(); out.recycle(); } }
From source file:org.dmfs.android.microfragments.FragmentEnvironment.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeBundle(mArguments); }
From source file:org.opensilk.music.ui3.albumsprofile.AlbumsProfileScreen.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeBundle(libraryConfig.dematerialize()); dest.writeParcelable(libraryInfo, flags); dest.writeBundle(album.toBundle());/*from w ww . jav a 2 s. co m*/ }
From source file:org.opensilk.music.ui3.artistsprofile.ArtistsProfileScreen.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeBundle(libraryConfig.dematerialize()); dest.writeParcelable(libraryInfo, flags); dest.writeBundle(artist.toBundle()); }
From source file:org.opensilk.music.ui3.genresprofile.GenresProfileScreen.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeBundle(libraryConfig.dematerialize()); dest.writeParcelable(libraryInfo, flags); dest.writeBundle(genre.toBundle());/*from ww w.jav a 2 s .c o m*/ }
From source file:org.opensilk.music.ui3.playlistsprofile.PlaylistsProfileScreen.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeBundle(libraryConfig.dematerialize()); dest.writeParcelable(libraryInfo, flags); dest.writeBundle(playlist.toBundle()); }
From source file:com.schedjoules.eventdiscovery.framework.splash.SplashErrorMicroFragment.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeBundle(mEntryArgs); }
From source file:com.jetradar.multibackstack.BackStackEntry.java
@Override public void writeToParcel(Parcel out, int flags) { out.writeString(fname);/*from w ww . j a v a2 s . com*/ out.writeBundle(args); if (state == null) { out.writeInt(NO_STATE); } else if (state.getClass() == SavedState.class) { out.writeInt(SAVED_STATE); state.writeToParcel(out, flags); } else { out.writeInt(PARCELABLE_STATE); out.writeParcelable(state, flags); } }
From source file:ca.farrelltonsolar.classic.PVOutputService.java
private byte[] serializeBundle(final Bundle bundle) { byte[] rval = null; final Parcel parcel = Parcel.obtain(); try {//from w w w .j av a2s.c o m parcel.writeBundle(bundle); final ByteArrayOutputStream bos = new ByteArrayOutputStream(); final GZIPOutputStream zos = new GZIPOutputStream(new BufferedOutputStream(bos)); zos.write(parcel.marshall()); zos.close(); rval = bos.toByteArray(); } catch (IOException ex) { Log.w(getClass().getName(), String.format("serializeBundle failed ex: %s", ex)); } finally { parcel.recycle(); } return rval; }
From source file:com.shizhefei.view.multitype.provider.FragmentData.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeBundle(this.arguments); dest.writeSerializable(this.fragmentClass); dest.writeString(this.tag); }