Searched refs:appOpsManager (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioRecordAppOpTest.java | 58 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testRecordAppOps() local 75 assertThat(appOpsManager.isOperationActive(OP_RECORD_AUDIO, in testRecordAppOps() 79 appOpsManager.startWatchingActive(new int[] {OP_RECORD_AUDIO}, listener); in testRecordAppOps() 91 assertThat(appOpsManager.isOperationActive(OP_RECORD_AUDIO, in testRecordAppOps() 109 assertThat(appOpsManager.isOperationActive(OP_RECORD_AUDIO, in testRecordAppOps() 117 appOpsManager.stopWatchingActive(listener); in testRecordAppOps()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | AlertWindowsAppOpsTests.java | 85 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testSystemAlertWindowAppOpsInitiallyAllowed() local 93 appOpsManager.startWatchingActive(new int[] {OP_SYSTEM_ALERT_WINDOW}, listener); in testSystemAlertWindowAppOpsInitiallyAllowed() 96 assertFalse(appOpsManager.isOperationActive(OP_SYSTEM_ALERT_WINDOW, uid, packageName)); in testSystemAlertWindowAppOpsInitiallyAllowed() 109 assertTrue(appOpsManager.isOperationActive(OP_SYSTEM_ALERT_WINDOW, in testSystemAlertWindowAppOpsInitiallyAllowed() 126 assertFalse(appOpsManager.isOperationActive(OP_SYSTEM_ALERT_WINDOW, uid, packageName)); in testSystemAlertWindowAppOpsInitiallyAllowed() 133 appOpsManager.stopWatchingActive(listener); in testSystemAlertWindowAppOpsInitiallyAllowed() 145 assertTrue(appOpsManager.isOperationActive(OP_SYSTEM_ALERT_WINDOW, uid, packageName)); in testSystemAlertWindowAppOpsInitiallyAllowed()
|