Home
last modified time | relevance | path

Searched refs:Permissions (Results 1 – 15 of 15) sorted by relevance

/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/model/
DAppOpPermissions.java63 Integer currentMode = Permissions.getAppOpModeAsUser(packageName, appOp, user, context); in grantAsUser()
64 if (currentMode != null && currentMode != Permissions.getDefaultAppOpMode(appOp)) { in grantAsUser()
71 Permissions.setPermissionGrantedByRoleAsUser(packageName, appOpPermission, true, in grantAsUser()
89 if (!Permissions.isPermissionGrantedByRoleAsUser(packageName, appOpPermission, user, in revokeAsUser()
94 int defaultMode = Permissions.getDefaultAppOpMode(appOp); in revokeAsUser()
96 Permissions.setPermissionGrantedByRoleAsUser(packageName, appOpPermission, false, in revokeAsUser()
115 return Permissions.setAppOpPackageModeAsUser(packageName, appOp, mode, user, in setAppOpModeAsUser()
123 changed |= Permissions.setAppOpUidModeAsUser(packageName, appOp, mode, user, in setAppOpModeAsUser()
125 changed |= Permissions.setAppOpPackageModeAsUser(packageName, appOp, in setAppOpModeAsUser()
126 Permissions.getDefaultAppOpMode(appOp), user, context); in setAppOpModeAsUser()
[all …]
DAppOp.java99 return Permissions.setAppOpUidModeAsUser(packageName, mName, mMode, user, context); in grantAsUser()
116 int defaultMode = Permissions.getDefaultAppOpMode(mName); in revokeAsUser()
117 return Permissions.setAppOpUidModeAsUser(packageName, mName, defaultMode, user, context); in revokeAsUser()
DRole.java803 boolean permissionOrAppOpChanged = Permissions.grantAsUser(packageName, in grantAsUser()
804 Permissions.filterBySdkVersionAsUser(mPermissions, user, context), in grantAsUser()
809 Permissions.filterBySdkVersionAsUser(mAppOpPermissions, user, context); in grantAsUser()
833 && !Permissions.isRuntimePermissionsSupportedAsUser(packageName, user, context)) { in grantAsUser()
856 Permissions.filterBySdkVersionAsUser(mPermissions, user, context); in revokeAsUser()
863 Permissions.filterBySdkVersionAsUser(role.mPermissions, user, context)); in revokeAsUser()
866 boolean permissionOrAppOpChanged = Permissions.revokeAsUser(packageName, in revokeAsUser()
869 List<String> appOpPermissionsToRevoke = Permissions.filterBySdkVersionAsUser( in revokeAsUser()
875 Permissions.filterBySdkVersionAsUser(role.mAppOpPermissions, user, context)); in revokeAsUser()
DPermissions.java48 public class Permissions { class
50 private static final String LOG_TAG = Permissions.class.getSimpleName();
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/
DHomeRoleBehavior.java34 import com.android.role.controller.model.Permissions;
146 Permissions.grantAsUser(packageName, AUTOMOTIVE_PERMISSIONS, in grantAsUser()
152 Permissions.grantAsUser(packageName, WEAR_PERMISSIONS_T, in grantAsUser()
159 Permissions.grantAsUser(packageName, WEAR_PERMISSIONS_V, in grantAsUser()
169 Permissions.revokeAsUser(packageName, AUTOMOTIVE_PERMISSIONS, true, false, false, in revokeAsUser()
175 Permissions.revokeAsUser(packageName, WEAR_PERMISSIONS_T, true, false, false, in revokeAsUser()
182 Permissions.revokeAsUser(packageName, WEAR_PERMISSIONS_V, true, false, false, in revokeAsUser()
DDialerRoleBehavior.java26 import com.android.role.controller.model.Permissions;
67 Permissions.grantAsUser(packageName, SYSTEM_DIALER_PERMISSIONS, false, false, in grantAsUser()
77 Permissions.revokeAsUser(packageName, SYSTEM_DIALER_PERMISSIONS, true, false, false, in revokeAsUser()
DSmsRoleBehavior.java30 import com.android.role.controller.model.Permissions;
121 Permissions.grantAsUser(packageName, SYSTEM_SMS_PERMISSIONS, false, false, true, in grantAsUser()
130 Permissions.revokeAsUser(packageName, SYSTEM_SMS_PERMISSIONS, true, false, false, in revokeAsUser()
DBrowserRoleBehavior.java31 import com.android.role.controller.model.Permissions;
142 Permissions.grantAsUser(packageName, SYSTEM_BROWSER_PERMISSIONS, false, false, in grantAsUser()
153 Permissions.revokeAsUser(packageName, SYSTEM_BROWSER_PERMISSIONS, true, false, in revokeAsUser()
/packages/modules/HealthFitness/testapps/toolbox/
DREADME.md12 ### Requesting Permissions
14 * Click on Request Permissions on Home Screen
15 * It will open the Request Permissions page on Health Connect showing toggles for all the
/packages/modules/Bluetooth/framework/tests/util/src/
DPermissions.kt25 object Permissions { object
DBlockingBluetoothAdapter.kt28 import android.bluetooth.test_utils.Permissions.withPermissions
/packages/modules/Bluetooth/framework/tests/util/
DAndroid.bp32 "src/Permissions.kt",
/packages/modules/Bluetooth/pandora/server/bumble_experimental/
Dgatt.py276 permissions=Attribute.Permissions(characteristicParam.permissions),
281 permissions=Attribute.Permissions(descParam.permissions),
/packages/modules/Uwb/generic_ranging/proto/src/
Destimate.proto41 // Permissions not granted to required sensors.
/packages/modules/Virtualization/virtualizationservice/src/
Daidl.rs49 use std::fs::{self, create_dir, remove_dir_all, remove_file, set_permissions, File, Permissions};
804 set_permissions(path, Permissions::from_mode(0o700))?; in remove_temporary_dir()