Searched refs:OPSTR_RECORD_AUDIO (Results 1 – 8 of 8) sorted by relevance
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioRecordAppOpTest.java | 19 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/tests/appop/src/android/app/appops/cts/ |
D | AppOpsTest.kt | 44 import android.app.AppOpsManager.OPSTR_RECORD_AUDIO in <lambda>() 121 AppOpsManager.OPSTR_RECORD_AUDIO in <lambda>() 504 assumeTrue(mustNotBeLogged, !allowedOperationLogged(mOpPackageName, OPSTR_RECORD_AUDIO)) in <lambda>() 507 setOpMode(mOpPackageName, OPSTR_RECORD_AUDIO, MODE_ALLOWED) in <lambda>() 511 mAppOps.noteOp(OPSTR_RECORD_AUDIO, Process.myUid(), mOpPackageName) in <lambda>() 513 assertTrue(mustBeLogged, allowedOperationLogged(mOpPackageName, OPSTR_RECORD_AUDIO)) in <lambda>() 517 assertTrue(mustBeLogged, allowedOperationLogged(mOpPackageName, OPSTR_RECORD_AUDIO)) in <lambda>() 559 val mode = mAppOps.noteOpNoThrow(OPSTR_RECORD_AUDIO, Process.myUid() + 1, in <lambda>() 568 val mode = mAppOps.startOpNoThrow(OPSTR_RECORD_AUDIO, Process.myUid() + 1, in <lambda>() 576 val defaultMode = AppOpsManager.opToDefaultMode(OPSTR_RECORD_AUDIO) in <lambda>() [all …]
|
D | AppOpsLoggingTest.kt | 33 import android.app.AppOpsManager.OPSTR_RECORD_AUDIO 711 assertThat(asyncNoted[0].op).isEqualTo(OPSTR_RECORD_AUDIO) in nativeNoteOp() 734 assertThat(asyncNoted[0].op).isEqualTo(OPSTR_RECORD_AUDIO) in nativeNoteOp() 748 assertThat(asyncNoted[0].op).isEqualTo(OPSTR_RECORD_AUDIO) in nativeNoteOp() 763 assertThat(asyncNoted[0].op).isEqualTo(OPSTR_RECORD_AUDIO) in nativeNoteOp() 778 assertThat(asyncNoted[0].op).isEqualTo(OPSTR_RECORD_AUDIO) in nativeNoteOp()
|
/cts/tests/musicrecognition/src/android/musicrecognition/cts/ |
D | MusicRecognitionManagerTest.java | 221 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/tests/permission5/src/android/permission5/cts/ |
D | RuntimePermissionsAppOpTrackingTest.kt | 374 appopsManager!!.startWatchingActive(arrayOf(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>() 464 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>() 468 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>() 472 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>() 477 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>() 481 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>() 485 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>() 508 appopsManager!!.startWatchingActive(arrayOf(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>() 598 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>() 602 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerApi29Test.java | 27 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/src/android/sensorprivacy/cts/ |
D | SensorPrivacyBaseTest.kt | 352 MICROPHONE -> AppOpsManager.OPSTR_RECORD_AUDIO in <lambda>()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | AtomTests.java | 133 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()
|