Java Code Examples for android.os.Parcel#writePersistableBundle()
The following examples show how to use
android.os.Parcel#writePersistableBundle() .
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: LaunchActivityItem.java From AndroidComponentPlugin with Apache License 2.0 | 6 votes |
/** Write from Parcel. */ @Override public void writeToParcel(Parcel dest, int flags) { dest.writeTypedObject(mIntent, flags); dest.writeInt(mIdent); dest.writeTypedObject(mInfo, flags); dest.writeTypedObject(mCurConfig, flags); dest.writeTypedObject(mOverrideConfig, flags); dest.writeTypedObject(mCompatInfo, flags); dest.writeString(mReferrer); dest.writeStrongInterface(mVoiceInteractor); dest.writeInt(mProcState); dest.writeBundle(mState); dest.writePersistableBundle(mPersistentState); dest.writeTypedList(mPendingResults, flags); dest.writeTypedList(mPendingNewIntents, flags); dest.writeBoolean(mIsForward); dest.writeTypedObject(mProfilerInfo, flags); }
Example 2
Source File: JobParameters.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(jobId); dest.writePersistableBundle(extras); dest.writeBundle(transientExtras); if (clipData != null) { dest.writeInt(1); clipData.writeToParcel(dest, flags); dest.writeInt(clipGrantFlags); } else { dest.writeInt(0); } dest.writeStrongBinder(callback); dest.writeInt(overrideDeadlineExpired ? 1 : 0); dest.writeTypedArray(mTriggeredContentUris, flags); dest.writeStringArray(mTriggeredContentAuthorities); if (network != null) { dest.writeInt(1); network.writeToParcel(dest, flags); } else { dest.writeInt(0); } dest.writeInt(stopReason); dest.writeString(debugStopReason); }
Example 3
Source File: LaunchActivityItem.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
/** Write from Parcel. */ @Override public void writeToParcel(Parcel dest, int flags) { dest.writeTypedObject(mIntent, flags); dest.writeInt(mIdent); dest.writeTypedObject(mInfo, flags); dest.writeTypedObject(mCurConfig, flags); dest.writeTypedObject(mOverrideConfig, flags); dest.writeTypedObject(mCompatInfo, flags); dest.writeString(mReferrer); dest.writeStrongInterface(mVoiceInteractor); dest.writeInt(mProcState); dest.writeBundle(mState); dest.writePersistableBundle(mPersistentState); dest.writeTypedList(mPendingResults, flags); dest.writeTypedList(mPendingNewIntents, flags); dest.writeBoolean(mIsForward); dest.writeTypedObject(mProfilerInfo, flags); }
Example 4
Source File: JobInfo.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel out, int flags) { out.writeInt(jobId); out.writePersistableBundle(extras); out.writeBundle(transientExtras); if (clipData != null) { out.writeInt(1); clipData.writeToParcel(out, flags); out.writeInt(clipGrantFlags); } else { out.writeInt(0); } out.writeParcelable(service, flags); out.writeInt(constraintFlags); out.writeTypedArray(triggerContentUris, flags); out.writeLong(triggerContentUpdateDelay); out.writeLong(triggerContentMaxDelay); if (networkRequest != null) { out.writeInt(1); networkRequest.writeToParcel(out, flags); } else { out.writeInt(0); } out.writeLong(networkDownloadBytes); out.writeLong(networkUploadBytes); out.writeLong(minLatencyMillis); out.writeLong(maxExecutionDelayMillis); out.writeInt(isPeriodic ? 1 : 0); out.writeInt(isPersisted ? 1 : 0); out.writeLong(intervalMillis); out.writeLong(flexMillis); out.writeLong(initialBackoffMillis); out.writeInt(backoffPolicy); out.writeInt(hasEarlyConstraint ? 1 : 0); out.writeInt(hasLateConstraint ? 1 : 0); out.writeInt(priority); out.writeInt(this.flags); }
Example 5
Source File: ClipDescription.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { TextUtils.writeToParcel(mLabel, dest, flags); dest.writeStringList(mMimeTypes); dest.writePersistableBundle(mExtras); dest.writeLong(mTimeStamp); }
Example 6
Source File: PersistableBundleCompat.java From JobSchedulerCompat with Apache License 2.0 | 5 votes |
static void write(Parcel parcel, Object bundle) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { parcel.writePersistableBundle((PersistableBundle) bundle); } else { parcel.writeBundle((Bundle) bundle); } }
Example 7
Source File: TtsSpan.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
/** @hide */ public void writeToParcelInternal(Parcel dest, int flags) { dest.writeString(mType); dest.writePersistableBundle(mArgs); }
Example 8
Source File: StaticAdapters.java From paperparcel with Apache License 2.0 | 4 votes |
@TargetApi(Build.VERSION_CODES.LOLLIPOP) @Override public void writeToParcel(@Nullable PersistableBundle value, @NonNull Parcel dest, int flags) { dest.writePersistableBundle(value); }