Searched refs:setAppOpsMode (Results 1 – 6 of 6) sorted by relevance
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | ExternalSourcesInstantAppsTest.kt | 38 private fun setAppOpsMode(mode: Int) { in setAppOpsMode() method in android.packageinstaller.install.cts.ExternalSourcesInstantAppsTest 44 setAppOpsMode(MODE_ERRORED) in blockedSourceTest() 51 setAppOpsMode(MODE_ALLOWED) in allowedSourceTest() 58 setAppOpsMode(MODE_DEFAULT) in defaultSourceTest() 65 setAppOpsMode(MODE_DEFAULT) in resetAppOpsMode()
|
D | ExternalSourcesTest.kt | 51 private fun setAppOpsMode(mode: Int) { in setAppOpsMode() method 71 setAppOpsMode(MODE_ERRORED) in blockedSourceTest() 93 setAppOpsMode(MODE_ALLOWED) in allowedSourceTest() 137 setAppOpsMode(MODE_ERRORED) in blockedSourceTest() 144 setAppOpsMode(MODE_ALLOWED) in allowedSourceTest() 151 setAppOpsMode(MODE_DEFAULT) in defaultSourceTest() 165 setAppOpsMode(MODE_DEFAULT) in resetAppOpsMode()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | NetworkUsageStatsTest.java | 234 setAppOpsMode(AppOpsManager.OPSTR_WRITE_SETTINGS, "allow"); in setUp() 241 setAppOpsMode(AppOpsManager.OPSTR_WRITE_SETTINGS, mWriteSettingsMode); in tearDown() 244 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, mUsageStatsMode); in tearDown() 249 private void setAppOpsMode(String appop, String mode) throws Exception { in setAppOpsMode() method in NetworkUsageStatsTest 354 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "allow"); in testDeviceSummary() 369 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "deny"); in testDeviceSummary() 389 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "allow"); in testUserSummary() 404 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "deny"); in testUserSummary() 424 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "allow"); in testAppSummary() 469 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "deny"); in testAppSummary() [all …]
|
D | UsageStatsTest.java | 127 setAppOpsMode("allow"); in setUp() 149 private void setAppOpsMode(String mode) throws Exception { in setAppOpsMode() method in UsageStatsTest 354 setAppOpsMode("ignore"); // To ensure permission is not required in testQueryEventsForSelf() 522 setAppOpsMode("ignore"); in testNoAccessSilentlyFails()
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
D | BackgroundRestrictedAlarmsTest.java | 89 setAppOpsMode(APP_OP_MODE_IGNORED); in setUp() 130 setAppOpsMode(APP_OP_MODE_ALLOWED); in testRepeatingAlarmBlocked() 153 setAppOpsMode(APP_OP_MODE_ALLOWED); in tearDown() 177 private void setAppOpsMode(String mode) throws IOException { in setAppOpsMode() method in BackgroundRestrictedAlarmsTest
|
/cts/tests/tests/packageinstaller/tapjacking/src/android/packageinstaller/tapjacking/cts/ |
D | TapjackingTest.java | 77 setAppOpsMode(enabled ? "allow" : "default"); in setUnknownSourcesEnabled() 80 private void setAppOpsMode(String mode) throws IOException { in setAppOpsMode() method in TapjackingTest
|