Home
last modified time | relevance | path

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

/cts/tests/tests/appop/src/android/app/appops/cts/
DHistoricalAppopsTest.kt45 private var appOpsManager: AppOpsManager? = null in <lambda>() variable in android.app.appops.cts.HistoricalAppopsTest
61 appOpsManager = getContext().getSystemService(AppOpsManager::class.java) in <lambda>()
65 appOpsManager!!.clearHistory() in <lambda>()
66 appOpsManager!!.resetHistoryParameters() in <lambda>()
71 appOpsManager!!.clearHistory() in <lambda>()
72 appOpsManager!!.resetHistoryParameters() in <lambda>()
105 appOpsManager!!.setHistoryParameters( in <lambda>()
114 appOpsManager!!.addHistoricalOps(chunk) in <lambda>()
120 val firstOps = getHistoricalOpsFromDiskRaw(appOpsManager!!, uid, packageName!!, in <lambda>()
127 val secondOps = getHistoricalOpsFromDiskRaw(appOpsManager!!, uid, packageName!!, in <lambda>()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAlertWindowsAppOpsTests.java85 final AppOpsManager appOpsManager = getInstrumentation().getContext() in testSystemAlertWindowAppOpsInitiallyAllowed() local
94 appOpsManager.startWatchingActive(new int[] {OP_SYSTEM_ALERT_WINDOW}, listener); in testSystemAlertWindowAppOpsInitiallyAllowed()
97 assertFalse(appOpsManager.isOperationActive(OP_SYSTEM_ALERT_WINDOW, uid, packageName)); in testSystemAlertWindowAppOpsInitiallyAllowed()
109 assertTrue(appOpsManager.isOperationActive(OP_SYSTEM_ALERT_WINDOW, in testSystemAlertWindowAppOpsInitiallyAllowed()
125 assertFalse(appOpsManager.isOperationActive(OP_SYSTEM_ALERT_WINDOW, uid, packageName)); in testSystemAlertWindowAppOpsInitiallyAllowed()
132 appOpsManager.stopWatchingActive(listener); in testSystemAlertWindowAppOpsInitiallyAllowed()
143 assertTrue(appOpsManager.isOperationActive(OP_SYSTEM_ALERT_WINDOW, uid, packageName)); in testSystemAlertWindowAppOpsInitiallyAllowed()
/cts/tests/tests/media/src/android/media/cts/
DAudioRecordAppOpTest.java63 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testRecordAppOps() local
80 assertThat(appOpsManager.isOperationActive(OP_RECORD_AUDIO, in testRecordAppOps()
84 appOpsManager.startWatchingActive(new int[] {OP_RECORD_AUDIO}, listener); in testRecordAppOps()
96 assertThat(appOpsManager.isOperationActive(OP_RECORD_AUDIO, in testRecordAppOps()
114 assertThat(appOpsManager.isOperationActive(OP_RECORD_AUDIO, in testRecordAppOps()
122 appOpsManager.stopWatchingActive(listener); in testRecordAppOps()
/cts/tests/tests/permission2/src/android/permission2/cts/
DRestrictedPermissionsTest.java771 AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in assertHasFullStorageAccess() local
773 eventually(() -> assertThat(appOpsManager.unsafeCheckOpRawNoThrow( in assertHasFullStorageAccess()
781 AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in assertHasIsolatedStorageAccess() local
783 eventually(() -> assertThat(appOpsManager.unsafeCheckOpRawNoThrow( in assertHasIsolatedStorageAccess()
961 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in assertRestrictedPermissionWhitelisted() local
1010 assertThat(appOpsManager.unsafeCheckOpRawNoThrow(op, in assertRestrictedPermissionWhitelisted()
/cts/tests/tests/permission/src/android/permission/cts/
DLocationAccessCheckTest.java659 AppOpsManager appOpsManager = sContext.getSystemService(AppOpsManager.class); in noNotificationIfBlamerNotSystemOrLocationProvider() local
660 appOpsManager.noteProxyOpNoThrow(AppOpsManager.OPSTR_FINE_LOCATION, TEST_APP_PKG, in noNotificationIfBlamerNotSystemOrLocationProvider()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsManagerTest.java494 AppOpsManager appOpsManager = in setModeForOps() local
497 appOpsManager.setUidMode(op, uid, mode); in setModeForOps()