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

The following examples show how to use android.os.Parcel#writeBoolean() . 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: ClientTransaction.java    From AndroidComponentPlugin with Apache License 2.0 6 votes vote down vote up
/** Write to Parcel. */
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeStrongBinder(mClient.asBinder());
    final boolean writeActivityToken = mActivityToken != null;
    dest.writeBoolean(writeActivityToken);
    if (writeActivityToken) {
        dest.writeStrongBinder(mActivityToken);
    }
    dest.writeParcelable(mLifecycleStateRequest, flags);
    final boolean writeActivityCallbacks = mActivityCallbacks != null;
    dest.writeBoolean(writeActivityCallbacks);
    if (writeActivityCallbacks) {
        dest.writeParcelableList(mActivityCallbacks, flags);
    }
}
 
Example 2
Source File: LaunchActivityItem.java    From AndroidComponentPlugin with Apache License 2.0 6 votes vote down vote up
/** 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 3
Source File: ClientTransaction.java    From android_9.0.0_r45 with Apache License 2.0 6 votes vote down vote up
/** Write to Parcel. */
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeStrongBinder(mClient.asBinder());
    final boolean writeActivityToken = mActivityToken != null;
    dest.writeBoolean(writeActivityToken);
    if (writeActivityToken) {
        dest.writeStrongBinder(mActivityToken);
    }
    dest.writeParcelable(mLifecycleStateRequest, flags);
    final boolean writeActivityCallbacks = mActivityCallbacks != null;
    dest.writeBoolean(writeActivityCallbacks);
    if (writeActivityCallbacks) {
        dest.writeParcelableList(mActivityCallbacks, flags);
    }
}
 
Example 4
Source File: NotificationChannelGroup.java    From android_9.0.0_r45 with Apache License 2.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    if (mId != null) {
        dest.writeByte((byte) 1);
        dest.writeString(mId);
    } else {
        dest.writeByte((byte) 0);
    }
    TextUtils.writeToParcel(mName, dest, flags);
    if (mDescription != null) {
        dest.writeByte((byte) 1);
        dest.writeString(mDescription);
    } else {
        dest.writeByte((byte) 0);
    }
    dest.writeParcelableList(mChannels, flags);
    dest.writeBoolean(mBlocked);
}
 
Example 5
Source File: LaunchActivityItem.java    From android_9.0.0_r45 with Apache License 2.0 6 votes vote down vote up
/** 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 6
Source File: ActivityRelaunchItem.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
/** Write to Parcel. */
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeTypedList(mPendingResults, flags);
    dest.writeTypedList(mPendingNewIntents, flags);
    dest.writeInt(mConfigChanges);
    dest.writeTypedObject(mConfig, flags);
    dest.writeBoolean(mPreserveWindow);
}
 
Example 7
Source File: ResumeActivityItem.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
/** Write to Parcel. */
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(mProcState);
    dest.writeBoolean(mUpdateProcState);
    dest.writeBoolean(mIsForward);
}
 
Example 8
Source File: ActivityManager.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(mSnapshot, 0);
    dest.writeInt(mOrientation);
    dest.writeParcelable(mContentInsets, 0);
    dest.writeBoolean(mReducedResolution);
    dest.writeFloat(mScale);
    dest.writeBoolean(mIsRealSnapshot);
    dest.writeInt(mWindowingMode);
    dest.writeInt(mSystemUiVisibility);
    dest.writeBoolean(mIsTranslucent);
}
 
Example 9
Source File: ProfilerInfo.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel out, int flags) {
    out.writeString(profileFile);
    if (profileFd != null) {
        out.writeInt(1);
        profileFd.writeToParcel(out, flags);
    } else {
        out.writeInt(0);
    }
    out.writeInt(samplingInterval);
    out.writeInt(autoStopProfiler ? 1 : 0);
    out.writeInt(streamingOutput ? 1 : 0);
    out.writeString(agent);
    out.writeBoolean(attachAgentDuringBind);
}
 
Example 10
Source File: AppOpsManager.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(mOp);
    dest.writeInt(mMode);
    dest.writeLongArray(mTimes);
    dest.writeLongArray(mRejectTimes);
    dest.writeInt(mDuration);
    dest.writeBoolean(mRunning);
    dest.writeInt(mProxyUid);
    dest.writeString(mProxyPackageName);
}
 
Example 11
Source File: RemoteAction.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel out, int flags) {
    mIcon.writeToParcel(out, 0);
    TextUtils.writeToParcel(mTitle, out, flags);
    TextUtils.writeToParcel(mContentDescription, out, flags);
    mActionIntent.writeToParcel(out, flags);
    out.writeBoolean(mEnabled);
    out.writeBoolean(mShouldShowIcon);
}
 
