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 want to check out the right sidebar which shows the related API usage.
Example 1
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 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 Project: GTTools   File: LogcatReaderLoader.java    License: 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 4
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 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 6
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 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 8
Source Project: android-recipes-app   File: Fragment.java    License: 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 9
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 vote down vote up
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 vote down vote up
public SavedState(Parcel in) {
    super(in);
    mState = in.readBundle();
}
 
Example 12
Source Project: BLE   File: AdRecord.java    License: 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 13
public SavedState(Parcel source) {
    super(source);
    dialogBundle = source.readBundle();
}
 
Example 14
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 vote down vote up
SavedState(Parcel in, ClassLoader loader) {
    mState = in.readBundle();
    if (loader != null && mState != null) {
        mState.setClassLoader(loader);
    }
}
 
Example 16
private WriteData(Parcel in) {
    mAccessibilityNodeInfo =
            AccessibilityNodeInfo.CREATOR.createFromParcel(in);
    mText = in.readString();
    mProperties = in.readBundle();
}
 
Example 17
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 vote down vote up
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 vote down vote up
private FragmentMasterState(Parcel in) {
    mFragments = in.readBundle(getClass().getClassLoader());
    mAllowSwipeBack = in.readInt() == 0;
    mHomeFragmentApplied = in.readInt() == 0;
}
 
Example 20
/**
 * 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());
}