Home
last modified time | relevance | path

Searched refs:setAppOp (Results 1 – 5 of 5) sorted by relevance

/cts/hostsidetests/os/src/android/os/cts/
DEnvironmentHostTests.java51 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/backup/src/android/backup/cts/
DPermissionTest.java120 setAppOp(APP22, READ_CONTACTS, MODE_IGNORED); in testGrantDeniedRuntimePermission22()
168 setAppOp(APP22, ACCESS_FINE_LOCATION, MODE_IGNORED); in testNoTriStateRuntimePermission22()
249 setAppOp(APP22, WRITE_CONTACTS, MODE_IGNORED); in testGrantForegroundAndBackgroundRuntimePermission22()
337 setAppOp(APP22, READ_CONTACTS, MODE_IGNORED); in testDelayedRestore()
429 private void setAppOp(String app, String permission, int mode) { in setAppOp() method in PermissionTest
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DExactAlarmsTest.java201 setAppOp(packageName, AppOpsManager.MODE_IGNORED); in revokeAppOp()
204 static void setAppOp(String packageName, int mode) { in setAppOp() method in ExactAlarmsTest
218 setAppOp(TEST_APP_PACKAGE, AppOpsManager.MODE_DEFAULT); in noPermissionByDefault()
230 setAppOp(TEST_APP_PACKAGE, AppOpsManager.MODE_ALLOWED); in hasPermissionWhenAllowed()
313 setAppOp(TEST_APP_PACKAGE, AppOpsManager.MODE_ALLOWED); in alarmClockAllowsFGS()
624 setAppOp(TEST_APP_PACKAGE, AppOpsManager.MODE_ALLOWED); in scheduleExactAlarmPermissionStateChangedSentAppOp()
/cts/tests/app/src/android/app/cts/
DActivityManagerFgsBgStartTest.java1725 setAppOp(PACKAGE_NAME_APP1, vpnAppOp, true); in testFgsStartVpnInternal()
1927 setAppOp(PACKAGE_NAME_APP1, "RUN_ANY_IN_BACKGROUND", false); in testTempAllowListReasonCodeAlarmClock()
2027 setAppOp(PACKAGE_NAME_APP1, "RUN_ANY_IN_BACKGROUND", false); in testAlarmClockFgsNotStoppedByBackgroundRestrictedInternal()
2133 setAppOp(PACKAGE_NAME_APP2, "RUN_ANY_IN_BACKGROUND", false); in testFgsStartInBackgroundRestrictions()
2212 setAppOp(PACKAGE_NAME_APP1, "RUN_ANY_IN_BACKGROUND", false); in testFgsStartInBackgroundRestrictions()
2557 private void setAppOp(String packageName, String opStr, boolean allow) throws Exception { in setAppOp() method in ActivityManagerFgsBgStartTest
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationManagerTest.java255 PermissionUtils.setAppOp(mContext.getPackageName(), in setUp()
304 PermissionUtils.setAppOp(mContext.getPackageName(), in tearDown()
493 PermissionUtils.setAppOp(STUB_PACKAGE_NAME, in verifyCanUseFullScreenIntent()
505 PermissionUtils.setAppOp(STUB_PACKAGE_NAME, in verifyCanUseFullScreenIntent()
3294 PermissionUtils.setAppOp(mContext.getPackageName(), in testCallNotificationListener_registerCallback_noAccessNotificationsPermission()
3311 PermissionUtils.setAppOp(mContext.getPackageName(), in testCallNotificationListener_registerCallback_noAccessNotificationsPermission()