Home
last modified time | relevance | path

Searched refs:audioRecord (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DAudioRecordUnitTest.java62 AudioRecord audioRecord = new AudioRecord.Builder().setContext( in testBuilderConstructionWithContext_defaultDeviceExplicitSessionId() local
68 assertEquals(AudioRecord.STATE_INITIALIZED, audioRecord.getState()); in testBuilderConstructionWithContext_defaultDeviceExplicitSessionId()
69 assertEquals(sessionId, audioRecord.getAudioSessionId()); in testBuilderConstructionWithContext_defaultDeviceExplicitSessionId()
80 AudioRecord audioRecord = new AudioRecord.Builder().setContext( in testBuilderConstructionWithContext_virtualDeviceDefaultAudioPolicy() local
85 assertEquals(AudioRecord.STATE_INITIALIZED, audioRecord.getState()); in testBuilderConstructionWithContext_virtualDeviceDefaultAudioPolicy()
86 assertNotEquals(vdmPlaybackSessionId, audioRecord.getAudioSessionId()); in testBuilderConstructionWithContext_virtualDeviceDefaultAudioPolicy()
97 AudioRecord audioRecord = new AudioRecord.Builder().setContext( in testBuilderConstructionWithContext_virtualDeviceCustomAudioPolicy() local
102 assertEquals(AudioRecord.STATE_INITIALIZED, audioRecord.getState()); in testBuilderConstructionWithContext_virtualDeviceCustomAudioPolicy()
103 assertEquals(vdmRecordingSessionId, audioRecord.getAudioSessionId()); in testBuilderConstructionWithContext_virtualDeviceCustomAudioPolicy()
116 AudioRecord audioRecord = new AudioRecord.Builder().setContext( in testBuilderConstructionWithContext_virtualDeviceSetSessionIdOverridesContext() local
[all …]
/frameworks/base/core/java/android/companion/virtual/audio/
DAudioCapture.java66 void setAudioRecord(@Nullable AudioRecord audioRecord) { in setAudioRecord() argument
67 Log.d(TAG, "set AudioRecord with " + audioRecord); in setAudioRecord()
70 if (audioRecord != null) { in setAudioRecord()
71 if (audioRecord.getState() != STATE_INITIALIZED) { in setAudioRecord()
76 && audioRecord.getRecordingState() != RECORDSTATE_RECORDING) { in setAudioRecord()
77 audioRecord.startRecording(); in setAudioRecord()
80 && audioRecord.getRecordingState() != RECORDSTATE_STOPPED) { in setAudioRecord()
81 audioRecord.stop(); in setAudioRecord()
89 mAudioRecord = audioRecord; in setAudioRecord()
DVirtualAudioSession.java267 AudioRecord audioRecord = in createAudioStreams() local
275 mAudioCapture.setAudioRecord(audioRecord); in createAudioStreams()
/frameworks/base/services/musicrecognition/java/com/android/server/musicrecognition/
DMusicRecognitionManagerPerUserService.java245 AudioRecord audioRecord = createAudioRecord(recognitionRequest, maxAudioLengthSeconds); in streamAudio() local
248 streamAudio(recognitionRequest, maxAudioLengthSeconds, audioRecord, fos); in streamAudio()
252 audioRecord.release(); in streamAudio()
264 int maxAudioLengthSeconds, AudioRecord audioRecord, OutputStream outputStream) in streamAudio() argument
267 audioRecord.getBufferSizeInFrames() / maxAudioLengthSeconds; in streamAudio()
273 audioRecord.startRecording(); in streamAudio()
275 < audioRecord.getBufferSizeInFrames() * BYTES_PER_SAMPLE in streamAudio()
277 bytesRead = audioRecord.read(byteBuffer, 0, byteBuffer.length); in streamAudio()
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioPolicyDeathTestActivity.java76 AudioRecord audioRecord = mAudioPolicy.createAudioRecordSink(audioMix); in onCreate() local
77 if (audioRecord != null && audioRecord.getState() != AudioRecord.STATE_UNINITIALIZED) { in onCreate()
81 new AudioCapturingThread(audioRecord, captureDurationMs); in onCreate()
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerTestService.java576 AudioRecord audioRecord = null; in run() local
631 audioRecord = new AudioRecord(attributes, format, bytesRequired, in run()
655 audioRecord.startRecording(); in run()
657 int bytesRead = audioRecord.read(buffer, 0, buffer.length); in run()
669 audioRecord.stop(); in run()
678 if (audioRecord != null) { in run()
679 audioRecord.release(); in run()
/frameworks/av/media/libaudioclient/aidl/android/media/
DCreateRecordResponse.aidl46 @nullable IAudioRecord audioRecord;
/frameworks/av/media/libaudioclient/include/media/
DAudioRecord.h789 DeathNotifier(AudioRecord* audioRecord) : mAudioRecord(audioRecord) { } in DeathNotifier() argument
DIAudioFlinger.h175 sp<media::IAudioRecord> audioRecord; variable
/frameworks/av/media/libaudioclient/
DAudioRecord.cpp868 ALOG_ASSERT(output.audioRecord != 0); in createRecord_l()
935 mAudioRecord = output.audioRecord; in createRecord_l()
1706 sp<AudioRecord> audioRecord = mAudioRecord.promote(); in binderDied() local
1707 if (audioRecord != 0) { in binderDied()
1708 AutoMutex lock(audioRecord->mLock); in binderDied()
1709 audioRecord->mProxy->binderDied(); in binderDied()
DIAudioFlinger.cpp212 aidl.audioRecord = audioRecord; in toAidl()
236 legacy.audioRecord = aidl.audioRecord; in fromAidl()
/frameworks/av/media/libaudioclient/tests/
Daudioeffect_tests.cpp80 const sp<AudioRecord>& audioRecord) { in isEffectDefaultOnRecord() argument
83 status_t ret = AudioEffect::queryDefaultPreProcessing(audioRecord->getSessionId(), descriptors, in isEffectDefaultOnRecord()
/frameworks/base/media/java/android/media/
DAudioRecord.java2073 public void onRoutingChanged(AudioRecord audioRecord); in onRoutingChanged() argument
/frameworks/av/services/audioflinger/
DAudioFlinger.cpp2459 output.audioRecord = IAfRecordTrack::createIAudioRecordAdapter(recordTrack); in createRecord()