Home
last modified time | relevance | path

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

/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DPermissions.java332 String backgroundPermission = getBackgroundPermission(permission, context); in grantPermissionAndAppOp() local
333 if (!isPermissionAndAppOpGranted(packageName, backgroundPermission, context)) { in grantPermissionAndAppOp()
471 String backgroundPermission = getBackgroundPermission(permission, context); in revokeSingle() local
472 if (isPermissionAndAppOpGranted(packageName, backgroundPermission, context)) { in revokeSingle()
674 private static List<String> getForegroundPermissions(@NonNull String backgroundPermission, in getForegroundPermissions() argument
677 return sBackgroundToForegroundPermissions.get(backgroundPermission); in getForegroundPermissions()
719 String backgroundPermission = permissionInfo.backgroundPermission; in createForegroundBackgroundPermissionMappings() local
720 if (backgroundPermission != null) { in createForegroundBackgroundPermissionMappings()
722 backgroundPermission); in createForegroundBackgroundPermissionMappings()
725 sBackgroundToForegroundPermissions.put(backgroundPermission, in createForegroundBackgroundPermissionMappings()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/
DAppPermissionGroup.java291 if (requestedPermissionInfo.backgroundPermission != null) { in create()
308 Permission backgroundPermission = allPermissions.get( in create() local
311 if (backgroundPermission != null) { in create()
312 backgroundPermission.addForegroundPermissions(permission); in create()
313 permission.setBackgroundPermission(backgroundPermission); in create()
322 backgroundPermission.setAppOpAllowed(true); in create()
723 Permission backgroundPermission = permission.getBackgroundPermission(); in allowAppOp() local
725 if (backgroundPermission == null) { in allowAppOp()
731 if (backgroundPermission.isAppOpAllowed()) { in allowAppOp()
DPermission.java50 mBackgroundPermissionName = permissionInfo.backgroundPermission; in Permission()
78 public void setBackgroundPermission(Permission backgroundPermission) { in setBackgroundPermission() argument
79 mBackgroundPermission = backgroundPermission; in setBackgroundPermission()