Home
last modified time | relevance | path

Searched refs:permissionInfo (Results 1 – 3 of 3) sorted by relevance

/frameworks/support/compat/src/main/java/androidx/core/content/pm/
DPermissionInfoCompat.java72 public static int getProtection(@NonNull PermissionInfo permissionInfo) { in getProtection() argument
74 return permissionInfo.getProtection(); in getProtection()
76 return permissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in getProtection()
85 public static int getProtectionFlags(@NonNull PermissionInfo permissionInfo) { in getProtectionFlags() argument
87 return permissionInfo.getProtectionFlags(); in getProtectionFlags()
89 return permissionInfo.protectionLevel & ~PermissionInfo.PROTECTION_MASK_BASE; in getProtectionFlags()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DBasePermission.java414 PermissionInfo permissionInfo; in generatePermissionInfo() local
417 permissionInfo = PackageParser.generatePermissionInfo(perm, flags); in generatePermissionInfo()
418 if (protectionLevelChanged && permissionInfo == perm.info) { in generatePermissionInfo()
420 permissionInfo = new PermissionInfo(permissionInfo); in generatePermissionInfo()
421 permissionInfo.protectionLevel = adjustedProtectionLevel; in generatePermissionInfo()
423 return permissionInfo; in generatePermissionInfo()
425 permissionInfo = new PermissionInfo(); in generatePermissionInfo()
426 permissionInfo.name = name; in generatePermissionInfo()
427 permissionInfo.packageName = sourcePackageName; in generatePermissionInfo()
428 permissionInfo.nonLocalizedLabel = name; in generatePermissionInfo()
[all …]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java10894 PermissionInfo permissionInfo = packageManager.getPermissionInfo(permissionName, 0); in isRuntimePermission() local
10895 return (permissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntimePermission()