Java Code Examples for android.os.Parcel#readBundle()
The following examples show how to use
android.os.Parcel#readBundle() .
These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: grouter-android File: GActivityBuilder.java License: Apache License 2.0 | 5 votes |
protected GActivityBuilder(Parcel in) { this.activityClass = in.readString(); this.extras = in.readBundle(getClass().getClassLoader()); this.data = in.readParcelable(Uri.class.getClassLoader()); this.enterAnim = in.readInt(); this.exitAnim = in.readInt(); this.flags = in.readInt(); }
Example 2
Source Project: droidel File: Fragment.java License: Apache License 2.0 | 5 votes |
public FragmentState(Parcel in) { mClassName = in.readString(); mIndex = in.readInt(); mFromLayout = in.readInt() != 0; mFragmentId = in.readInt(); mContainerId = in.readInt(); mTag = in.readString(); mRetainInstance = in.readInt() != 0; mDetached = in.readInt() != 0; mArguments = in.readBundle(); mSavedFragmentState = in.readBundle(); }
Example 3
Source Project: GTTools File: LogcatReaderLoader.java License: MIT License | 5 votes |
private LogcatReaderLoader(Parcel in) { this.recordingMode = in.readInt() == 1; this.multiple = in.readInt() == 1; Bundle bundle = in.readBundle(); for (String key : bundle.keySet()) { lastLines.put(key, bundle.getString(key)); } }
Example 4
Source Project: android-openslmediaplayer File: AppEvent.java License: Apache License 2.0 | 5 votes |
private AppEvent(Parcel in) { this.category = in.readInt(); this.event = in.readInt(); this.arg1 = in.readInt(); this.arg2 = in.readInt(); this.extras = in.readBundle(); }
Example 5
Source Project: android_9.0.0_r45 File: FillRequest.java License: Apache License 2.0 | 5 votes |
private FillRequest(@NonNull Parcel parcel) { mId = parcel.readInt(); mContexts = new ArrayList<>(); parcel.readParcelableList(mContexts, null); mClientState = parcel.readBundle(); mFlags = parcel.readInt(); }
Example 6
Source Project: android_maplibui File: MapViewOverlays.java License: GNU Lesser General Public License v3.0 | 5 votes |
private SavedState(Parcel in) { super(in); mBundles = new ArrayList<>(); int size = in.readInt(); for (int i = 0; i < size; i++) { Bundle bundle = in.readBundle(); mBundles.add(bundle); } }
Example 7
Source Project: IPCInvoker File: IPCDataTransfer.java License: Apache License 2.0 | 5 votes |
@Override public Object readFromParcel(Parcel in) { String dataClass = in.readString(); Bundle data = in.readBundle(); IPCData ipcData = ObjectStore.newInstance(dataClass, IPCData.class); if (ipcData != null) { ipcData.fromBundle(data); return ipcData; } return null; }
Example 8
Source Project: android-recipes-app File: Fragment.java License: Apache License 2.0 | 5 votes |
public FragmentState(Parcel in) { mClassName = in.readString(); mIndex = in.readInt(); mFromLayout = in.readInt() != 0; mFragmentId = in.readInt(); mContainerId = in.readInt(); mTag = in.readString(); mRetainInstance = in.readInt() != 0; mDetached = in.readInt() != 0; mArguments = in.readBundle(); mSavedFragmentState = in.readBundle(); }
Example 9
Source Project: AcDisplay File: DashboardTile.java License: GNU General Public License v2.0 | 5 votes |
private DashboardTile(Parcel in) { id = in.readLong(); titleRes = in.readInt(); title = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); summaryRes = in.readInt(); summary = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); iconRes = in.readInt(); fragment = in.readString(); fragmentArguments = in.readBundle(); if (in.readInt() != 0) { intent = Intent.CREATOR.createFromParcel(in); } extras = in.readBundle(); }
Example 10
Source Project: droidel File: Fragment.java License: Apache License 2.0 | 4 votes |
SavedState(Parcel in, ClassLoader loader) { mState = in.readBundle(); if (loader != null && mState != null) { mState.setClassLoader(loader); } }
Example 11
Source Project: Roid-Library File: MenuDrawer.java License: Apache License 2.0 | 4 votes |
public SavedState(Parcel in) { super(in); mState = in.readBundle(); }
Example 12
Source Project: BLE File: AdRecord.java License: Apache License 2.0 | 4 votes |
public AdRecord(final Parcel in) { final Bundle b = in.readBundle(getClass().getClassLoader()); mLength = b.getInt(PARCEL_RECORD_LENGTH); mType = b.getInt(PARCEL_RECORD_TYPE); mData = b.getByteArray(PARCEL_RECORD_DATA); }
Example 13
Source Project: WiFiKeyView File: ColorPickerPreference.java License: Apache License 2.0 | 4 votes |
public SavedState(Parcel source) { super(source); dialogBundle = source.readBundle(); }
Example 14
Source Project: CodenameOne File: Fragment.java License: GNU General Public License v2.0 | 4 votes |
SavedState(Parcel in, ClassLoader loader) { mState = in.readBundle(); if (loader != null && mState != null) { mState.setClassLoader(loader); } }
Example 15
Source Project: adt-leanback-support File: Fragment.java License: Apache License 2.0 | 4 votes |
SavedState(Parcel in, ClassLoader loader) { mState = in.readBundle(); if (loader != null && mState != null) { mState.setClassLoader(loader); } }
Example 16
Source Project: android-chromium File: WriteData.java License: BSD 2-Clause "Simplified" License | 4 votes |
private WriteData(Parcel in) { mAccessibilityNodeInfo = AccessibilityNodeInfo.CREATOR.createFromParcel(in); mText = in.readString(); mProperties = in.readBundle(); }
Example 17
Source Project: android_9.0.0_r45 File: VoiceInteractor.java License: Apache License 2.0 | 4 votes |
Option(Parcel in) { mLabel = in.readCharSequence(); mIndex = in.readInt(); mSynonyms = in.readCharSequenceList(); mExtras = in.readBundle(); }
Example 18
Source Project: brailleback File: WriteData.java License: Apache License 2.0 | 4 votes |
private WriteData(Parcel in) { mAccessibilityNodeInfo = AccessibilityNodeInfo.CREATOR.createFromParcel(in); mText = in.readString(); mProperties = in.readBundle(); }
Example 19
Source Project: FragmentMaster File: FragmentMaster.java License: Apache License 2.0 | 4 votes |
private FragmentMasterState(Parcel in) { mFragments = in.readBundle(getClass().getClassLoader()); mAllowSwipeBack = in.readInt() == 0; mHomeFragmentApplied = in.readInt() == 0; }
Example 20
Source Project: AndroidMaterialPreferences File: DialogPreference.java License: Apache License 2.0 | 2 votes |
/** * Creates a new data structure, which allows to store the internal state of an {@link * DialogPreference}. This constructor is used when reading from a parcel. It reads the * state of the superclass. * * @param source * The parcel to read read from as a instance of the class {@link Parcel}. The * parcel may not be null */ public SavedState(@NonNull final Parcel source) { super(source); dialogState = source.readBundle(getClass().getClassLoader()); }