Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/pm/permission/
DBasePermission.java460 PermissionInfo permissionInfo; in generatePermissionInfo() local
463 permissionInfo = PackageParser.generatePermissionInfo(perm, flags); in generatePermissionInfo()
464 if (protectionLevelChanged && permissionInfo == perm.info) { in generatePermissionInfo()
466 permissionInfo = new PermissionInfo(permissionInfo); in generatePermissionInfo()
467 permissionInfo.protectionLevel = adjustedProtectionLevel; in generatePermissionInfo()
469 return permissionInfo; in generatePermissionInfo()
471 permissionInfo = new PermissionInfo(); in generatePermissionInfo()
472 permissionInfo.name = name; in generatePermissionInfo()
473 permissionInfo.packageName = sourcePackageName; in generatePermissionInfo()
474 permissionInfo.nonLocalizedLabel = name; in generatePermissionInfo()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java560 private void addOpIfRestricted(@NonNull PermissionInfo permissionInfo, in addOpIfRestricted() argument
562 final String permission = permissionInfo.name; in addOpIfRestricted()
566 if (!permissionInfo.isRestricted()) { in addOpIfRestricted()
574 if (permissionInfo.isHardRestricted()) { in addOpIfRestricted()
582 } else if (permissionInfo.isSoftRestricted()) { in addOpIfRestricted()
656 private void addOpIfFgPermissions(@NonNull PermissionInfo permissionInfo, in addOpIfFgPermissions() argument
658 final String bgPermissionName = permissionInfo.backgroundPermission; in addOpIfFgPermissions()
664 final String permission = permissionInfo.name; in addOpIfFgPermissions()
730 final PermissionInfo permissionInfo; in addPackage() local
732 permissionInfo = mPackageManager.getPermissionInfo(permission, 0); in addPackage()
[all …]
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java1999 PermissionInfo permissionInfo; in pullDangerousPermissionState() local
2002 permissionInfo = pm.getPermissionInfo(permName, 0); in pullDangerousPermissionState()
2010 if (permissionInfo.getProtection() != PROTECTION_DANGEROUS) { in pullDangerousPermissionState()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java11875 PermissionInfo permissionInfo = packageManager.getPermissionInfo(permissionName, 0); in isRuntimePermission() local
11876 return (permissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntimePermission()