Home
last modified time | relevance | path

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

/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java180 setAppOpsMode(AppOpsManager.OPSTR_WRITE_SETTINGS, "allow"); in setUp()
187 setAppOpsMode(AppOpsManager.OPSTR_WRITE_SETTINGS, mWriteSettingsMode); in tearDown()
190 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, mUsageStatsMode); in tearDown()
195 private void setAppOpsMode(String appop, String mode) throws Exception { in setAppOpsMode() method in NetworkUsageStatsTest
302 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "allow"); in testDeviceSummary()
315 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "deny"); in testDeviceSummary()
334 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "allow"); in testUserSummary()
347 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "deny"); in testUserSummary()
366 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "allow"); in testAppSummary()
400 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "deny"); in testAppSummary()
[all …]
DUsageStatsTest.java79 setAppOpsMode("allow"); in setUp()
101 private void setAppOpsMode(String mode) throws Exception { in setAppOpsMode() method in UsageStatsTest
315 setAppOpsMode("default"); in testNoAccessSilentlyFails()