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

The following examples show how to use android.os.Parcel#writePersistableBundle() . 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
/** 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 Project: android_9.0.0_r45   File: JobParameters.java    License: Apache License 2.0 6 votes vote down vote up
@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
/** 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 Project: android_9.0.0_r45   File: JobInfo.java    License: Apache License 2.0 5 votes vote down vote up
@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
@Override
public void writeToParcel(Parcel dest, int flags) {
    TextUtils.writeToParcel(mLabel, dest, flags);
    dest.writeStringList(mMimeTypes);
    dest.writePersistableBundle(mExtras);
    dest.writeLong(mTimeStamp);
}
 
Example 6
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 Project: android_9.0.0_r45   File: TtsSpan.java    License: Apache License 2.0 4 votes vote down vote up
/** @hide */
public void writeToParcelInternal(Parcel dest, int flags) {
    dest.writeString(mType);
    dest.writePersistableBundle(mArgs);
}
 
Example 8
Source Project: paperparcel   File: StaticAdapters.java    License: Apache License 2.0 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override public void writeToParcel(@Nullable PersistableBundle value, @NonNull Parcel dest, int flags) {
  dest.writePersistableBundle(value);
}