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 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 in android.packageinstaller.install.cts.ExternalSourcesTest 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 | 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 | 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
|