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

The following examples show how to use android.os.Parcel#readBoolean() . 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
InstantAppResolveInfo(Parcel in) {
    mShouldLetInstallerDecide = in.readBoolean();
    mExtras = in.readBundle();
    if (mShouldLetInstallerDecide) {
        mDigest = InstantAppDigest.UNDEFINED;
        mPackageName = null;
        mFilters = Collections.emptyList();
        mVersionCode = -1;
    } else {
        mDigest = in.readParcelable(null /*loader*/);
        mPackageName = in.readString();
        mFilters = new ArrayList<>();
        in.readList(mFilters, null /*loader*/);
        mVersionCode = in.readLong();
    }
}
 
Example 2
/**
 * @hide
 */
protected NotificationChannelGroup(Parcel in) {
    if (in.readByte() != 0) {
        mId = in.readString();
    } else {
        mId = null;
    }
    mName = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
    if (in.readByte() != 0) {
        mDescription = in.readString();
    } else {
        mDescription = null;
    }
    in.readParcelableList(mChannels, NotificationChannel.class.getClassLoader());
    mBlocked = in.readBoolean();
}
 
Example 3
/** Read from Parcel. */
private ClientTransaction(Parcel in) {
    mClient = (IApplicationThread) in.readStrongBinder();
    final boolean readActivityToken = in.readBoolean();
    if (readActivityToken) {
        mActivityToken = in.readStrongBinder();
    }
    mLifecycleStateRequest = in.readParcelable(getClass().getClassLoader());
    final boolean readActivityCallbacks = in.readBoolean();
    if (readActivityCallbacks) {
        mActivityCallbacks = new ArrayList<>();
        in.readParcelableList(mActivityCallbacks, getClass().getClassLoader());
    }
}
 
Example 4
private TaskSnapshot(Parcel source) {
    mSnapshot = source.readParcelable(null /* classLoader */);
    mOrientation = source.readInt();
    mContentInsets = source.readParcelable(null /* classLoader */);
    mReducedResolution = source.readBoolean();
    mScale = source.readFloat();
}
 
Example 5
InputMethodInfo(Parcel source) {
    mId = source.readString();
    mSettingsActivityName = source.readString();
    mIsDefaultResId = source.readInt();
    mIsAuxIme = source.readInt() == 1;
    mSupportsSwitchingToNextInputMethod = source.readInt() == 1;
    mIsVrOnly = source.readBoolean();
    mService = ResolveInfo.CREATOR.createFromParcel(source);
    mSubtypes = new InputMethodSubtypeArray(source);
    mForceDefault = false;
}
 
Example 6
public RemoteAnimationTarget(Parcel in) {
    taskId = in.readInt();
    mode = in.readInt();
    leash = in.readParcelable(null);
    isTranslucent = in.readBoolean();
    clipRect = in.readParcelable(null);
    contentInsets = in.readParcelable(null);
    prefixOrderIndex = in.readInt();
    position = in.readParcelable(null);
    sourceContainerBounds = in.readParcelable(null);
    windowConfiguration = in.readParcelable(null);
    isNotInRecents = in.readBoolean();
}
 
Example 7
private BrightnessChangeEvent(Parcel source) {
    brightness = source.readFloat();
    timeStamp = source.readLong();
    packageName = source.readString();
    userId = source.readInt();
    luxValues = source.createFloatArray();
    luxTimestamps = source.createLongArray();
    batteryLevel = source.readFloat();
    powerBrightnessFactor = source.readFloat();
    nightMode = source.readBoolean();
    colorTemperature = source.readInt();
    lastBrightness = source.readFloat();
    isDefaultBrightnessConfig = source.readBoolean();
    isUserSetBrightness = source.readBoolean();
}
 
Example 8
Source Project: android_9.0.0_r45   File: RemoteAction.java    License: Apache License 2.0 5 votes vote down vote up
RemoteAction(Parcel in) {
    mIcon = Icon.CREATOR.createFromParcel(in);
    mTitle = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
    mContentDescription = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
    mActionIntent = PendingIntent.CREATOR.createFromParcel(in);
    mEnabled = in.readBoolean();
    mShouldShowIcon = in.readBoolean();
}
 
