Home
last modified time | relevance | path

Searched refs:isGranted (Results 1 – 25 of 25) sorted by relevance

/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
DAppIdPermissionMigration.kt117 if (legacyPermissionState.isGranted) { in <lambda>()
123 if (legacyPermissionState.isGranted) { in <lambda>()
133 if (legacyPermissionState.isGranted) PermissionFlags.RUNTIME_GRANTED else 0 in <lambda>()
146 val oldGrantState = legacyPermissionState.isGranted in <lambda>()
DPermissionService.kt676 setRuntimePermissionGranted(packageName, userId, permissionName, deviceId, isGranted = true) in <lambda>()
691 isGranted = false, in <lambda>()
705 isGranted = false, in <lambda>()
719 isGranted: Boolean, in <lambda>()
723 val methodName = if (isGranted) "grantRuntimePermission" else "revokeRuntimePermission" in <lambda>()
726 if (isGranted) { in <lambda>()
740 (if (isGranted) "" else "skipKillUid = $skipKillUid, reason = $revokeReason") + in <lambda>()
760 if (isGranted) { in <lambda>()
814 isGranted, in <lambda>()
858 isGranted = true, in <lambda>()
[all …]
DPermissionFlags.kt424 fun updateRuntimePermissionGranted(flags: Int, isGranted: Boolean): Int = in updateRuntimePermissionGranted()
425 if (isGranted) flags or RUNTIME_GRANTED else flags andInv RUNTIME_GRANTED in updateRuntimePermissionGranted()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbUserPermissionManager.java275 void setDevicePersistentPermission(@NonNull UsbDevice device, int uid, boolean isGranted) { in setDevicePersistentPermission() argument
287 isChanged = permissionsForDevice.valueAt(idx) != isGranted; in setDevicePersistentPermission()
288 permissionsForDevice.setValueAt(idx, isGranted); in setDevicePersistentPermission()
291 permissionsForDevice.put(uid, isGranted); in setDevicePersistentPermission()
301 boolean isGranted) { in setAccessoryPersistentPermission() argument
314 isChanged = permissionsForAccessory.valueAt(idx) != isGranted; in setAccessoryPersistentPermission()
315 permissionsForAccessory.setValueAt(idx, isGranted); in setAccessoryPersistentPermission()
318 permissionsForAccessory.put(uid, isGranted); in setAccessoryPersistentPermission()
330 boolean isGranted; in readPermission()
348 isGranted = isGrantedString.equals(Boolean.TRUE.toString()); in readPermission()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/permission/
DUidPermissionState.java201 return permissionState != null && permissionState.isGranted(); in isPermissionGranted()
220 if (permissionState.isGranted()) { in getGrantedPermissions()
340 if (!permissionState.isGranted()) { in computeGids()
DPermissionMigrationHelper.java100 public boolean isGranted() { in isGranted() method in PermissionMigrationHelper.LegacyPermissionState
DPermissionState.java66 public boolean isGranted() { in isGranted() method in PermissionState
DPermissionManagerServiceImpl.java2835 if (origPermState != null && origPermState.isGranted()
2870 if ((origPermState != null && origPermState.isGranted())) {
2878 if (origPermState == null || !origPermState.isGranted()) {
3073 boolean isGranted = false;
3080 if (!isGranted) {
3084 isGranted = true;
3087 if (!isGranted) {
3093 if (isGranted) {
3677 final boolean isGranted;
3690 isGranted = uidState.isPermissionGranted(permissionName);
[all …]
DPermissionMigrationHelperImpl.java164 permState.isGranted(), permState.getFlags())); in toLegacyPermissionStates()
DLegacyPermissionState.java311 public boolean isGranted() { in isGranted() method in LegacyPermissionState.PermissionState
DDefaultPermissionGrantPolicy.java296 public boolean isGranted(@NonNull String permission, @NonNull PackageInfo pkg,
486 || !pm.isGranted(Manifest.permission.READ_PRIVILEGED_PHONE_STATE, in grantPermissionsToSysComponentsAndPrivApps()
488 || !pm.isGranted(Manifest.permission.READ_PHONE_STATE, pkg, in grantPermissionsToSysComponentsAndPrivApps()
1412 if (!pm.isGranted(permission, pkg, user)) { in grantRuntimePermissions()
1668 abstract boolean isGranted(@NonNull String permission, @NonNull PackageInfo pkg, in isGranted() method in DefaultPermissionGrantPolicy.PackageManagerWrapper
1881 public boolean isGranted(@NonNull String permission, @NonNull PackageInfo pkg, in isGranted() method in DefaultPermissionGrantPolicy.DelayingPackageManagerCache
/frameworks/base/telephony/common/com/android/internal/telephony/
DTelephonyPermissions.java740 boolean isGranted = false; in enforceAnyPermissionGranted()
743 isGranted = true; in enforceAnyPermissionGranted()
748 if (isGranted) return; in enforceAnyPermissionGranted()
782 boolean isGranted = false; in enforceAnyPermissionGrantedOrCarrierPrivileges()
785 isGranted = true; in enforceAnyPermissionGrantedOrCarrierPrivileges()
790 if (isGranted) return; in enforceAnyPermissionGrantedOrCarrierPrivileges()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DPermissionsSummaryHelper.java43 if (permission.isGranted()) { in getPermissionSummary()
/frameworks/base/core/java/android/content/pm/permission/
DRuntimePermissionPresentationInfo.java73 public boolean isGranted() { in isGranted() method in RuntimePermissionPresentationInfo
/frameworks/base/core/java/android/permission/
DRuntimePermissionPresentationInfo.java68 public boolean isGranted() { in isGranted() method in RuntimePermissionPresentationInfo
DPermissionManager.java2071 public boolean isGranted() { in isGranted() method in PermissionManager.PermissionState
/frameworks/base/services/core/java/com/android/server/am/
DAppPermissionTracker.java148 if (!state.isGranted()) { in handlePermissionsInit()
250 final boolean granted = states[i].isGranted(); in handlePermissionsChangedLocked()
323 boolean isGranted() { in isGranted() method in AppPermissionTracker.UidGrantedPermissionState
/frameworks/av/media/libaudioclient/include/media/
DAudioEffect.h301 virtual void onControlStatusChanged([[maybe_unused]] bool isGranted) {} in onControlStatusChanged() argument
/frameworks/av/media/libaudioclient/
DAudioEffect.cpp194 void onControlStatusChanged(bool isGranted) override { in onControlStatusChanged() argument
195 mCallback(AudioEffect::EVENT_CONTROL_STATUS_CHANGED, mUser, &isGranted); in onControlStatusChanged()
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java988 boolean isGranted = mPackageManager.checkPermission(permissionName, packageName) in shouldGrantAppOp()
990 if (!isGranted) { in shouldGrantAppOp()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSetting.java1212 if (permission.isGranted()) {
DSettings.java5766 pw.print(": granted="); pw.print(permissionState.isGranted());
5838 permissionState != null && permissionState.isGranted());
6253 permissionState.isGranted(), permissionState.getFlags());
6352 boolean granted = permission.isGranted();
/frameworks/base/services/
Dart-profile-boot16 Lcom/android/server/pm/permission/PermissionsState$PermissionData;->isGranted(I)Z
213 Lcom/android/server/pm/permission/PermissionsState$PermissionState;->isGranted()Z
Dart-wear-profile5099 HPLcom/android/server/am/AppPermissionTracker$UidGrantedPermissionState;->isGranted()Z
20352 PLcom/android/server/pm/permission/DefaultPermissionGrantPolicy$1;->isGranted(Ljava/lang/String;Lan…
20456 PLcom/android/server/pm/permission/LegacyPermissionState$PermissionState;->isGranted()Z
/frameworks/base/core/api/
Dsystem-current.txt4520 method @Deprecated public boolean isGranted();
11585 …gedApi("android.permission.flags.device_aware_permission_apis_enabled") public boolean isGranted();
11600 method public boolean isGranted();