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
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 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/
DNetworkUsageStatsTest.java237 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 …]
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