Home
last modified time | relevance | path

Searched refs:mAudioRecord (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/core/java/android/companion/virtual/audio/
DAudioCapture.java53 private AudioRecord mAudioRecord; field in AudioCapture
86 if (mAudioRecord != null) { in setAudioRecord()
87 mAudioRecord.release(); in setAudioRecord()
89 mAudioRecord = audioRecord; in setAudioRecord()
99 if (mAudioRecord != null) { in close()
100 mAudioRecord.release(); in close()
101 mAudioRecord = null; in close()
121 if (mAudioRecord != null) { in read()
122 sizeRead = mAudioRecord.read(audioData, offsetInBytes, sizeInBytes, readMode); in read()
140 if (mAudioRecord != null) { in read()
[all …]
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamRecord.cpp147 mAudioRecord = new AudioRecord( in open()
150 mAudioRecord->set( in open()
169 mAudioRecord->setCallerName(kCallerName); in open()
172 status_t status = mAudioRecord->initCheck(); in open()
180 bool gotFastPath = (mAudioRecord->getFlags() & AUDIO_INPUT_FLAG_FAST) in open()
187 mAudioRecord.clear(); in open()
195 + std::to_string(mAudioRecord->getPortId()); in open()
205 mAudioRecord->channelMask(), true /*isInput*/, in open()
207 setSampleRate(mAudioRecord->getSampleRate()); in open()
213 setDeviceSampleRate(mAudioRecord->getSampleRate()); in open()
[all …]
DAudioStreamRecord.h87 android::sp<android::AudioRecord> mAudioRecord;
/frameworks/wilhelm/src/android/
DAudioRecorder_to_android.cpp380 ar->mAudioRecord.clear(); in android_audioRecorder_create()
575 audio_input_flags_t flags = ar->mAudioRecord->getFlags(); in checkAndSetPerformanceModePost()
658 ar->mAudioRecord = new android::AudioRecord( in android_audioRecorder_realize()
673 ar->mAudioRecord->setCallerName(ANDROID_OPENSLES_CALLER_NAME); in android_audioRecorder_realize()
675 android::status_t status = ar->mAudioRecord->initCheck(); in android_audioRecorder_realize()
681 ar->mAudioRecord.clear(); in android_audioRecorder_realize()
701 ar->mAudioRecord.get()); in android_audioRecorder_realize()
705 ar->mAudioRecord.clear(); in android_audioRecorder_realize()
712 audio_session_t sessionId = ar->mAudioRecord->getSessionId(); in android_audioRecorder_realize()
768 if (ar->mAudioRecord != 0) { in android_audioRecorder_destroy()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenInternalAudioRecorder.java42 private AudioRecord mAudioRecord; field in ScreenInternalAudioRecorder
109 mAudioRecord = new AudioRecord.Builder() in setupSimple()
146 readShortsInternal = mAudioRecord.read(bufferInternal, offsetShortsInternal, in setupSimple()
191 readBytes = mAudioRecord.read(buffer, 0, buffer.length); in setupSimple()
301 mAudioRecord.startRecording(); in start()
303 Log.d(TAG, "channel count " + mAudioRecord.getChannelCount()); in start()
305 if (mAudioRecord.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in start()
315 mAudioRecord.stop(); in end()
319 mAudioRecord.release(); in end()
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioPolicyDeathTestActivity.java111 private final AudioRecord mAudioRecord; field in AudioPolicyDeathTestActivity.AudioCapturingThread
116 mAudioRecord = record; in AudioCapturingThread()
123 int samplesLeft = mDurationMs * SAMPLE_RATE * mAudioRecord.getChannelCount() / 1000; in run()
125 mAudioRecord.startRecording(); in run()
130 read = mAudioRecord.read(readBuffer, 0, read); in run()
/frameworks/av/media/libaudioclient/
DAudioRecord.cpp179 IInterface::asBinder(mAudioRecord)->unlinkToDeath(mDeathNotifier, this); in ~AudioRecord()
180 mAudioRecord.clear(); in ~AudioRecord()
323 if (mAudioRecord != 0) { in set()
450 status = statusTFromBinderStatus(mAudioRecord->start(event, triggerSession)); in start()
460 mAudioRecord->setPreferredMicrophoneDirection(mSelectedMicDirection); in start()
461 mAudioRecord->setPreferredMicrophoneFieldDimension(mSelectedMicFieldDimension); in start()
502 mAudioRecord->stop(); in stop()
691 if (mAudioRecord != 0) { in setInputDevice()
692 mAudioRecord->stop(); in setInputDevice()
931 if (mAudioRecord != 0) { in createRecord_l()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioRecord.h753 sp<media::IAudioRecord> mAudioRecord; variable
789 DeathNotifier(AudioRecord* audioRecord) : mAudioRecord(audioRecord) { } in DeathNotifier()
793 const wp<AudioRecord> mAudioRecord;
/frameworks/base/media/java/android/media/
DAudioRecord.java2370 private final AudioRecord mAudioRecord; field in AudioRecord.NativeEventHandler
2374 mAudioRecord = recorder; in NativeEventHandler()
2381 listener = mAudioRecord.mPositionListener; in handleMessage()
2387 listener.onMarkerReached(mAudioRecord); in handleMessage()
2392 listener.onPeriodicNotification(mAudioRecord); in handleMessage()
/frameworks/wilhelm/src/itf/
DIAndroidConfiguration.cpp227 android::AudioRecord* pAudioRecord = ((CAudioRecorder*)configObj)->mAudioRecord.get(); in AllocRecorderRoutingProxy()
DIEngine.cpp461 (void) new (&thiz->mAudioRecord) android::sp<android::AudioRecord>(); in IEngine_CreateAudioRecorder()
/frameworks/wilhelm/src/
Dclasses.h163 android::sp<android::AudioRecord> mAudioRecord; member
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt24610 Landroid/media/AudioRecord$NativeEventHandler;->mAudioRecord:Landroid/media/AudioRecord;