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.java463 PermissionInfo permissionInfo; in generatePermissionInfo() local
466 permissionInfo = PackageParser.generatePermissionInfo(perm, flags); in generatePermissionInfo()
467 if (protectionLevelChanged && permissionInfo == perm.info) { in generatePermissionInfo()
469 permissionInfo = new PermissionInfo(permissionInfo); in generatePermissionInfo()
470 permissionInfo.protectionLevel = adjustedProtectionLevel; in generatePermissionInfo()
472 return permissionInfo; in generatePermissionInfo()
474 permissionInfo = new PermissionInfo(); in generatePermissionInfo()
475 permissionInfo.name = name; in generatePermissionInfo()
476 permissionInfo.packageName = sourcePackageName; in generatePermissionInfo()
477 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.java2039 PermissionInfo permissionInfo; in pullDangerousPermissionState() local
2042 permissionInfo = pm.getPermissionInfo(permName, 0); in pullDangerousPermissionState()
2050 if (permissionInfo.getProtection() != PROTECTION_DANGEROUS) { in pullDangerousPermissionState()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java11884 PermissionInfo permissionInfo = packageManager.getPermissionInfo(permissionName, 0); in isRuntimePermission() local
11885 return (permissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntimePermission()