Searched refs:permissionInfo (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PermissionPolicyService.java | 619 PermissionInfo permissionInfo = permissionInfos.get(i); in PermissionToOpSynchroniser() local 620 mRuntimePermissionInfos.put(permissionInfo.name, permissionInfo); in PermissionToOpSynchroniser() 684 PermissionInfo permissionInfo = mRuntimePermissionInfos.get(permissionName); in addAppOps() local 685 if (permissionInfo == null) { in addAppOps() 688 addPermissionAppOp(packageInfo, pkg, permissionInfo); in addAppOps() 689 addExtraAppOp(packageInfo, pkg, permissionInfo); in addAppOps() 693 @NonNull AndroidPackage pkg, @NonNull PermissionInfo permissionInfo) { in addPermissionAppOp() argument 694 if (!permissionInfo.isRuntime()) { in addPermissionAppOp() 698 String permissionName = permissionInfo.name; in addPermissionAppOp() 716 boolean shouldGrantAppOp = shouldGrantAppOp(packageInfo, pkg, permissionInfo); in addPermissionAppOp() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | BasePermission.java | 462 PermissionInfo permissionInfo; in generatePermissionInfo() local 465 permissionInfo = PackageInfoUtils.generatePermissionInfo(perm, flags); in generatePermissionInfo() 468 permissionInfo = new PermissionInfo(permissionInfo); in generatePermissionInfo() 469 permissionInfo.protectionLevel = adjustedProtectionLevel; in generatePermissionInfo() 471 return permissionInfo; in generatePermissionInfo() 473 permissionInfo = new PermissionInfo(); in generatePermissionInfo() 474 permissionInfo.name = name; in generatePermissionInfo() 475 permissionInfo.packageName = sourcePackageName; in generatePermissionInfo() 476 permissionInfo.nonLocalizedLabel = name; in generatePermissionInfo() 477 permissionInfo.protectionLevel = protectionLevel; in generatePermissionInfo() [all …]
|
/frameworks/base/core/java/android/content/ |
D | PermissionChecker.java | 400 final PermissionInfo permissionInfo; in checkPermissionCommon() local 404 permissionInfo = context.getPackageManager().getPermissionInfo(permission, 0); in checkPermissionCommon() 416 if (permissionInfo.isAppOp()) { in checkPermissionCommon() 420 if (permissionInfo.isRuntime()) { in checkPermissionCommon()
|
/frameworks/base/services/robotests/src/com/android/server/pm/ |
D | CrossProfileAppsServiceImplRoboTest.java | 418 PermissionInfo permissionInfo = new PermissionInfo(); in createCrossProfilesPermissionInfo() local 419 permissionInfo.name = Manifest.permission.INTERACT_ACROSS_PROFILES; in createCrossProfilesPermissionInfo() 420 permissionInfo.protectionLevel = PermissionInfo.PROTECTION_FLAG_APPOP; in createCrossProfilesPermissionInfo() 421 return permissionInfo; in createCrossProfilesPermissionInfo()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsService.java | 2340 PermissionInfo permissionInfo; in updatePermissionRevokedCompat() local 2342 permissionInfo = packageManager.getPermissionInfo(permissionName, 0); in updatePermissionRevokedCompat() 2348 if (!permissionInfo.isRuntime()) { in updatePermissionRevokedCompat() 2359 if (permissionInfo.backgroundPermission != null) { in updatePermissionRevokedCompat() 2360 if (packageManager.checkPermission(permissionInfo.backgroundPermission, packageName) in updatePermissionRevokedCompat() 2369 + permissionInfo.backgroundPermission); in updatePermissionRevokedCompat() 2374 packageManager.updatePermissionFlags(permissionInfo.backgroundPermission, in updatePermissionRevokedCompat() 6051 PermissionInfo permissionInfo; in isSamplingTarget() local 6053 permissionInfo = mContext.getPackageManager().getPermissionInfo(permission, 0); in isSamplingTarget() 6057 if (permissionInfo.getProtection() == PROTECTION_DANGEROUS) { in isSamplingTarget()
|
/frameworks/base/services/core/java/com/android/server/stats/pull/ |
D | StatsPullAtomService.java | 3139 PermissionInfo permissionInfo; 3142 permissionInfo = pm.getPermissionInfo(permName, 0); 3149 if (permissionInfo.getProtection() != PROTECTION_DANGEROUS) {
|