Home
last modified time | relevance | path

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

/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/
DPermissionPolicyTest.java241 if (!Objects.equals(expectedPermission.backgroundPermission, in platformPermissionPolicyIsUnaltered()
242 declaredPermission.backgroundPermission)) { in platformPermissionPolicyIsUnaltered()
247 declaredPermission.backgroundPermission, in platformPermissionPolicyIsUnaltered()
248 expectedPermission.backgroundPermission)); in platformPermissionPolicyIsUnaltered()
538 final @Nullable String backgroundPermission; field in PermissionPolicyTest.ExpectedPermissionInfo
543 @Nullable String backgroundPermission, int flags, int protectionLevel) { in ExpectedPermissionInfo() argument
546 this.backgroundPermission = backgroundPermission; in ExpectedPermissionInfo()
DRuntimePermissionProperties.kt78 private val platformBgPermNames = platformRuntimePerms.mapNotNull { it.backgroundPermission } in <lambda>()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/model/
DPermissions.java359 String backgroundPermission = getBackgroundPermission(permission, context); in grantPermissionAndAppOpAsUser() local
360 if (!isPermissionAndAppOpGrantedAsUser(packageName, backgroundPermission, in grantPermissionAndAppOpAsUser()
508 String backgroundPermission = getBackgroundPermission(permission, context); in revokeSingleAsUser() local
509 if (isPermissionAndAppOpGrantedAsUser(packageName, backgroundPermission, user, in revokeSingleAsUser()
724 private static List<String> getForegroundPermissions(@NonNull String backgroundPermission, in getForegroundPermissions() argument
727 return sBackgroundToForegroundPermissions.get(backgroundPermission); in getForegroundPermissions()
797 String backgroundPermission = permissionInfo.backgroundPermission; in createForegroundBackgroundPermissionMappings() local
798 if (backgroundPermission != null) { in createForegroundBackgroundPermissionMappings()
800 backgroundPermission); in createForegroundBackgroundPermissionMappings()
803 sBackgroundToForegroundPermissions.put(backgroundPermission, in createForegroundBackgroundPermissionMappings()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/
DLightPermInfo.kt38 val backgroundPermission: String?, constant in com.android.permissioncontroller.permission.model.livedatatypes.LightPermInfo
49 permInfo.backgroundPermission,
DLightPermission.kt55 val backgroundPermission: String? = permInfo.backgroundPermission constant
DLightAppPermGroup.kt71 val backgroundPermNames = permissions.mapNotNull { it.value.backgroundPermission } in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/
DPermission.java51 mBackgroundPermissionName = permissionInfo.backgroundPermission; in Permission()
79 public void setBackgroundPermission(Permission backgroundPermission) { in setBackgroundPermission() argument
80 mBackgroundPermission = backgroundPermission; in setBackgroundPermission()
DAppPermissionGroup.java369 if (requestedPermissionInfo.backgroundPermission != null) { in create()
386 Permission backgroundPermission = allPermissions.get( in create() local
389 if (backgroundPermission != null) { in create()
390 backgroundPermission.addForegroundPermissions(permission); in create()
391 permission.setBackgroundPermission(backgroundPermission); in create()
400 backgroundPermission.setAppOpAllowed(true); in create()
867 Permission backgroundPermission = permission.getBackgroundPermission();
869 if (backgroundPermission == null) {
875 if (backgroundPermission.isAppOpAllowed()) {
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DForegroundPermNamesLiveData.kt49 val backgroundPerm: String? = permInfo.backgroundPermission in loadDataAndPostValue()
DAppPermGroupUiInfoLiveData.kt271 permInfo.backgroundPermission?.let { backgroundPerm -> in <lambda>()
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/
DPermissionUtils.java231 if ((permState.mPermissionInfo.backgroundPermission != null)) { in getPermissionGroupGrantStatus()
234 permState.mPermissionInfo.backgroundPermission); in getPermissionGroupGrantStatus()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DKotlinUtils.kt1049 val bgPerm = group.permissions[perm.backgroundPermission] in <lambda>()
1369 val bgPerm = group.permissions[perm.backgroundPermission] in <lambda>()
1441 if (perm.backgroundPermission != null) { in <lambda>()
1443 if (group.permissions.containsKey(perm.backgroundPermission)) { in <lambda>()
1444 val bgPerm = group.permissions[perm.backgroundPermission] in <lambda>()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DBackgroundPermissionsTest.java102 String backgroundPermissionName = permission.backgroundPermission; in verifybackgroundPermissionsProperties()