/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | AudioPlaybackCaptureTest.java | 169 AudioRecord audioRecord = new AudioRecord.Builder() in createPlaybackCaptureRecord() local 174 audioRecord.getState()); in createPlaybackCaptureRecord() 175 return audioRecord; in createPlaybackCaptureRecord() 193 private static ByteBuffer readToBuffer(AudioRecord audioRecord, int bufferSize) in readToBuffer() argument 196 audioRecord.getRecordingState()); in readToBuffer() 202 int written = audioRecord.read(buffer, buffer.remaining()); in readToBuffer() 233 AudioRecord audioRecord = createDefaultPlaybackCaptureRecord(); in testPlaybackCapture() local 236 audioRecord.startRecording(); in testPlaybackCapture() 238 ByteBuffer rawBuffer = readToBuffer(audioRecord, BUFFER_SIZE); in testPlaybackCapture() 239 audioRecord.stop(); // Force an reroute in testPlaybackCapture() [all …]
|
D | RoutingTest.java | 299 AudioRecord audioRecord = in allocAudioRecord() local 305 return audioRecord; in allocAudioRecord() 311 public void onRoutingChanged(AudioRecord audioRecord) {} in onRoutingChanged() argument 328 AudioRecord audioRecord = allocAudioRecord(); in test_audioRecord_RoutingListener() local 332 audioRecord.addOnRoutingChangedListener( in test_audioRecord_RoutingListener() 335 audioRecord.addOnRoutingChangedListener( in test_audioRecord_RoutingListener() 344 audioRecord.addOnRoutingChangedListener( in test_audioRecord_RoutingListener() 347 audioRecord.addOnRoutingChangedListener( in test_audioRecord_RoutingListener() 354 audioRecord.removeOnRoutingChangedListener( in test_audioRecord_RoutingListener() 357 audioRecord.removeOnRoutingChangedListener( in test_audioRecord_RoutingListener() [all …]
|
D | RemoteSubmixTest.java | 136 AudioRecord audioRecord = new AudioRecord.Builder() in createPlaybackCaptureRecord() local 142 audioRecord.getState()); in createPlaybackCaptureRecord() 144 return audioRecord; in createPlaybackCaptureRecord() 159 private static ByteBuffer readToBuffer(AudioRecord audioRecord, int bufferSize) in readToBuffer() argument 162 audioRecord.getRecordingState()); in readToBuffer() 168 int written = audioRecord.read(buffer, buffer.remaining()); in readToBuffer() 224 AudioRecord audioRecord = createPlaybackCaptureRecord(); in testPlaybackCapture() local 228 audioRecord.startRecording(); in testPlaybackCapture() 231 assertEquals(AudioRecord.RECORDSTATE_RECORDING, audioRecord.getRecordingState()); in testPlaybackCapture() 239 rawBuffer = readToBuffer(audioRecord, BUFFER_SIZE); in testPlaybackCapture() [all …]
|
D | AudioRecordTest.java | 609 AudioRecord audioRecord = null; in testAudioRecordBuilderHotword() local 621 audioRecord = builder.build(); in testAudioRecordBuilderHotword() 623 assertTrue(audioRecord.isHotwordLookbackStream()); in testAudioRecordBuilderHotword() 625 assertTrue(audioRecord.isHotwordStream()); in testAudioRecordBuilderHotword() 627 audioRecord.startRecording(); in testAudioRecordBuilderHotword() 628 audioRecord.read(ByteBuffer.allocateDirect(4096), 4096); in testAudioRecordBuilderHotword() 629 audioRecord.stop(); in testAudioRecordBuilderHotword() 631 if (audioRecord != null) { in testAudioRecordBuilderHotword() 632 audioRecord.release(); in testAudioRecordBuilderHotword() 1708 final AudioRecord[] audioRecord = new AudioRecord[1]; // pointer to AudioRecord. in testAudioRecordBuilderError() local [all …]
|
/cts/tests/tests/systemui/AudioRecorderTestApp_AudioRecord/src/android/systemui/cts/audiorecorder/audiorecord/ |
D | AudioRecorderService.java | 53 AudioRecord audioRecord = in run() local 64 audioRecord.startRecording(); in run() 68 audioRecord.read(data, 0, data.length); in run() 71 audioRecord.stop(); in run() 72 audioRecord.release(); in run()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioRecordHelper.java | 31 private AudioRecord audioRecord; field in AudioRecordHelper 76 audioRecord = new AudioRecord(source, sampleRate, CHANNEL, ENCODING, bufferSize); in start() 77 audioRecord.startRecording(); in start() 88 audioRecord.stop(); in stop() 89 audioRecord.release(); in stop() 90 audioRecord = null; in stop() 105 int read = audioRecord.read(data, 0, bufferSize); in startPullingData()
|
D | AudioInputRoutingNotificationsActivity.java | 109 AudioRecord audioRecord = mAudioRecorder.getAudioRecord(); in startAudio() local 110 audioRecord.addOnRoutingChangedListener(mRouteChangeListener, in startAudio() 126 AudioRecord audioRecord = mAudioRecorder.getAudioRecord(); in stopAudio() local 127 audioRecord.removeOnRoutingChangedListener(mRouteChangeListener); in stopAudio() 134 public void onRoutingChanged(AudioRecord audioRecord) { in onRoutingChanged() argument 145 AudioDeviceInfo routedDevice = audioRecord.getRoutedDevice(); in onRoutingChanged()
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/services/ |
D | TestPermissionHotwordDetectionService.java | 55 AudioRecord audioRecord = null; in onDetect() local 58 audioRecord = new AudioRecord.Builder() in onDetect() 69 if (audioRecord != null) { in onDetect() 70 audioRecord.release(); in onDetect()
|
/cts/tests/tests/media/audio/modules/audiorecordpermissiontests/lib/src/android/media/audio/cts/audiorecordpermissiontests/common/ |
D | RecordService.kt | 119 val audioRecord = AudioRecord.Builder() in record() constant 129 audioRecord.startRecording() in record() 134 val result = audioRecord.read(data, 0, data.size) in record() 157 audioRecord.stop() in record() 158 audioRecord.release() in record()
|
/cts/tests/tests/sensorprivacy/test-apps/utils/src/android/sensorprivacy/cts/testapp/utils/ |
D | Utils.kt | 29 val audioRecord = AudioRecord.Builder() in <lambda>() constant 41 audioRecord?.startRecording() in <lambda>() 43 return Mic(audioRecord) in <lambda>() 145 class Mic(val audioRecord: AudioRecord) { constant in android.sensorprivacy.cts.testapp.utils.Mic 147 audioRecord.stop() in close()
|
/cts/tests/tests/virtualdevice/audio/src/android/virtualdevice/cts/audio/ |
D | SignalObserver.java | 67 SignalObserver(AudioRecord audioRecord, Set<Integer> observedFrequencies) { in SignalObserver() argument 68 this(new AudioRecordSource(audioRecord), observedFrequencies); in SignalObserver() 190 AudioRecordSource(AudioRecord audioRecord) { in AudioRecordSource() argument 191 mAudioRecord = audioRecord; in AudioRecordSource()
|
D | VirtualAudioPermissionTest.java | 287 AudioRecord audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, in recordAudio() local 292 audioRecord.startRecording(); in recordAudio() 294 audioRecord.stop(); in recordAudio() 295 audioRecord.release(); in recordAudio()
|
D | VirtualAudioTest.java | 387 AudioRecord audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, in recordAudio() local 395 mSignalObserver = new SignalObserver(audioRecord, Set.of(FREQUENCY)); in recordAudio()
|