/frameworks/av/media/libaudioclient/tests/ |
D | audiosystem_tests.cpp | 480 const audio_source_t audioSource = AUDIO_SOURCE_MIC; in TEST_F() local 489 AudioSystem::setDevicesRoleForCapturePreset(audioSource, role, outputDevices)); in TEST_F() 491 AudioSystem::addDevicesRoleForCapturePreset(audioSource, role, outputDevices)); in TEST_F() 493 AudioSystem::removeDevicesRoleForCapturePreset(audioSource, role, outputDevices)); in TEST_F() 497 EXPECT_EQ(BAD_VALUE, AudioSystem::getDevicesForRoleAndCapturePreset(audioSource, in TEST_F() 499 EXPECT_EQ(BAD_VALUE, AudioSystem::setDevicesRoleForCapturePreset(audioSource, DEVICE_ROLE_NONE, in TEST_F() 501 EXPECT_EQ(BAD_VALUE, AudioSystem::addDevicesRoleForCapturePreset(audioSource, DEVICE_ROLE_NONE, in TEST_F() 504 audioSource, DEVICE_ROLE_NONE, inputDevices)); in TEST_F() 506 AudioSystem::clearDevicesRoleForCapturePreset(audioSource, DEVICE_ROLE_NONE)); in TEST_F() 510 AudioSystem::getDevicesForRoleAndCapturePreset(audioSource, role, devices)); in TEST_F() [all …]
|
/frameworks/av/services/audiopolicy/engine/common/src/ |
D | EngineBase.cpp | 584 status_t EngineBase::setDevicesRoleForCapturePreset(audio_source_t audioSource, device_role_t role, in setDevicesRoleForCapturePreset() argument 587 std::function<bool(audio_source_t)> p = [](audio_source_t audioSource) { in setDevicesRoleForCapturePreset() argument 588 return audio_is_valid_audio_source(audioSource); in setDevicesRoleForCapturePreset() 591 mCapturePresetDevicesRoleMap, audioSource, role, devices, "audio source" /*logStr*/, p); in setDevicesRoleForCapturePreset() 594 status_t EngineBase::addDevicesRoleForCapturePreset(audio_source_t audioSource, device_role_t role, in addDevicesRoleForCapturePreset() argument 598 if (!audio_is_valid_audio_source(audioSource)) { in addDevicesRoleForCapturePreset() 599 ALOGE("%s unknown audio source %u", __func__, audioSource); in addDevicesRoleForCapturePreset() 605 const auto audioSourceRole = std::make_pair(audioSource, role); in addDevicesRoleForCapturePreset() 613 audioSource, in addDevicesRoleForCapturePreset() 628 audio_source_t audioSource, device_role_t role, const AudioDeviceTypeAddrVector& devices) { in removeDevicesRoleForCapturePreset() argument [all …]
|
/frameworks/av/services/audiopolicy/engine/common/include/ |
D | EngineBase.h | 148 status_t setDevicesRoleForCapturePreset(audio_source_t audioSource, device_role_t role, 151 status_t addDevicesRoleForCapturePreset(audio_source_t audioSource, device_role_t role, 159 status_t doRemoveDevicesRoleForCapturePreset(audio_source_t audioSource, 163 status_t removeDevicesRoleForCapturePreset(audio_source_t audioSource, 166 status_t clearDevicesRoleForCapturePreset(audio_source_t audioSource, 169 status_t getDevicesForRoleAndCapturePreset(audio_source_t audioSource,
|
/frameworks/av/services/audiopolicy/engine/interface/ |
D | EngineInterface.h | 391 virtual status_t setDevicesRoleForCapturePreset(audio_source_t audioSource, device_role_t role, 406 virtual status_t addDevicesRoleForCapturePreset(audio_source_t audioSource, device_role_t role, 419 virtual status_t removeDevicesRoleForCapturePreset(audio_source_t audioSource, 430 virtual status_t clearDevicesRoleForCapturePreset(audio_source_t audioSource, 444 virtual status_t getDevicesForRoleAndCapturePreset(audio_source_t audioSource,
|
/frameworks/wilhelm/tests/mimeUri/ |
D | slesTestPlayUri2.cpp | 72 SLDataSource audioSource; in TestPlayUri() local 133 audioSource.pFormat = (void *)&mime; in TestPlayUri() 134 audioSource.pLocator = (void *)&uri; in TestPlayUri() 137 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, in TestPlayUri() 143 audioSource.pLocator = (void *)&uri; in TestPlayUri() 144 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player2, &audioSource, &audioSink, 2, in TestPlayUri()
|
D | slesTest_playStates.cpp | 56 SLDataSource audioSource; in TestPlayUri() local 118 audioSource.pFormat = (void*)&mime; in TestPlayUri() 119 audioSource.pLocator = (void*)&uri; in TestPlayUri() 122 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestPlayUri()
|
D | slesTestPlayStreamType.cpp | 57 SLDataSource audioSource; in TestStreamTypeConfiguration() local 124 audioSource.pFormat = (void*)&mime; in TestStreamTypeConfiguration() 125 audioSource.pLocator = (void*)&uri; in TestStreamTypeConfiguration() 128 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestStreamTypeConfiguration()
|
D | slesTestPlayUri.cpp | 131 SLDataSource audioSource; in TestPlayUri() local 178 audioSource.pFormat = (void *)&mime; in TestPlayUri() 179 audioSource.pLocator = (void *)&uri; in TestPlayUri() 188 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestPlayUri()
|
D | slesTestLoopUri.cpp | 128 SLDataSource audioSource; in TestLoopUri() local 172 audioSource.pFormat = (void *)&mime; in TestLoopUri() 173 audioSource.pLocator = (void *)&uri; in TestLoopUri() 186 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestLoopUri()
|
D | slesTestGetPositionUri.cpp | 133 SLDataSource audioSource; in TestGetPositionUri() local 185 audioSource.pFormat = (void *)&mime; in TestGetPositionUri() 186 audioSource.pLocator = (void *)&uri; in TestGetPositionUri() 195 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestGetPositionUri()
|
D | slesTestManyPlayers.cpp | 46 SLDataSource audioSource; variable 167 audioSource.pFormat = (void *)&mime; in TestSetup() 168 audioSource.pLocator = (void *)&uri; in TestSetup() 212 &audioSource, &audioSink, MAX_NUMBER_INTERFACES, iidArray, required); in CreatePlayer()
|
/frameworks/wilhelm/tests/examples/ |
D | slesTestBassBoostPath.cpp | 59 SLDataSource audioSource; in TestBassBoostPathFromFD() local 137 audioSource.pFormat = (void*)&mime; in TestBassBoostPathFromFD() 139 audioSource.pLocator = (void*)&locatorFd; in TestBassBoostPathFromFD() 141 audioSource.pLocator = (void*)&locatorUri; in TestBassBoostPathFromFD() 145 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, in TestBassBoostPathFromFD()
|
D | slesTestVirtualizerPath.cpp | 60 SLDataSource audioSource; in TestVirtualizerPathFromFD() local 138 audioSource.pFormat = (void*)&mime; in TestVirtualizerPathFromFD() 140 audioSource.pLocator = (void*)&locatorFd; in TestVirtualizerPathFromFD() 142 audioSource.pLocator = (void*)&locatorUri; in TestVirtualizerPathFromFD() 146 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, in TestVirtualizerPathFromFD()
|
D | slesTestSawtoothBufferQueue.cpp | 111 SLDataSource audioSource; in TestPlaySawtoothBufferQueue() local 174 audioSource.pFormat = (void *)&pcm; in TestPlaySawtoothBufferQueue() 175 audioSource.pLocator = (void *)&bufferQueue; in TestPlaySawtoothBufferQueue() 201 &audioSource, &audioSink, 1, iidArray, required); CheckErr(res); in TestPlaySawtoothBufferQueue()
|
D | slesTestPlayFdPath.cpp | 80 SLDataSource audioSource; in TestPlayPathFromFD() local 147 audioSource.pFormat = (void*)&mime; in TestPlayPathFromFD() 148 audioSource.pLocator = (void*)&locatorFd; in TestPlayPathFromFD() 151 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 1, in TestPlayPathFromFD()
|
D | slesTestEqFdPath.cpp | 64 SLDataSource audioSource; in TestEQPathFromFD() local 142 audioSource.pFormat = (void*)&mime; in TestEQPathFromFD() 144 audioSource.pLocator = (void*)&locatorFd; in TestEQPathFromFD() 146 audioSource.pLocator = (void*)&locatorUri; in TestEQPathFromFD() 150 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, in TestEQPathFromFD()
|
D | slesTestEqOutputPath.cpp | 64 SLDataSource audioSource; in TestEQPathFromFD() local 149 audioSource.pFormat = (void*)&mime; in TestEQPathFromFD() 151 audioSource.pLocator = (void*)&locatorFd; in TestEQPathFromFD() 153 audioSource.pLocator = (void*)&locatorUri; in TestEQPathFromFD() 157 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 1, in TestEQPathFromFD()
|
D | slesTestSendToPresetReverb.cpp | 82 SLDataSource audioSource; in TestSendToPresetReverb() local 172 audioSource.pLocator = (void*)&locatorUri; in TestSendToPresetReverb() 185 audioSource.pLocator = (void*)&locatorFd; in TestSendToPresetReverb() 197 audioSource.pFormat = (void*)&mime; in TestSendToPresetReverb() 200 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 3, in TestSendToPresetReverb()
|
/frameworks/wilhelm/tests/ |
D | mimeUri_test.cpp | 105 SLDataSource audioSource; in TestPlayUri() local 152 audioSource.pFormat = (void *)&mime; in TestPlayUri() 153 audioSource.pLocator = (void *)&uri; in TestPlayUri() 163 &audioSource, &audioSink, 2, iidArray, required); CheckErr(res); in TestPlayUri()
|
/frameworks/av/media/libaudioclient/aidl/android/media/ |
D | IAudioPolicyService.aidl | 369 void setDevicesRoleForCapturePreset(AudioSource audioSource, in setDevicesRoleForCapturePreset() argument 373 void addDevicesRoleForCapturePreset(AudioSource audioSource, in addDevicesRoleForCapturePreset() argument 377 void removeDevicesRoleForCapturePreset(AudioSource audioSource, in removeDevicesRoleForCapturePreset() argument 381 void clearDevicesRoleForCapturePreset(AudioSource audioSource, in clearDevicesRoleForCapturePreset() argument 384 AudioDevice[] getDevicesForRoleAndCapturePreset(AudioSource audioSource, in getDevicesForRoleAndCapturePreset() argument
|
/frameworks/wilhelm/tests/sandbox/streamSource/ |
D | slesTestPlayStream.cpp | 186 SLDataSource audioSource; in TestPlayStream() local 237 audioSource.pFormat = (void *)&mime; in TestPlayStream() 238 audioSource.pLocator = (void *)&streamLocator; in TestPlayStream() 247 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestPlayStream()
|
/frameworks/wilhelm/tests/listening/ |
D | slesTest_playMuteSolo.cpp | 172 SLDataSource audioSource; in TestPlayUri() local 234 audioSource.pFormat = (void*)&mime; in TestPlayUri() 235 audioSource.pLocator = (void*)&uri; in TestPlayUri() 238 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, in TestPlayUri()
|
/frameworks/av/media/libmediaplayerservice/tests/stagefrightRecorder/ |
D | StagefrightRecorderTest.cpp | 94 audio_source_t audioSource = AUDIO_SOURCE_DEFAULT); 108 audio_source_t audioSource) { in setAudioRecorderFormat() argument 109 status_t status = mStfRecorder->setAudioSource(audioSource); in setAudioRecorderFormat() 110 ASSERT_EQ(status, OK) << "Failed to set the audio source: " << audioSource; in setAudioRecorderFormat()
|
/frameworks/base/core/java/android/service/voice/ |
D | HotwordDetectionService.java | 184 @AudioSource int audioSource, 192 switch (audioSource) { 205 Log.i(TAG, "Unsupported audio source " + audioSource);
|
/frameworks/base/media/java/android/media/ |
D | AudioRecord.java | 328 public AudioRecord(int audioSource, int sampleRateInHz, int channelConfig, int audioFormat, in AudioRecord() argument 332 .setInternalCapturePreset(audioSource) in AudioRecord() 1143 private void audioParamCheck(int audioSource, int sampleRateInHz, int audioFormat) in audioParamCheck() argument 1148 if ((audioSource < MediaRecorder.AudioSource.DEFAULT) in audioParamCheck() 1149 || ((audioSource > MediaRecorder.getAudioSourceMax()) in audioParamCheck() 1150 && (audioSource != MediaRecorder.AudioSource.RADIO_TUNER) in audioParamCheck() 1151 && (audioSource != MediaRecorder.AudioSource.ECHO_REFERENCE) in audioParamCheck() 1152 && (audioSource != MediaRecorder.AudioSource.HOTWORD) in audioParamCheck() 1153 && (audioSource != MediaRecorder.AudioSource.ULTRASOUND))) { in audioParamCheck() 1154 throw new IllegalArgumentException("Invalid audio source " + audioSource); in audioParamCheck() [all …]
|