Example 9
Source Project: android_9.0.0_r45   File: Person.java    License: Apache License 2.0 5 votes vote down vote up
private Person(Parcel in) {
    mName = in.readCharSequence();
    if (in.readInt() != 0) {
        mIcon = Icon.CREATOR.createFromParcel(in);
    }
    mUri = in.readString();
    mKey = in.readString();
    mIsImportant = in.readBoolean();
    mIsBot = in.readBoolean();
}
 
Example 10
Source Project: android_9.0.0_r45   File: AppOpsManager.java    License: Apache License 2.0 5 votes vote down vote up
OpEntry(Parcel source) {
    mOp = source.readInt();
    mMode = source.readInt();
    mTimes = source.createLongArray();
    mRejectTimes = source.createLongArray();
    mDuration = source.readInt();
    mRunning = source.readBoolean();
    mProxyUid = source.readInt();
    mProxyPackageName = source.readString();
}
 
Example 11
Source Project: android_9.0.0_r45   File: OverlayInfo.java    License: Apache License 2.0 5 votes vote down vote up
public OverlayInfo(Parcel source) {
    packageName = source.readString();
    targetPackageName = source.readString();
    category = source.readString();
    baseCodePath = source.readString();
    state = source.readInt();
    userId = source.readInt();
    priority = source.readInt();
    isStatic = source.readBoolean();
    ensureValidState();
}
 
Example 12
/** Read from Parcel. */
private ClientTransaction(Parcel in) {
    mClient = (IApplicationThread) in.readStrongBinder();
    final boolean readActivityToken = in.readBoolean();
    if (readActivityToken) {
        mActivityToken = in.readStrongBinder();
    }
    mLifecycleStateRequest = in.readParcelable(getClass().getClassLoader());
    final boolean readActivityCallbacks = in.readBoolean();
    if (readActivityCallbacks) {
        mActivityCallbacks = new ArrayList<>();
        in.readParcelableList(mActivityCallbacks, getClass().getClassLoader());
    }
}
 
Example 13
/** Read from Parcel. */
private ActivityRelaunchItem(Parcel in) {
    mPendingResults = in.createTypedArrayList(ResultInfo.CREATOR);
    mPendingNewIntents = in.createTypedArrayList(ReferrerIntent.CREATOR);
    mConfigChanges = in.readInt();
    mConfig = in.readTypedObject(MergedConfiguration.CREATOR);
    mPreserveWindow = in.readBoolean();
}
 
Example 14
@Override
public BluetoothLeDeviceFilter createFromParcel(Parcel in) {
    Builder builder = new Builder()
            .setNamePattern(patternFromString(in.readString()))
            .setScanFilter(in.readParcelable(null));
    byte[] rawDataFilter = in.createByteArray();
    byte[] rawDataFilterMask = in.createByteArray();
    if (rawDataFilter != null) {
        builder.setRawDataFilter(rawDataFilter, rawDataFilterMask);
    }
    String renamePrefix = in.readString();
    String suffix = in.readString();
    int bytesFrom = in.readInt();
    int bytesTo = in.readInt();
    int nameFrom = in.readInt();
    int nameTo = in.readInt();
    boolean bytesReverseOrder = in.readBoolean();
    if (renamePrefix != null) {
        if (bytesFrom >= 0) {
            builder.setRenameFromBytes(renamePrefix, suffix, bytesFrom, bytesTo,
                    bytesReverseOrder ? ByteOrder.LITTLE_ENDIAN : ByteOrder.BIG_ENDIAN);
        } else {
            builder.setRenameFromName(renamePrefix, suffix, nameFrom, nameTo);
        }
    }
    return builder.build();
}
 
