Searched refs:setAppOp (Results 1 – 5 of 5) sorted by relevance
/packages/modules/Permission/tests/cts/permission/permissionTestUtilLib/src/android/permission/cts/ |
D | PermissionUtils.java | 131 public static void setAppOp(@NonNull String packageName, @NonNull String permission, int mode) { in setAppOp() method in PermissionUtils 212 setAppOp(packageName, ACCESS_COARSE_LOCATION, MODE_ALLOWED); in grantPermission() 214 setAppOp(packageName, ACCESS_COARSE_LOCATION, MODE_FOREGROUND); in grantPermission() 219 setAppOp(packageName, ACCESS_COARSE_LOCATION, MODE_ALLOWED); in grantPermission() 221 setAppOp(packageName, ACCESS_COARSE_LOCATION, MODE_FOREGROUND); in grantPermission() 226 setAppOp(packageName, permission, MODE_ALLOWED); in grantPermission() 248 setAppOp(packageName, ACCESS_COARSE_LOCATION, MODE_FOREGROUND); in revokePermission() 253 setAppOp(packageName, permission, MODE_IGNORED); in revokePermission()
|
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | IkeSessionPskTestBase.java | 38 setAppOp(OP_MANAGE_IPSEC_TUNNELS, true); in setUpTunnelPermissionBeforeClass() 45 setAppOp(OP_MANAGE_IPSEC_TUNNELS, false); in tearDownTunnelPermissionAfterClass()
|
D | IkeSessionTestBase.java | 167 static void setAppOp(int appop, boolean allow) { in setAppOp() method in IkeSessionTestBase
|
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/ |
D | PermissionTest30WithBluetooth.kt | 134 setAppOp(context.packageName, AppOpsManager.OPSTR_FINE_LOCATION, AppOpsManager.MODE_ALLOWED) in testGivenBluetoothIsDeniedWhenScanIsAttemptedThenThenGetEmptyScanResult() 150 private fun setAppOp(packageName: String, appOp: String, appOpMode: Int) { in setAppOp() method in android.permissionui.cts.PermissionTest30WithBluetooth
|
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | PermissionControllerTest.java | 104 setAppOp(APP, ACCESS_FINE_LOCATION, MODE_ALLOWED); in resetAppState() 162 private void setAppOp(@NonNull String pkg, @NonNull String perm, int mode) throws Exception { in setAppOp() method in PermissionControllerTest 243 setAppOp(APP, ACCESS_FINE_LOCATION, MODE_FOREGROUND); in revokePermissionsDoNotAlreadyRevokedPermission()
|