Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/jni/megaaudio/player/
DNativeAudioSource.cpp37 AudioSource* audioSource = (AudioSource*)native_source_ptr; in Java_org_hyphonate_megaaudio_player_NativeAudioSource_setSampleRateN() local
38 audioSource->setSampleRate(sample_rate); in Java_org_hyphonate_megaaudio_player_NativeAudioSource_setSampleRateN()
44 AudioSource* audioSource = (AudioSource*)native_source_ptr; in Java_org_hyphonate_megaaudio_player_NativeAudioSource_setFreqN() local
45 audioSource->setFreq(freq); in Java_org_hyphonate_megaaudio_player_NativeAudioSource_setFreqN()
57 AudioSource* audioSource = (AudioSource*)native_source_ptr; in Java_org_hyphonate_megaaudio_player_NativeAudioSource_triggerN() local
58 audioSource->trigger(); in Java_org_hyphonate_megaaudio_player_NativeAudioSource_triggerN()
65 AudioSource* audioSource = (AudioSource*)native_source_ptr; in Java_org_hyphonate_megaaudio_player_NativeAudioSource_pullN() local
66 int numFrames = audioSource->pull(sAudioBuffer, num_frames, num_chans); in Java_org_hyphonate_megaaudio_player_NativeAudioSource_pullN()
/cts/tests/tests/nativemedia/sl/src/
DSLObjectCreationTest.cpp66 SLDataSource audioSource; member in SLObjectCreationTest
120 &audioSource, &audioSink, 0, NULL/*iidArray*/, NULL/*required*/); in AudioPlayerCreation()
140 audioSource.pLocator = &locatorUriSrc; in UriSourceInitialization()
141 audioSource.pFormat = &formatMimeSrc; in UriSourceInitialization()
152 audioSource.pLocator = &locatorFdSrc; in FdSourceInitialization()
153 audioSource.pFormat = &formatMimeSrc; in FdSourceInitialization()
217 audioSource.pLocator = &locatorBufferQueue; in AudioPlayerFromPcmBqCreation()
218 audioSource.pFormat = &pcm; in AudioPlayerFromPcmBqCreation()
234 audioSource.pFormat = (void *)&formatMimeSrc; in AudioPlayerFromTsAbqCreation()
235 audioSource.pLocator = (void *)&locatorAbqSrc; in AudioPlayerFromTsAbqCreation()
[all …]
/cts/tests/tests/media/audio/jni/
Dappendix-b-1-2-recording.cpp55 SLDataSource audioSource; in TestAudioRecording() local
142 audioSource.pLocator = (void *)&locator_mic; in TestAudioRecording()
143 audioSource.pFormat = NULL; in TestAudioRecording()
171 &audioSource, &audioSink, 0, iidArray, required); in TestAudioRecording()
Dappendix-b-1-1-buffer-queue.cpp77 SLDataSource audioSource; in TestPlayMusicBufferQueue() local
153 audioSource.pFormat = (void *)&pcm; in TestPlayMusicBufferQueue()
154 audioSource.pLocator = (void *)&bufferQueue; in TestPlayMusicBufferQueue()
175 &audioSource, &audioSink, 1, iidArray, required); in TestPlayMusicBufferQueue()
Daudio-track-native.cpp119 SLDataSource audioSource; in open() local
120 audioSource.pFormat = (void *)&pcm; in open()
121 audioSource.pLocator = (void *)&bufferQueue; in open()
138 &audioSource, &audioSink, 1 /* numInterfaces */, iidArray, required); in open()
Daudio-record-native.cpp105 SLDataSource audioSource; in open() local
106 audioSource.pLocator = (void *)&locator_mic; in open()
107 audioSource.pFormat = NULL; in open()
149 &audioSource, &audioSink, 2, iidArray, required); in open()
/cts/tests/tests/voiceinteraction/common/src/android/voiceinteraction/common/
DAudioStreamHelper.java60 try (InputStream audioSource = new ParcelFileDescriptor.AutoCloseInputStream(audioStream)) { in assertAudioStream() argument
64 while ((count = audioSource.read(buffer)) != -1) { in assertAudioStream()
/cts/tests/tests/media/recorder/src/android/media/recorder/cts/
DMediaRecorderRandomTest.java112 final int[] audioSource = { in testRecorderRandomAction() local
133 final int index = param % audioSource.length; in testRecorderRandomAction()
134 mRecorder.setAudioSource(audioSource[index]); in testRecorderRandomAction()
/cts/tests/tests/virtualdevice/audio/src/android/virtualdevice/cts/audio/
DSignalObserver.java71 private SignalObserver(AudioSource audioSource, Set<Integer> observedFrequencies) { in SignalObserver() argument
72 mAudioRecorderThread = new AudioRecorderThread(audioSource, observedFrequencies); in SignalObserver()
102 AudioRecorderThread(AudioSource audioSource, Set<Integer> observedFrequencies) { in AudioRecorderThread() argument
103 mAudioSource = audioSource; in AudioRecorderThread()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioMixingRuleTest.java335 private static Matcher isAudioMixCapturePresetCriterion(int audioSource, boolean exclude) {
344 && attributes != null && attributes.getCapturePreset() == audioSource;
352 exclude ? "exclude" : "match", audioSource));
357 private static Matcher isAudioMixMatchCapturePresetCriterion(int audioSource) {
358 return isAudioMixCapturePresetCriterion(audioSource, /*exclude=*/ false);
DAudioRecordTest.java1010 int audioSource, int sampleRateInHz, in createAudioRecord() argument
1016 audioSource, sampleRateInHz, channelConfig, in createAudioRecord()
1028 record = new AudioRecord(audioSource, sampleRateInHz, channelConfig, in createAudioRecord()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/testcore/
DHelper.java371 try (InputStream audioSource = new ParcelFileDescriptor.AutoCloseInputStream(audioStream)) {
375 while ((count = audioSource.read(buffer)) != -1) {
381 try (OutputStream audioSource = new ParcelFileDescriptor.AutoCloseOutputStream(
383 audioSource.write(1);
/cts/tests/tests/media/common/src/android/media/cts/
DAudioHelper.java532 public AudioRecordAudit(int audioSource, int sampleRate, int channelMask, in AudioRecordAudit() argument
534 this(audioSource, sampleRate, channelMask, format, bufferSize, isChannelIndex, in AudioRecordAudit()
538 public AudioRecordAudit(int audioSource, int sampleRate, int channelMask, in AudioRecordAudit() argument
544 .setInternalCapturePreset(audioSource) in AudioRecordAudit()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioDataPathsBaseActivity.java663 AudioSource audioSource = mSourceProvider.getActiveSource(); in startTest() local
667 audioSource.setSampleRate(mOutSampleRate); in startTest()
671 audioSource.setFreq((float) mAnalyzer.getAdjustedFrequency()); in startTest()