Example 15
DeviceAdminInfo(Parcel source) {
    mActivityInfo = ActivityInfo.CREATOR.createFromParcel(source);
    mUsesPolicies = source.readInt();
    mSupportsTransferOwnership = source.readBoolean();
}
 
Example 16
/** Read from Parcel. */
private PipModeChangeItem(Parcel in) {
    mIsInPipMode = in.readBoolean();
    mOverrideConfig = in.readTypedObject(Configuration.CREATOR);
}
 
Example 17
Source Project: android_9.0.0_r45   File: NewIntentItem.java    License: Apache License 2.0 4 votes vote down vote up
/** Read from Parcel. */
private NewIntentItem(Parcel in) {
    mPause = in.readBoolean();
    mIntents = in.createTypedArrayList(ReferrerIntent.CREATOR);
}
 
Example 18
Source Project: android_9.0.0_r45   File: PackageInfo.java    License: Apache License 2.0 4 votes vote down vote up
private PackageInfo(Parcel source) {
    packageName = source.readString();
    splitNames = source.createStringArray();
    versionCode = source.readInt();
    versionCodeMajor = source.readInt();
    versionName = source.readString();
    baseRevisionCode = source.readInt();
    splitRevisionCodes = source.createIntArray();
    sharedUserId = source.readString();
    sharedUserLabel = source.readInt();
    int hasApp = source.readInt();
    if (hasApp != 0) {
        applicationInfo = ApplicationInfo.CREATOR.createFromParcel(source);
    }
    firstInstallTime = source.readLong();
    lastUpdateTime = source.readLong();
    gids = source.createIntArray();
    activities = source.createTypedArray(ActivityInfo.CREATOR);
    receivers = source.createTypedArray(ActivityInfo.CREATOR);
    services = source.createTypedArray(ServiceInfo.CREATOR);
    providers = source.createTypedArray(ProviderInfo.CREATOR);
    instrumentation = source.createTypedArray(InstrumentationInfo.CREATOR);
    permissions = source.createTypedArray(PermissionInfo.CREATOR);
    requestedPermissions = source.createStringArray();
    requestedPermissionsFlags = source.createIntArray();
    signatures = source.createTypedArray(Signature.CREATOR);
    configPreferences = source.createTypedArray(ConfigurationInfo.CREATOR);
    reqFeatures = source.createTypedArray(FeatureInfo.CREATOR);
    featureGroups = source.createTypedArray(FeatureGroupInfo.CREATOR);
    installLocation = source.readInt();
    isStub = source.readInt() != 0;
    coreApp = source.readInt() != 0;
    requiredForAllUsers = source.readInt() != 0;
    restrictedAccountType = source.readString();
    requiredAccountType = source.readString();
    overlayTarget = source.readString();
    overlayCategory = source.readString();
    overlayPriority = source.readInt();
    mOverlayIsStatic = source.readBoolean();
    compileSdkVersion = source.readInt();
    compileSdkVersionCodename = source.readString();
    int hasSigningInfo = source.readInt();
    if (hasSigningInfo != 0) {
        signingInfo = SigningInfo.CREATOR.createFromParcel(source);
    }

    // The component lists were flattened with the redundant ApplicationInfo
    // instances omitted.  Distribute the canonical one here as appropriate.
    if (applicationInfo != null) {
        propagateApplicationInfo(applicationInfo, activities);
        propagateApplicationInfo(applicationInfo, receivers);
        propagateApplicationInfo(applicationInfo, services);
        propagateApplicationInfo(applicationInfo, providers);
    }
}
 
Example 19
Source Project: android_9.0.0_r45   File: RemoteViews.java    License: Apache License 2.0 4 votes vote down vote up
ViewContentNavigation(Parcel in) {
    this.viewId = in.readInt();
    this.mNext = in.readBoolean();
}
 
Example 20
/** Read from Parcel. */
private MultiWindowModeChangeItem(Parcel in) {
    mIsInMultiWindowMode = in.readBoolean();
    mOverrideConfig = in.readTypedObject(Configuration.CREATOR);
}