Home
last modified time | relevance | path

Searched refs:OPSTR_RECORD_AUDIO (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DAudioRecordAppOpTest.java19 import static android.app.AppOpsManager.OPSTR_RECORD_AUDIO;
85 assertThat(appOpsManager.isOpActive(OPSTR_RECORD_AUDIO, in testRecordAppOps()
89 appOpsManager.startWatchingActive(new String[] { OPSTR_RECORD_AUDIO }, in testRecordAppOps()
98 .only()).onOpActiveChanged(eq(OPSTR_RECORD_AUDIO), in testRecordAppOps()
102 assertThat(appOpsManager.isOpActive(OPSTR_RECORD_AUDIO, in testRecordAppOps()
116 .only()).onOpActiveChanged(eq(OPSTR_RECORD_AUDIO), in testRecordAppOps()
120 assertThat(appOpsManager.isOpActive(OPSTR_RECORD_AUDIO, in testRecordAppOps()
/cts/tests/musicrecognition/src/android/musicrecognition/cts/
DMusicRecognitionManagerTest.java221 assertFalse(appOpsManager.isOpActive(AppOpsManager.OPSTR_RECORD_AUDIO, uid, packageName)); in testRecordAudioOpsAreTracked()
224 appOpsManager.startWatchingActive(new String[] { AppOpsManager.OPSTR_RECORD_AUDIO }, in testRecordAudioOpsAreTracked()
233 .onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in testRecordAudioOpsAreTracked()
247 .onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in testRecordAudioOpsAreTracked()
260 .onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in testRecordAudioOpsAreTracked()
/cts/tests/app/src/android/app/cts/
DActivityManagerApi29Test.java27 import static android.app.AppOpsManager.OPSTR_RECORD_AUDIO;
322 assertEquals(MODE_IGNORED, noteOp(OPSTR_RECORD_AUDIO)); in testCameraWithAppOps()
332 assertEquals(MODE_ALLOWED, noteOp(OPSTR_RECORD_AUDIO)); in testCameraWithAppOps()
341 assertEquals(MODE_IGNORED, noteOp(OPSTR_RECORD_AUDIO)); in testCameraWithAppOps()
349 assertEquals(MODE_IGNORED, noteOp(OPSTR_RECORD_AUDIO)); in testCameraWithAppOps()
/cts/tests/tests/sensorprivacy/test-apps/CtsUseMicOrCameraForSensorPrivacy/src/android/sensorprivacy/cts/usemiccamera/
DUseMicCamera.kt70 appOpsManager.finishOp(AppOpsManager.OPSTR_RECORD_AUDIO, in onCreate()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DAtomTests.java133 APP_OPS_ENUM_MAP.put(AppOpsManager.OPSTR_RECORD_AUDIO, 27); in APP_OPS_ENUM_MAP.put() argument
493 startAppOp(appOpsManager, AppOpsManager.OPSTR_RECORD_AUDIO); in testForegroundServiceAccessAppOp()
494 noteAppOp(appOpsManager, AppOpsManager.OPSTR_RECORD_AUDIO); in testForegroundServiceAccessAppOp()