Home
last modified time | relevance | path

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

/frameworks/base/services/usb/java/com/android/server/usb/
DUsbUserPermissionManager.java250 void setDevicePersistentPermission(@NonNull UsbDevice device, int uid, boolean isGranted) { in setDevicePersistentPermission() argument
262 isChanged = permissionsForDevice.valueAt(idx) != isGranted; in setDevicePersistentPermission()
263 permissionsForDevice.setValueAt(idx, isGranted); in setDevicePersistentPermission()
266 permissionsForDevice.put(uid, isGranted); in setDevicePersistentPermission()
276 boolean isGranted) { in setAccessoryPersistentPermission() argument
289 isChanged = permissionsForAccessory.valueAt(idx) != isGranted; in setAccessoryPersistentPermission()
290 permissionsForAccessory.setValueAt(idx, isGranted); in setAccessoryPersistentPermission()
293 permissionsForAccessory.put(uid, isGranted); in setAccessoryPersistentPermission()
305 boolean isGranted; in readPermission()
323 isGranted = isGrantedString.equals(Boolean.TRUE.toString()); in readPermission()
[all …]
/frameworks/base/apex/permission/tests/java/com/android/permission/persistence/
DRuntimePermissionsPersistenceTest.kt93 assertThat(persistedPermissionState.isGranted).isEqualTo(permissionState.isGranted) in testReadWrite()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionsState.java346 return permissionData != null && permissionData.isGranted(userId); in hasPermission()
801 public boolean isGranted(int userId) { in isGranted() method in PermissionsState.PermissionData
822 if (isGranted(userId)) { in grant()
845 if (!isGranted(userId)) { in revoke()
954 public boolean isGranted() { in isGranted() method in PermissionsState.PermissionState
DPermissionManagerService.java2790 if (permState != null && permState.isGranted() in restorePermissionState()
2822 if (permState != null && permState.isGranted()) { in restorePermissionState()
2925 if (permState != null && permState.isGranted() in restorePermissionState()
3150 boolean isGranted = false; in inheritPermissionStateToNewImplicitPermissionLocked()
3158 if (!isGranted) { in inheritPermissionStateToNewImplicitPermissionLocked()
3162 isGranted = true; in inheritPermissionStateToNewImplicitPermissionLocked()
3165 if (!isGranted) { in inheritPermissionStateToNewImplicitPermissionLocked()
3171 if (isGranted) { in inheritPermissionStateToNewImplicitPermissionLocked()
3879 final boolean isGranted = permissionsState.hasPermission(permissionName, in setWhitelistedRestrictedPermissionsForUsers()
3881 if (!isWhitelisted && isGranted) { in setWhitelistedRestrictedPermissionsForUsers()
DDefaultPermissionGrantPolicy.java257 public boolean isGranted(@NonNull String permission, @NonNull PackageInfo pkg,
1287 if (!pm.isGranted(permission, pkg, user)) { in grantRuntimePermissions()
1536 abstract boolean isGranted(@NonNull String permission, @NonNull PackageInfo pkg, in isGranted() method in DefaultPermissionGrantPolicy.PackageManagerWrapper
1732 public boolean isGranted(@NonNull String permission, @NonNull PackageInfo pkg, in isGranted() method in DefaultPermissionGrantPolicy.DelayingPackageManagerCache
/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.java70 public boolean isGranted() { in isGranted() method in RuntimePermissionPresentationInfo
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DPermissionsSummaryHelper.java44 if (permission.isGranted()) { in getPermissionSummary()
/frameworks/base/apex/permission/service/java/com/android/permission/persistence/
DRuntimePermissionsState.java190 public boolean isGranted() { in isGranted() method in RuntimePermissionsState.PermissionState
DRuntimePermissionsPersistenceImpl.java246 permissionState.isGranted() && (permissionState.getFlags() in serializePermissions()
/frameworks/base/apex/permission/service/api/
Dsystem-server-current.txt24 method public boolean isGranted();
/frameworks/base/services/api/
Dcurrent.txt24 method public boolean isGranted();
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java750 boolean isGranted = mPackageManager.checkPermission(permissionName, packageName) in shouldGrantAppOp()
752 if (!isGranted) { in shouldGrantAppOp()
/frameworks/base/services/core/java/com/android/server/pm/
DSettings.java2268 serializer.attribute(null, ATTR_GRANTED, String.valueOf(permissionState.isGranted())); in writePermissionsLPr()
5195 pw.print(": granted="); pw.print(permissionState.isGranted()); in dumpRuntimePermissionsLPr()
5237 pw.print(": granted="); pw.print(permissionState.isGranted()); in dumpInstallPermissionsLPr()
5520 permissionState.isGranted(), permissionState.getFlags()); in getPermissionsFromPermissionsState()
5634 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-profile27286 HPLcom/android/server/pm/permission/DefaultPermissionGrantPolicy$1;->isGranted(Ljava/lang/String;La…
27307 …m/permission/DefaultPermissionGrantPolicy$DelayingPackageManagerCache;->isGranted(Ljava/lang/Strin…
27666 HSPLcom/android/server/pm/permission/PermissionsState$PermissionData;->isGranted(I)Z
27680 HSPLcom/android/server/pm/permission/PermissionsState$PermissionState;->isGranted()Z
/frameworks/base/api/
Dtest-current.txt3162 method public boolean isGranted();
Dsystem-current.txt2307 method @Deprecated public boolean isGranted();
8812 method public boolean isGranted();
/frameworks/base/non-updatable-api/
Dsystem-current.txt2255 method @Deprecated public boolean isGranted();
7703 method public boolean isGranted();