Searched refs:setAppOpsMode (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | NetworkUsageStatsTest.java | 237 setAppOpsMode(AppOpsManager.OPSTR_WRITE_SETTINGS, "allow"); in setUp() 244 setAppOpsMode(AppOpsManager.OPSTR_WRITE_SETTINGS, mWriteSettingsMode); in tearDown() 247 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, mUsageStatsMode); in tearDown() 252 private void setAppOpsMode(String appop, String mode) throws Exception { in setAppOpsMode() method in NetworkUsageStatsTest 373 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "allow"); in testDeviceSummary() 388 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "deny"); in testDeviceSummary() 408 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "allow"); in testUserSummary() 423 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "deny"); in testUserSummary() 448 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "allow"); in testAppSummary() 493 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "deny"); in testAppSummary() [all …]
|
D | UsageStatsTest.java | 180 setAppOpsMode("allow"); in setUp() 213 private void setAppOpsMode(String mode) throws Exception { in setAppOpsMode() method in UsageStatsTest 539 setAppOpsMode("ignore"); // To ensure permission is not required in testQueryEventsForSelf() 707 setAppOpsMode("ignore"); in testNoAccessSilentlyFails()
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
D | BackgroundRestrictedAlarmsTest.java | 89 setAppOpsMode(APP_OP_MODE_IGNORED); in setUp() 131 setAppOpsMode(APP_OP_MODE_ALLOWED); in testRepeatingAlarmBlocked() 154 setAppOpsMode(APP_OP_MODE_ALLOWED); in tearDown() 179 private void setAppOpsMode(String mode) throws IOException { in setAppOpsMode() method in BackgroundRestrictedAlarmsTest
|