Searched refs:setAppOpsMode (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/packageinstaller/externalsources/src/android/packageinstaller/externalsources/cts/ |
D | ExternalSourcesInstantAppsTest.java | 53 private void setAppOpsMode(int mode) throws IOException { in setAppOpsMode() method in ExternalSourcesInstantAppsTest 59 setAppOpsMode(AppOpsManager.MODE_ERRORED); in blockedSourceTest() 66 setAppOpsMode(AppOpsManager.MODE_ALLOWED); in allowedSourceTest() 73 setAppOpsMode(AppOpsManager.MODE_DEFAULT); in defaultSourceTest() 80 setAppOpsMode(AppOpsManager.MODE_DEFAULT); in tearDown()
|
D | ExternalSourcesTest.java | 55 private void setAppOpsMode(String mode) throws IOException { in setAppOpsMode() method in ExternalSourcesTest 65 setAppOpsMode("deny"); in blockedSourceTest() 73 setAppOpsMode("allow"); in allowedSourceTest() 81 setAppOpsMode("default"); in defaultSourceTest() 96 setAppOpsMode("default"); in tearDown()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | NetworkUsageStatsTest.java | 232 setAppOpsMode(AppOpsManager.OPSTR_WRITE_SETTINGS, "allow"); in setUp() 239 setAppOpsMode(AppOpsManager.OPSTR_WRITE_SETTINGS, mWriteSettingsMode); in tearDown() 242 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, mUsageStatsMode); in tearDown() 247 private void setAppOpsMode(String appop, String mode) throws Exception { in setAppOpsMode() method in NetworkUsageStatsTest 351 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "allow"); in testDeviceSummary() 366 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "deny"); in testDeviceSummary() 386 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "allow"); in testUserSummary() 401 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "deny"); in testUserSummary() 421 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "allow"); in testAppSummary() 466 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "deny"); in testAppSummary() [all …]
|
D | UsageStatsTest.java | 112 setAppOpsMode("allow"); in setUp() 123 private void setAppOpsMode(String mode) throws Exception { in setAppOpsMode() method in UsageStatsTest 285 setAppOpsMode("ignore"); // To ensure permission is not required in testQueryEventsForSelf() 453 setAppOpsMode("ignore"); in testNoAccessSilentlyFails()
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
D | BackgroundRestrictedAlarmsTest.java | 86 setAppOpsMode(APP_OP_MODE_IGNORED); in setUp() 127 setAppOpsMode(APP_OP_MODE_ALLOWED); in testRepeatingAlarmBlocked() 150 setAppOpsMode(APP_OP_MODE_ALLOWED); in tearDown() 174 private void setAppOpsMode(String mode) throws IOException { in setAppOpsMode() method in BackgroundRestrictedAlarmsTest
|