Java Code Examples for android.os.Parcel#readBoolean()
The following examples show how to use
android.os.Parcel#readBoolean() .
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: NotificationChannelGroup.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
/** * @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 2
Source File: InstantAppResolveInfo.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
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 3
Source File: OverlayInfo.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
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 4
Source File: BluetoothLeDeviceFilter.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
@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 5
Source File: ActivityRelaunchItem.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
/** 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 6
Source File: ClientTransaction.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
/** 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 7
Source File: ClientTransaction.java From AndroidComponentPlugin with Apache License 2.0 | 5 votes |
/** 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 8
Source File: AppOpsManager.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
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 9
Source File: Person.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
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 File: RemoteAction.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
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 11
Source File: BrightnessChangeEvent.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
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 12
Source File: RemoteAnimationTarget.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
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 13
Source File: InputMethodInfo.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
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 14
Source File: ActivityManager.java From AndroidComponentPlugin with Apache License 2.0 | 5 votes |
private TaskSnapshot(Parcel source) { mSnapshot = source.readParcelable(null /* classLoader */); mOrientation = source.readInt(); mContentInsets = source.readParcelable(null /* classLoader */); mReducedResolution = source.readBoolean(); mScale = source.readFloat(); }
Example 15
Source File: PipModeChangeItem.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
/** Read from Parcel. */ private PipModeChangeItem(Parcel in) { mIsInPipMode = in.readBoolean(); mOverrideConfig = in.readTypedObject(Configuration.CREATOR); }
Example 16
Source File: DeviceAdminInfo.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
DeviceAdminInfo(Parcel source) { mActivityInfo = ActivityInfo.CREATOR.createFromParcel(source); mUsesPolicies = source.readInt(); mSupportsTransferOwnership = source.readBoolean(); }
Example 17
Source File: NewIntentItem.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
/** Read from Parcel. */ private NewIntentItem(Parcel in) { mPause = in.readBoolean(); mIntents = in.createTypedArrayList(ReferrerIntent.CREATOR); }
Example 18
Source File: PackageInfo.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
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 File: RemoteViews.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
ViewContentNavigation(Parcel in) { this.viewId = in.readInt(); this.mNext = in.readBoolean(); }
Example 20
Source File: MultiWindowModeChangeItem.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
/** Read from Parcel. */ private MultiWindowModeChangeItem(Parcel in) { mIsInMultiWindowMode = in.readBoolean(); mOverrideConfig = in.readTypedObject(Configuration.CREATOR); }