Java Code Examples for android.os.Parcel#readBundle()

The following examples show how to use android.os.Parcel#readBundle() . 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 File: DashboardTile.java    From AcDisplay with GNU General Public License v2.0 5 votes vote down vote up
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 2
Source File: Fragment.java    From android-recipes-app with Apache License 2.0 5 votes vote down vote up
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 File: GActivityBuilder.java    From grouter-android with Apache License 2.0 5 votes vote down vote up
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 4
Source File: Fragment.java    From droidel with Apache License 2.0 5 votes vote down vote up
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 5
Source File: IPCDataTransfer.java    From IPCInvoker with Apache License 2.0 5 votes vote down vote up
@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 6
Source File: LogcatReaderLoader.java    From GTTools with MIT License 5 votes vote down vote up
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 7
Source File: MapViewOverlays.java    From android_maplibui with GNU Lesser General Public License v3.0 5 votes vote down vote up
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 8
Source File: AppEvent.java    From android-openslmediaplayer with Apache License 2.0 5 votes vote down vote up
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 9
Source File: FillRequest.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
private FillRequest(@NonNull Parcel parcel) {
    mId = parcel.readInt();
    mContexts = new ArrayList<>();
    parcel.readParcelableList(mContexts, null);

    mClientState = parcel.readBundle();
    mFlags = parcel.readInt();
}
 
Example 10
Source File: WriteData.java    From android-chromium with BSD 2-Clause "Simplified" License 4 votes vote down vote up
private WriteData(Parcel in) {
    mAccessibilityNodeInfo =
            AccessibilityNodeInfo.CREATOR.createFromParcel(in);
    mText = in.readString();
    mProperties = in.readBundle();
}
 
Example 11
Source File: FragmentMaster.java    From FragmentMaster with Apache License 2.0 4 votes vote down vote up
private FragmentMasterState(Parcel in) {
    mFragments = in.readBundle(getClass().getClassLoader());
    mAllowSwipeBack = in.readInt() == 0;
    mHomeFragmentApplied = in.readInt() == 0;
}
 
Example 12
Source File: WriteData.java    From brailleback with Apache License 2.0 4 votes vote down vote up
private WriteData(Parcel in) {
    mAccessibilityNodeInfo =
            AccessibilityNodeInfo.CREATOR.createFromParcel(in);
    mText = in.readString();
    mProperties = in.readBundle();
}
 
Example 13
Source File: VoiceInteractor.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
Option(Parcel in) {
    mLabel = in.readCharSequence();
    mIndex = in.readInt();
    mSynonyms = in.readCharSequenceList();
    mExtras = in.readBundle();
}
 
Example 14
Source File: Fragment.java    From droidel with Apache License 2.0 4 votes vote down vote up
SavedState(Parcel in, ClassLoader loader) {
    mState = in.readBundle();
    if (loader != null && mState != null) {
        mState.setClassLoader(loader);
    }
}
 
Example 15
Source File: Fragment.java    From adt-leanback-support with Apache License 2.0 4 votes vote down vote up
SavedState(Parcel in, ClassLoader loader) {
    mState = in.readBundle();
    if (loader != null && mState != null) {
        mState.setClassLoader(loader);
    }
}
 
Example 16
Source File: Fragment.java    From CodenameOne with GNU General Public License v2.0 4 votes vote down vote up
SavedState(Parcel in, ClassLoader loader) {
    mState = in.readBundle();
    if (loader != null && mState != null) {
        mState.setClassLoader(loader);
    }
}
 
Example 17
Source File: ColorPickerPreference.java    From WiFiKeyView with Apache License 2.0 4 votes vote down vote up
public SavedState(Parcel source) {
    super(source);
    dialogBundle = source.readBundle();
}
 
Example 18
Source File: AdRecord.java    From BLE with Apache License 2.0 4 votes vote down vote up
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 19
Source File: MenuDrawer.java    From Roid-Library with Apache License 2.0 4 votes vote down vote up
public SavedState(Parcel in) {
    super(in);
    mState = in.readBundle();
}
 
Example 20
Source File: DialogPreference.java    From AndroidMaterialPreferences with Apache License 2.0 2 votes vote down vote up
/**
 * 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());
}