Home
last modified time | relevance | path

Searched refs:setAppOpsMode (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DExternalSourcesInstantAppsTest.kt38 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()
DExternalSourcesTest.kt51 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/
DNetworkUsageStatsTest.java234 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 …]
DUsageStatsTest.java127 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/
DBackgroundRestrictedAlarmsTest.java89 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/
DTapjackingTest.java77 setAppOpsMode(enabled ? "allow" : "default"); in setUnknownSourcesEnabled()
80 private void setAppOpsMode(String mode) throws IOException { in setAppOpsMode() method in TapjackingTest