/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | AudioRecordUnitTest.java | 35 import android.media.AudioRecord; 52 private static final int TEST_BUFFER_SIZE = AudioRecord.getMinBufferSize( 62 AudioRecord audioRecord = new AudioRecord.Builder().setContext( in testBuilderConstructionWithContext_defaultDeviceExplicitSessionId() 68 assertEquals(AudioRecord.STATE_INITIALIZED, audioRecord.getState()); in testBuilderConstructionWithContext_defaultDeviceExplicitSessionId() 80 AudioRecord audioRecord = new AudioRecord.Builder().setContext( in testBuilderConstructionWithContext_virtualDeviceDefaultAudioPolicy() 85 assertEquals(AudioRecord.STATE_INITIALIZED, audioRecord.getState()); in testBuilderConstructionWithContext_virtualDeviceDefaultAudioPolicy() 97 AudioRecord audioRecord = new AudioRecord.Builder().setContext( in testBuilderConstructionWithContext_virtualDeviceCustomAudioPolicy() 102 assertEquals(AudioRecord.STATE_INITIALIZED, audioRecord.getState()); in testBuilderConstructionWithContext_virtualDeviceCustomAudioPolicy() 116 AudioRecord audioRecord = new AudioRecord.Builder().setContext( in testBuilderConstructionWithContext_virtualDeviceSetSessionIdOverridesContext() 123 assertEquals(AudioRecord.STATE_INITIALIZED, audioRecord.getState()); in testBuilderConstructionWithContext_virtualDeviceSetSessionIdOverridesContext()
|
/frameworks/base/core/java/android/companion/virtual/audio/ |
D | AudioCapture.java | 19 import static android.media.AudioRecord.READ_BLOCKING; 20 import static android.media.AudioRecord.RECORDSTATE_RECORDING; 21 import static android.media.AudioRecord.RECORDSTATE_STOPPED; 22 import static android.media.AudioRecord.STATE_INITIALIZED; 29 import android.media.AudioRecord; 53 private AudioRecord mAudioRecord; 66 void setAudioRecord(@Nullable AudioRecord audioRecord) { in setAudioRecord() 118 @AudioRecord.ReadMode int readMode) { in read() 137 @AudioRecord.ReadMode int readMode) { in read() 151 @AudioRecord.ReadMode int readMode) { in read() [all …]
|
/frameworks/av/media/libaudioclient/tests/ |
D | test_create_audiorecord.cpp | 49 sp<AudioRecord> record = in testRecord() 50 new AudioRecord(AUDIO_SOURCE_DEFAULT, 0 /* sampleRate */, AUDIO_FORMAT_DEFAULT, in testRecord() 96 sp<AudioRecord> record = new AudioRecord(attributionSource); in testRecord() 97 const auto emptyCallback = sp<AudioRecord::IAudioRecordCallback>::make(); in testRecord() 101 fast ? AudioRecord::TRANSFER_CALLBACK : AudioRecord::TRANSFER_DEFAULT, flags, in testRecord()
|
D | record_test_output_v1.0_ref_walleye.txt | 3 AudioRecord::dump 12 AudioRecord::dump 21 AudioRecord::dump 30 AudioRecord::dump 39 AudioRecord::dump 48 AudioRecord::dump 57 AudioRecord::dump 66 AudioRecord::dump 75 AudioRecord::dump 84 AudioRecord::dump [all …]
|
D | audio_test_utils.h | 138 class AudioCapture : public AudioRecord::IAudioRecordCallback { 144 AudioRecord::transfer_type transferType = AudioRecord::TRANSFER_CALLBACK, 147 size_t onMoreData(const AudioRecord::Buffer& buffer) override; 156 sp<AudioRecord> getAudioRecordHandle(); 189 const AudioRecord::transfer_type mTransferType; 193 sp<AudioRecord> mRecord;
|
D | audio_test_utils.cpp | 254 size_t AudioCapture::onMoreData(const AudioRecord::Buffer& buffer) { in onMoreData() 356 audio_session_t sessionId, AudioRecord::transfer_type transferType, in AudioCapture() 390 AudioRecord::getMinFrameCount(&minFrameCount, mSampleRate, mFormat, mChannelMask); in create() 413 if (mTransferType == AudioRecord::TRANSFER_OBTAIN) { in create() 415 mRecord = new AudioRecord(mInputSource, mSampleRate, mFormat, mChannelMask, in create() 420 mRecord = new AudioRecord(attributionSource); in create() 427 } else if (mTransferType == AudioRecord::TRANSFER_CALLBACK) { in create() 428 mRecord = new AudioRecord(mInputSource, mSampleRate, mFormat, mChannelMask, in create() 433 AudioRecord::convertTransferToText(mTransferType)); in create() 467 sp<AudioRecord> AudioCapture::getAudioRecordHandle() { in getAudioRecordHandle() [all …]
|
D | audiorecord_tests.cpp | 40 const auto ar = sp<AudioRecord>::make(attributionSource); in TEST() 93 const AudioRecord::transfer_type mTransferType = AudioRecord::TRANSFER_OBTAIN; 218 if (mTransferType != AudioRecord::TRANSFER_CALLBACK) { in TEST_P()
|
D | record_test_input_v1.0_ref.txt | 3 # Add one line for each tested AudioRecord constructor with the following arguments:
|
/frameworks/av/media/libaudioclient/ |
D | AudioRecord.cpp | 51 status_t AudioRecord::getMinFrameCount( in getMinFrameCount() 84 void AudioRecord::MediaMetrics::gather(const AudioRecord *record) in gather() 121 status_t AudioRecord::getMetrics(mediametrics::Item * &item) in getMetrics() 132 AudioRecord::AudioRecord(const AttributionSourceState &client) in AudioRecord() function in android::AudioRecord 137 AudioRecord::AudioRecord( in AudioRecord() function in android::AudioRecord 163 AudioRecord::~AudioRecord() in ~AudioRecord() 191 void AudioRecord::stopAndJoinCallbacks() { in stopAndJoinCallbacks() 211 status_t AudioRecord::set( in set() 401 status_t AudioRecord::start(AudioSystem::sync_event_t event, audio_session_t triggerSession) in start() 484 void AudioRecord::stop() in stop() [all …]
|
/frameworks/base/core/jni/ |
D | android_media_AudioRecord.cpp | 66 class AudioRecordJNIStorage : public AudioRecord::IAudioRecordCallback { 137 static sp<AudioRecord> getAudioRecord(JNIEnv* env, jobject thiz) in getAudioRecord() 139 return getFieldSp<AudioRecord>(env, thiz, javaAudioRecordFields.nativeRecorderInJavaObj); in getAudioRecord() 170 sp<AudioRecord> lpRecorder; in android_media_AudioRecord_setup() 226 lpRecorder = new AudioRecord(attributionSource); in android_media_AudioRecord_setup() 249 sessionId, AudioRecord::TRANSFER_DEFAULT, flags, -1, in android_media_AudioRecord_setup() 263 lpRecorder = (AudioRecord*)nativeRecordInJavaObj; in android_media_AudioRecord_setup() 309 setFieldSp(env, thiz, sp<AudioRecord>{}, javaAudioRecordFields.nativeRecorderInJavaObj); in android_media_AudioRecord_setup() 320 sp<AudioRecord> lpRecorder = getAudioRecord(env, thiz); in android_media_AudioRecord_start() 335 sp<AudioRecord> lpRecorder = getAudioRecord(env, thiz); in android_media_AudioRecord_stop() [all …]
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioRecord.h | 44 class AudioRecord : public AudioSystem::AudioDeviceCallback 50 friend AudioRecord; variable 105 friend AudioRecord; variable 113 virtual size_t onMoreData([[maybe_unused]] const AudioRecord::Buffer& buffer) { return 0; } in onMoreData() 157 AudioRecord(const android::content::AttributionSourceState& client); 188 AudioRecord(audio_source_t inputSource, 210 virtual ~AudioRecord(); 623 AudioRecord(const AudioRecord& other); 624 AudioRecord& operator = (const AudioRecord& other); 630 AudioRecordThread(AudioRecord& receiver); [all …]
|
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
D | AudioPolicyDeathTestActivity.java | 23 import android.media.AudioRecord; 76 AudioRecord audioRecord = mAudioPolicy.createAudioRecordSink(audioMix); in onCreate() 77 if (audioRecord != null && audioRecord.getState() != AudioRecord.STATE_UNINITIALIZED) { in onCreate() 111 private final AudioRecord mAudioRecord; 114 AudioCapturingThread(AudioRecord record, int durationMs) { in AudioCapturingThread()
|
/frameworks/wilhelm/src/android/ |
D | AudioRecordCallback.h | 29 const android::AudioRecord::Buffer&); 33 class AudioRecordCallback : public android::AudioRecord::IAudioRecordCallback { 40 size_t onMoreData(const android::AudioRecord::Buffer& buffer) override { in onMoreData()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | AudioSource.h | 35 class AudioRecord; variable 39 public AudioRecord::IAudioRecordCallback { 111 sp<AudioRecord> mRecord; 146 size_t onMoreData(const AudioRecord::Buffer&) override;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | ScreenInternalAudioRecorder.java | 22 import android.media.AudioRecord; 42 private AudioRecord mAudioRecord; 43 private AudioRecord mAudioRecordMic; 90 int size = AudioRecord.getMinBufferSize( in setupSimple() 109 mAudioRecord = new AudioRecord.Builder() in setupSimple() 115 mAudioRecordMic = new AudioRecord(MediaRecorder.AudioSource.VOICE_COMMUNICATION, in setupSimple() 305 if (mAudioRecord.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in start()
|
/frameworks/base/media/java/android/media/ |
D | AudioRecord.java | 96 public class AudioRecord implements AudioRouting, MicrophoneDirection, class 328 public AudioRecord(int audioSource, int sampleRateInHz, int channelConfig, int audioFormat, in AudioRecord() method in AudioRecord 366 public AudioRecord(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioRecord() method in AudioRecord 396 private AudioRecord(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioRecord() method in AudioRecord 477 int initResult = native_setup(new WeakReference<AudioRecord>(this), mAudioAttributes, in AudioRecord() 500 /*package*/ AudioRecord(long nativeRecordInJavaObj) { in AudioRecord() method in AudioRecord 789 private @NonNull AudioRecord buildAudioPlaybackCaptureRecord() { in buildAudioPlaybackCaptureRecord() 801 AudioRecord record = audioPolicy.createAudioRecordSink(audioMix); in buildAudioPlaybackCaptureRecord() 838 private @NonNull AudioRecord buildCallExtractionRecord() { in buildCallExtractionRecord() 860 AudioRecord record = audioPolicy.createAudioRecordSink(audioMix); in buildCallExtractionRecord() [all …]
|
D | AudioRecordRoutingProxy.java | 22 class AudioRecordRoutingProxy extends AudioRecord {
|
/frameworks/av/media/libaaudio/src/legacy/ |
D | AudioStreamRecord.cpp | 106 sp<AudioRecord::IAudioRecordCallback> callback; in open() 107 AudioRecord::transfer_type streamTransferType = AudioRecord::transfer_type::TRANSFER_SYNC; in open() 109 streamTransferType = AudioRecord::transfer_type::TRANSFER_CALLBACK; in open() 110 callback = sp<AudioRecord::IAudioRecordCallback>::fromExisting(this); in open() 147 mAudioRecord = new AudioRecord( in open()
|
D | AudioStreamLegacy.h | 62 protected android::AudioRecord::IAudioRecordCallback { 89 size_t onMoreData(const android::AudioRecord::Buffer& buffer) override;
|
D | README.md | 2 Android AudioTrack and AudioRecord.
|
D | AudioStreamRecord.h | 87 android::sp<android::AudioRecord> mAudioRecord;
|
/frameworks/base/services/musicrecognition/java/com/android/server/musicrecognition/ |
D | MusicRecognitionManagerPerUserService.java | 33 import android.media.AudioRecord; 245 AudioRecord audioRecord = createAudioRecord(recognitionRequest, maxAudioLengthSeconds); in streamAudio() 264 int maxAudioLengthSeconds, AudioRecord audioRecord, OutputStream outputStream) in streamAudio() 391 private static AudioRecord createAudioRecord( in createAudioRecord() 396 return new AudioRecord(recognitionRequest.getAudioAttributes(), in createAudioRecord()
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioPolicy.java | 38 import android.media.AudioRecord; 105 @Nullable private ArrayList<WeakReference<AudioRecord>> mCaptors; 963 public AudioRecord createAudioRecordSink(AudioMix mix) throws IllegalArgumentException { in createAudioRecordSink() 979 .addTag(AudioRecord.SUBMIX_FIXED_VOLUME); in createAudioRecordSink() 984 AudioRecord ar = new AudioRecord(ab.build(), in createAudioRecordSink() 986 AudioRecord.getMinBufferSize(mix.getFormat().getSampleRate(), in createAudioRecordSink() 995 mCaptors.add(new WeakReference<AudioRecord>(ar)); in createAudioRecordSink() 1066 for (final WeakReference<AudioRecord> weakRecord : mCaptors) { in invalidateCaptorsAndInjectors() 1067 final AudioRecord record = weakRecord.get(); in invalidateCaptorsAndInjectors()
|
/frameworks/av/media/libstagefright/ |
D | AudioSource.cpp | 100 status_t status = AudioRecord::getMinFrameCount(&minFrameCount, in set() 115 mRecord = new AudioRecord( in set() 120 wp<AudioRecord::IAudioRecordCallback>{this}, in set() 123 AudioRecord::TRANSFER_DEFAULT, in set() 349 size_t AudioSource::onMoreData(const AudioRecord::Buffer& audioBuffer) { in onMoreData()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
D | MediaAudioEffectTest.java | 21 import android.media.AudioRecord; 128 private AudioRecord getAudioRecord() { in getAudioRecord() 129 AudioRecord ar = null; in getAudioRecord() 131 ar = new AudioRecord(MediaRecorder.AudioSource.DEFAULT, in getAudioRecord() 135 AudioRecord.getMinBufferSize(SAMPLING_RATE, in getAudioRecord() 140 AudioRecord.STATE_INITIALIZED, ar.getState()); in getAudioRecord() 156 AudioRecord ar = null; in test1_0ConstructorFromType() 199 AudioRecord ar = null; in test1_1ConstructorFromUuid()
|