Searched refs:halSource (Results 1 – 6 of 6) sorted by relevance
/hardware/interfaces/audio/common/all-versions/default/ |
D | HidlUtils.h | 74 static status_t audioSourceFromHal(audio_source_t halSource, AudioSource* source); 75 static status_t audioSourceToHal(const AudioSource& source, audio_source_t* halSource); 191 inline status_t HidlUtils::audioSourceFromHal(audio_source_t halSource, AudioSource* source) { in audioSourceFromHal() argument 192 *source = AudioSource(halSource); in audioSourceFromHal() 196 inline status_t HidlUtils::audioSourceToHal(const AudioSource& source, audio_source_t* halSource) { in audioSourceToHal() argument 197 *halSource = static_cast<audio_source_t>(source); in audioSourceToHal()
|
/hardware/interfaces/audio/core/all-versions/default/ |
D | Device.cpp | 209 audio_source_t halSource; in openInputStreamCore() local 211 HidlUtils::audioSourceToHal(source, &halSource) != NO_ERROR) { in openInputStreamCore() 217 halConfig.channel_mask, halDeviceAddress, halSource); in openInputStreamCore() 219 halFlags, halDeviceAddress, halSource); in openInputStreamCore()
|
D | StreamIn.cpp | 342 int halSource; in getAudioSource() local 343 Result retval = mStreamCommon->getParam(AudioParameter::keyInputSource, &halSource); in getAudioSource() 348 HidlUtils::audioSourceFromHal(static_cast<audio_source_t>(halSource), &source)); in getAudioSource()
|
/hardware/interfaces/audio/common/all-versions/default/7.0/ |
D | HidlUtils.cpp | 319 status_t HidlUtils::audioSourceFromHal(audio_source_t halSource, AudioSource* source) { in audioSourceFromHal() argument 320 *source = audio_source_to_string(halSource); in audioSourceFromHal() 324 ALOGE("Unknown audio source value 0x%X", halSource); in audioSourceFromHal() 329 status_t HidlUtils::audioSourceToHal(const AudioSource& source, audio_source_t* halSource) { in audioSourceToHal() argument 330 if (!xsd::isUnknownAudioSource(source) && audio_source_from_string(source.c_str(), halSource)) { in audioSourceToHal() 334 *halSource = AUDIO_SOURCE_DEFAULT; in audioSourceToHal()
|
/hardware/interfaces/audio/common/all-versions/default/tests/ |
D | hidlutils_tests.cpp | 661 audio_source_t halSource; in TEST() local 663 EXPECT_EQ(NO_ERROR, HidlUtils::audioSourceToHal(source, &halSource)) in TEST() 666 audio_is_valid_audio_source(halSource)) in TEST() 668 EXPECT_EQ(NO_ERROR, HidlUtils::audioSourceFromHal(halSource, &sourceBack)) in TEST() 669 << "Conversion of source " << halSource << " failed"; in TEST()
|
/hardware/interfaces/audio/effect/all-versions/default/ |
D | Effect.cpp | 725 audio_source_t halSource; in setAudioSource() local 726 if (status_t status = HidlUtils::audioSourceToHal(source, &halSource); status == NO_ERROR) { in setAudioSource() 727 uint32_t halSourceParam = static_cast<uint32_t>(halSource); in setAudioSource()
|