/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/model/ |
D | AppOpPermissions.java | 63 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 …]
|
D | AppOp.java | 99 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()
|
D | Role.java | 803 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()
|
D | Permissions.java | 48 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/ |
D | HomeRoleBehavior.java | 34 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()
|
D | DialerRoleBehavior.java | 26 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()
|
D | SmsRoleBehavior.java | 30 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()
|
D | BrowserRoleBehavior.java | 31 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/ |
D | README.md | 12 ### 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/ |
D | Permissions.kt | 25 object Permissions { object
|
D | BlockingBluetoothAdapter.kt | 28 import android.bluetooth.test_utils.Permissions.withPermissions
|
/packages/modules/Bluetooth/framework/tests/util/ |
D | Android.bp | 32 "src/Permissions.kt",
|
/packages/modules/Bluetooth/pandora/server/bumble_experimental/ |
D | gatt.py | 276 permissions=Attribute.Permissions(characteristicParam.permissions), 281 permissions=Attribute.Permissions(descParam.permissions),
|
/packages/modules/Uwb/generic_ranging/proto/src/ |
D | estimate.proto | 41 // Permissions not granted to required sensors.
|
/packages/modules/Virtualization/virtualizationservice/src/ |
D | aidl.rs | 49 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()
|