/cts/hostsidetests/os/src/android/os/cts/ |
D | EnvironmentHostTests.java | 51 private void setAppOp(String appOp, boolean val) throws Exception { in setAppOp() method in EnvironmentHostTests 61 setAppOp(MANAGE_EXTERNAL_STORAGE_APP_OP, true); in testIsExternalStorageManager() 64 setAppOp(MANAGE_EXTERNAL_STORAGE_APP_OP, false); in testIsExternalStorageManager()
|
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/ |
D | PermissionUtils.java | 121 public static void setAppOp(@NonNull String packageName, @NonNull String permission, int mode) { in setAppOp() method in PermissionUtils 202 setAppOp(packageName, ACCESS_COARSE_LOCATION, MODE_ALLOWED); in grantPermission() 204 setAppOp(packageName, ACCESS_COARSE_LOCATION, MODE_FOREGROUND); in grantPermission() 209 setAppOp(packageName, ACCESS_COARSE_LOCATION, MODE_ALLOWED); in grantPermission() 211 setAppOp(packageName, ACCESS_COARSE_LOCATION, MODE_FOREGROUND); in grantPermission() 216 setAppOp(packageName, permission, MODE_ALLOWED); in grantPermission() 238 setAppOp(packageName, ACCESS_COARSE_LOCATION, MODE_FOREGROUND); in revokePermission() 243 setAppOp(packageName, permission, MODE_IGNORED); in revokePermission()
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 119 setAppOp(APP22, READ_CONTACTS, MODE_IGNORED); in testGrantDeniedRuntimePermission22() 167 setAppOp(APP22, ACCESS_FINE_LOCATION, MODE_IGNORED); in testNoTriStateRuntimePermission22() 248 setAppOp(APP22, WRITE_CONTACTS, MODE_IGNORED); in testGrantForegroundAndBackgroundRuntimePermission22() 336 setAppOp(APP22, READ_CONTACTS, MODE_IGNORED); in testDelayedRestore() 426 private void setAppOp(String app, String permission, int mode) { in setAppOp() method in PermissionTest
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
D | ExactAlarmsTest.java | 205 setAppOp(packageName, AppOpsManager.MODE_IGNORED); in revokeAppOp() 208 private void setAppOp(String packageName, int mode) { in setAppOp() method in ExactAlarmsTest 272 setAppOp(sContext.getOpPackageName(), AppOpsManager.MODE_ALLOWED); in hasPermissionWhenAllowed() 569 setAppOp(TEST_APP_PACKAGE, AppOpsManager.MODE_ALLOWED); in scheduleExactAlarmPermissionStateChangedSentAppOp()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | PermissionControllerTest.java | 102 setAppOp(APP, ACCESS_FINE_LOCATION, MODE_ALLOWED); in resetAppState() 160 private void setAppOp(@NonNull String pkg, @NonNull String perm, int mode) throws Exception { in setAppOp() method in PermissionControllerTest 241 setAppOp(APP, ACCESS_FINE_LOCATION, MODE_FOREGROUND); in revokePermissionsDoNotAlreadyRevokedPermission()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerFgsBgStartTest.java | 1568 setAppOp(PACKAGE_NAME_APP1, vpnAppOp, true); in testFgsStartVpnInternal() 1936 private void setAppOp(String packageName, String opStr, boolean allow) throws Exception { in setAppOp() method in ActivityManagerFgsBgStartTest
|