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

The following examples show how to use android.os.Parcel#writeBoolean() . 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
/** 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 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
@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
/** 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 6
@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 7
/**
 * 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 8
@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 9
Source Project: android_9.0.0_r45   File: RemoteAction.java    License: 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 10
Source Project: android_9.0.0_r45   File: AppOpsManager.java    License: 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 Project: android_9.0.0_r45   File: ProfilerInfo.java    License: 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 12
@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 13
/** Write to Parcel. */
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(mProcState);
    dest.writeBoolean(mUpdateProcState);
    dest.writeBoolean(mIsForward);
}
 
Example 14
/** 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 15
@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 16
/** Write to Parcel. */
public void writeToParcel(Parcel dest, int flags) {
    dest.writeBoolean(mIsInPipMode);
    dest.writeTypedObject(mOverrideConfig, flags);
}
 
Example 17
Source Project: android_9.0.0_r45   File: RemoteViews.java    License: 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 18
/** Write to Parcel. */
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeBoolean(mShowWindow);
    dest.writeInt(mConfigChanges);
}
 
Example 19
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(result);
    dest.writeTypedArray(mProfiles, flags);
    dest.writeBoolean(mIsRemovable);
}
 
Example 20
/**
 * 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);
}