本文整理了Java中android.os.Parcel.writeBundle()
方法的一些代码示例,展示了Parcel.writeBundle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parcel.writeBundle()
方法的具体详情如下:
包路径:android.os.Parcel
类名称:Parcel
方法名:writeBundle
[英]Flatten a Bundle into the parcel at the current dataPosition(), growing dataCapacity() if needed.
[中]在当前dataPosition()处将包裹展平到包裹中,必要时增加dataCapacity()。
代码示例来源:origin: android-hacker/VirtualXposed
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeBundle(this.extras);
}
代码示例来源:origin: facebook/facebook-android-sdk
@Override
public void writeToParcel(final Parcel out, final int flags) {
out.writeBundle(params);
}
代码示例来源:origin: facebook/facebook-android-sdk
@Override
public void writeToParcel(final Parcel out, final int flags) {
out.writeBundle(textures);
}
代码示例来源:origin: facebook/facebook-android-sdk
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeBundle(params);
}
代码示例来源:origin: facebook/facebook-android-sdk
public void writeToParcel(final Parcel out, final int flags) {
out.writeBundle(this.bundle);
}
代码示例来源:origin: mxn21/FlowingDrawer
@Override
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeBundle(mState);
}
代码示例来源:origin: aa112901/remusic
@Override
public void writeToParcel(Parcel dest, int flags) {
Bundle bundle = new Bundle();
bundle.putString(KEY_ARTIST_NAME, artist_name);
bundle.putInt(KEY_NUMBER_OF_TRACKS, number_of_tracks);
bundle.putLong(KEY_ARTIST_ID, artist_id);
bundle.putString(KEY_ARTIST_SORT, artist_sort);
dest.writeBundle(bundle);
}
代码示例来源:origin: aa112901/remusic
@Override
public void writeToParcel(Parcel dest, int flags) {
Bundle bundle = new Bundle();
bundle.putString(KEY_FOLDER_NAME, folder_name);
bundle.putString(KEY_FOLDER_PATH, folder_path);
bundle.putString(KEY_FOLDER_SORT, folder_sort);
bundle.putInt(KEY_FOLDER_FILE_COUNT, folder_count);
dest.writeBundle(bundle);
}
代码示例来源:origin: aa112901/remusic
@Override
public void writeToParcel(Parcel dest, int flags) {
Bundle bundle = new Bundle();
bundle.putString(KEY_ALBUM_NAME, album_name);
bundle.putString(KEY_ALBUM_ART, album_art);
bundle.putInt(KEY_NUMBER_OF_SONGS, number_of_songs);
bundle.putInt(KEY_ALBUM_ID, album_id);
bundle.putString(KEY_ALBUM_ARTIST, album_artist);
bundle.putString(KEY_ALBUM_SORT, album_sort);
dest.writeBundle(bundle);
}
代码示例来源:origin: dinuscxj/RecyclerRefreshLayout
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeString(title);
parcel.writeString(fragmentClass.getCanonicalName());
parcel.writeBundle(arguments);
}
代码示例来源:origin: android-hacker/VirtualXposed
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.mType);
dest.writeByte(this.mOrderedHint ? (byte) 1 : (byte) 0);
dest.writeByte(this.mInitialStickyHint ? (byte) 1 : (byte) 0);
dest.writeStrongBinder(this.mToken);
dest.writeInt(this.mSendingUser);
dest.writeInt(this.mFlags);
dest.writeInt(this.mResultCode);
dest.writeString(this.mResultData);
dest.writeBundle(this.mResultExtras);
dest.writeByte(this.mAbortBroadcast ? (byte) 1 : (byte) 0);
dest.writeByte(this.mFinished ? (byte) 1 : (byte) 0);
}
代码示例来源:origin: seven332/EhViewer
@Override
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeInt(isDialogShowing ? 1 : 0);
dest.writeBundle(dialogBundle);
}
代码示例来源:origin: aa112901/remusic
@Override
public void writeToParcel(Parcel dest, int flags) {
Bundle bundle = new Bundle();
bundle.putLong(KEY_SONG_ID, songId);
bundle.putInt(KEY_ALBUM_ID, albumId);
bundle.putString(KEY_ALBUM_NAME, albumName);
bundle.putString(KEY_ALBUM_DATA, albumData);
bundle.putInt(KEY_DURATION, duration);
bundle.putString(KEY_MUSIC_NAME, musicName);
bundle.putString(KEY_ARTIST, artist);
bundle.putLong(KEY_ARTIST_ID, artistId);
bundle.putString(KEY_DATA, data);
bundle.putString(KEY_FOLDER, folder);
bundle.putInt(KEY_SIZE, size);
bundle.putString(KEY_LRC, lrc);
bundle.putBoolean(KEY_ISLOCAL, islocal);
bundle.putString(KEY_SORT, sort);
dest.writeBundle(bundle);
}
代码示例来源:origin: robolectric/robolectric
@Implementation
protected void writeToParcel(Parcel dest, int flags) {
dest.writeParcelable(getPhoneAccountHandle(), flags);
dest.writeString(getPrefix());
dest.writeBundle(getFields());
dest.writeString(getMessageBody());
}
}
代码示例来源:origin: android-hacker/VirtualXposed
dest.writeParcelable(component.info, 0);
dest.writeString(component.className);
dest.writeBundle(component.metaData);
dest.writeInt(component.intents != null ? component.intents.size() : 0);
if (component.intents != null) {
dest.writeParcelable(component.info, 0);
dest.writeString(component.className);
dest.writeBundle(component.metaData);
dest.writeInt(component.intents != null ? component.intents.size() : 0);
if (component.intents != null) {
dest.writeParcelable(component.info, 0);
dest.writeString(component.className);
dest.writeBundle(component.metaData);
dest.writeInt(component.intents != null ? component.intents.size() : 0);
if (component.intents != null) {
dest.writeParcelable(component.info, 0);
dest.writeString(component.className);
dest.writeBundle(component.metaData);
dest.writeInt(component.intents != null ? component.intents.size() : 0);
if (component.intents != null) {
dest.writeParcelable(component.info, 0);
dest.writeString(component.className);
dest.writeBundle(component.metaData);
dest.writeInt(component.intents != null ? component.intents.size() : 0);
if (component.intents != null) {
代码示例来源:origin: Marswin/MarsDaemon
mBroadcastData.writeInt(Activity.RESULT_OK);
mBroadcastData.writeString(null);
mBroadcastData.writeBundle(null);
mBroadcastData.writeString(null);
mBroadcastData.writeInt(-1);
代码示例来源:origin: robolectric/robolectric
@Test
public void testReadWriteBundle() {
Bundle b1 = new Bundle();
b1.putString("hello", "world");
parcel.writeBundle(b1);
parcel.setDataPosition(0);
Bundle b2 = parcel.readBundle();
assertEquals("world", b2.getString("hello"));
parcel.setDataPosition(0);
parcel.writeBundle(b1);
parcel.setDataPosition(0);
b2 = parcel.readBundle(null /* ClassLoader */);
assertEquals("world", b2.getString("hello"));
}
代码示例来源:origin: ukanth/afwall
@Override
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeBundle(dialogBundle);
}
代码示例来源:origin: michael-rapp/ChromeLikeTabSwitcher
@Override
public final void writeToParcel(final Parcel parcel, final int flags) {
TextUtils.writeToParcel(title, parcel, flags);
parcel.writeInt(iconId);
parcel.writeParcelable(iconBitmap, flags);
parcel.writeParcelable(iconTintList, flags);
parcel.writeSerializable(iconTintMode);
parcel.writeInt(closeable ? 1 : 0);
parcel.writeInt(closeButtonIconId);
parcel.writeParcelable(closeButtonIconBitmap, flags);
parcel.writeParcelable(closeButtonIconTintList, flags);
parcel.writeSerializable(closeButtonIconTintMode);
parcel.writeParcelable(backgroundColor, flags);
parcel.writeInt(contentBackgroundColor);
parcel.writeParcelable(titleTextColor, flags);
parcel.writeInt(progressBarShown ? 1 : 0);
parcel.writeInt(progressBarColor);
parcel.writeBundle(parameters);
}
代码示例来源:origin: michael-rapp/ChromeLikeTabSwitcher
@Override
public void writeToParcel(final Parcel dest, final int flags) {
super.writeToParcel(dest, flags);
dest.writeSerializable(layoutPolicy);
dest.writeBundle(modelState);
}
内容来源于网络,如有侵权,请联系作者删除!