Example 12
Source File: RemoteAnimationTarget.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(taskId);
    dest.writeInt(mode);
    dest.writeParcelable(leash, 0 /* flags */);
    dest.writeBoolean(isTranslucent);
    dest.writeParcelable(clipRect, 0 /* flags */);
    dest.writeParcelable(contentInsets, 0 /* flags */);
    dest.writeInt(prefixOrderIndex);
    dest.writeParcelable(position, 0 /* flags */);
    dest.writeParcelable(sourceContainerBounds, 0 /* flags */);
    dest.writeParcelable(windowConfiguration, 0 /* flags */);
    dest.writeBoolean(isNotInRecents);
}
 
Example 13
Source File: InputMethodInfo.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
/**
 * Used to package this object into a {@link Parcel}.
 *
 * @param dest The {@link Parcel} to be written.
 * @param flags The flags used for parceling.
 */
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mId);
    dest.writeString(mSettingsActivityName);
    dest.writeInt(mIsDefaultResId);
    dest.writeInt(mIsAuxIme ? 1 : 0);
    dest.writeInt(mSupportsSwitchingToNextInputMethod ? 1 : 0);
    dest.writeBoolean(mIsVrOnly);
    mService.writeToParcel(dest, flags);
    mSubtypes.writeToParcel(dest);
}
 
Example 14
Source File: InstantAppResolveInfo.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel out, int flags) {
    out.writeBoolean(mShouldLetInstallerDecide);
    out.writeBundle(mExtras);
    if (mShouldLetInstallerDecide) {
        return;
    }
    out.writeParcelable(mDigest, flags);
    out.writeString(mPackageName);
    out.writeList(mFilters);
    out.writeLong(mVersionCode);
}
 
Example 15
Source File: PipModeChangeItem.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
/** Write to Parcel. */
public void writeToParcel(Parcel dest, int flags) {
    dest.writeBoolean(mIsInPipMode);
    dest.writeTypedObject(mOverrideConfig, flags);
}
 
Example 16
Source File: RemoteViews.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
public void writeToParcel(Parcel out, int flags) {
    out.writeInt(this.viewId);
    out.writeBoolean(this.mNext);
}
 
Example 17
Source File: StopActivityItem.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
/** Write to Parcel. */
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeBoolean(mShowWindow);
    dest.writeInt(mConfigChanges);
}
 
Example 18
Source File: GetEuiccProfileInfoListResult.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(result);
    dest.writeTypedArray(mProfiles, flags);
    dest.writeBoolean(mIsRemovable);
}
 
Example 19
Source File: NotificationChannel.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    if (mId != null) {
        dest.writeByte((byte) 1);
        dest.writeString(mId);
    } else {
        dest.writeByte((byte) 0);
    }
    if (mName != null) {
        dest.writeByte((byte) 1);
        dest.writeString(mName);
    } else {
        dest.writeByte((byte) 0);
    }
    if (mDesc != null) {
        dest.writeByte((byte) 1);
        dest.writeString(mDesc);
    } else {
        dest.writeByte((byte) 0);
    }
    dest.writeInt(mImportance);
    dest.writeByte(mBypassDnd ? (byte) 1 : (byte) 0);
    dest.writeInt(mLockscreenVisibility);
    if (mSound != null) {
        dest.writeByte((byte) 1);
        mSound.writeToParcel(dest, 0);
    } else {
        dest.writeByte((byte) 0);
    }
    dest.writeByte(mLights ? (byte) 1 : (byte) 0);
    dest.writeLongArray(mVibration);
    dest.writeInt(mUserLockedFields);
    dest.writeByte(mFgServiceShown ? (byte) 1 : (byte) 0);
    dest.writeByte(mVibrationEnabled ? (byte) 1 : (byte) 0);
    dest.writeByte(mShowBadge ? (byte) 1 : (byte) 0);
    dest.writeByte(mDeleted ? (byte) 1 : (byte) 0);
    if (mGroup != null) {
        dest.writeByte((byte) 1);
        dest.writeString(mGroup);
    } else {
        dest.writeByte((byte) 0);
    }
    if (mAudioAttributes != null) {
        dest.writeInt(1);
        mAudioAttributes.writeToParcel(dest, 0);
    } else {
        dest.writeInt(0);
    }
    dest.writeInt(mLightColor);
    dest.writeBoolean(mBlockableSystem);
}
 
Example 20
Source File: DeviceAdminInfo.java    From android_9.0.0_r45 with Apache License 2.0 2 votes vote down vote up
/**
 * Used to package this object into a {@link Parcel}.
 *
 * @param dest The {@link Parcel} to be written.
 * @param flags The flags used for parceling.
 */
public void writeToParcel(Parcel dest, int flags) {
    mActivityInfo.writeToParcel(dest, flags);
    dest.writeInt(mUsesPolicies);
    dest.writeBoolean(mSupportsTransferOwnership);
}