Home
last modified time | relevance | path

Searched refs:HidlUtils (Results 1 – 16 of 16) sorted by relevance

/hardware/interfaces/audio/common/all-versions/default/tests/
Dhidlutils_tests.cpp33 using ::android::hardware::audio::common::COMMON_TYPES_CPP_VERSION::implementation::HidlUtils;
55 TEST(HidlUtils, ConvertInvalidChannelMask) { in TEST() argument
57 EXPECT_EQ(BAD_VALUE, HidlUtils::audioChannelMaskFromHal(kInvalidHalChannelMask, in TEST()
59 EXPECT_EQ(BAD_VALUE, HidlUtils::audioChannelMaskFromHal(kInvalidHalChannelMask, in TEST()
62 EXPECT_EQ(BAD_VALUE, HidlUtils::audioChannelMaskToHal("", &halInvalid)); in TEST()
64 EXPECT_EQ(BAD_VALUE, HidlUtils::audioChannelMaskToHal("AUDIO_CHANNEL_INVALID", &halInvalid)); in TEST()
65 EXPECT_EQ(BAD_VALUE, HidlUtils::audioChannelMaskToHal("random string", &halInvalid)); in TEST()
84 TEST(HidlUtils, ConvertChannelMask) { in TEST() argument
89 EXPECT_EQ(NO_ERROR, HidlUtils::audioChannelMaskToHal(channelMask, &halChannelMask)) in TEST()
96 HidlUtils::audioChannelMaskFromHal(halChannelMask, isInput, &channelMaskBack)) in TEST()
[all …]
Dhidlutils6_tests.cpp27 using ::android::hardware::audio::common::COMMON_TYPES_CPP_VERSION::implementation::HidlUtils;
57 EXPECT_EQ(NO_ERROR, HidlUtils::deviceAddressToHal(device, &halDeviceType, halDeviceAddress)); in ConvertDeviceAddress()
60 HidlUtils::deviceAddressFromHal(halDeviceType, halDeviceAddress, &deviceBack)); in ConvertDeviceAddress()
/hardware/interfaces/audio/core/all-versions/default/util/
DCoreUtils.cpp25 using ::android::hardware::audio::common::COMMON_TYPES_CPP_VERSION::implementation::HidlUtils;
46 return HidlUtils::deviceAddressToHal(device, halDeviceType, halDeviceAddress); in deviceAddressToHal()
48 return HidlUtils::deviceAddressToHalImpl(device, halDeviceType, halDeviceAddress); in deviceAddressToHal()
55 return HidlUtils::deviceAddressFromHal(halDeviceType, halDeviceAddress, device); in deviceAddressFromHal()
57 return HidlUtils::deviceAddressFromHalImpl(halDeviceType, halDeviceAddress, device); in deviceAddressFromHal()
162 HidlUtils::audioSourceFromHal(halTrackMetadata.source, &trackMetadata.source), in sinkMetadataFromHal()
202 HidlUtils::audioChannelMaskFromHal(halTrackMetadata.channel_mask, true /*isInput*/, in sinkMetadataFromHalV7()
205 std::vector<std::string> strTags = HidlUtils::splitAudioTags(halTrackMetadata.tags); in sinkMetadataFromHalV7()
207 strTags = HidlUtils::filterOutNonVendorTags(strTags); in sinkMetadataFromHalV7()
209 CONVERT_CHECKED(HidlUtils::audioTagsFromHal(strTags, &trackMetadata.tags), result); in sinkMetadataFromHalV7()
[all …]
/hardware/interfaces/audio/common/all-versions/default/7.0/
DHidlUtils.cpp46 status_t HidlUtils::audioIndexChannelMaskFromHal(audio_channel_mask_t halChannelMask, in audioIndexChannelMaskFromHal()
57 status_t HidlUtils::audioInputChannelMaskFromHal(audio_channel_mask_t halChannelMask, in audioInputChannelMaskFromHal()
68 status_t HidlUtils::audioOutputChannelMaskFromHal(audio_channel_mask_t halChannelMask, in audioOutputChannelMaskFromHal()
79 status_t HidlUtils::audioChannelMaskFromHal(audio_channel_mask_t halChannelMask, bool isInput, in audioChannelMaskFromHal()
100 status_t HidlUtils::audioChannelMasksFromHal(const std::vector<std::string>& halChannelMasks, in audioChannelMasksFromHal()
119 status_t HidlUtils::audioChannelMaskToHal(const AudioChannelMask& channelMask, in audioChannelMaskToHal()
130 status_t HidlUtils::audioConfigBaseFromHal(const audio_config_base_t& halConfigBase, bool isInput, in audioConfigBaseFromHal()
141 status_t HidlUtils::audioConfigBaseToHal(const AudioConfigBase& configBase, in audioConfigBaseToHal()
151 status_t HidlUtils::audioConfigBaseOptionalFromHal(const audio_config_base_t& halConfigBase, in audioConfigBaseOptionalFromHal()
178 status_t HidlUtils::audioConfigBaseOptionalToHal(const AudioConfigBaseOptional& configBase, in audioConfigBaseOptionalToHal()
[all …]
/hardware/interfaces/audio/common/all-versions/default/
DHidlUtils.cpp31 status_t HidlUtils::audioConfigFromHal(const audio_config_t& halConfig, bool, AudioConfig* config) { in audioConfigFromHal()
40 status_t HidlUtils::audioConfigToHal(const AudioConfig& config, audio_config_t* halConfig) { in audioConfigToHal()
50 status_t HidlUtils::audioGainConfigFromHal(const struct audio_gain_config& halConfig, bool, in audioGainConfigFromHal()
62 status_t HidlUtils::audioGainConfigToHal(const AudioGainConfig& config, in audioGainConfigToHal()
75 status_t HidlUtils::audioGainFromHal(const struct audio_gain& halGain, bool, AudioGain* gain) { in audioGainFromHal()
87 status_t HidlUtils::audioGainToHal(const AudioGain& gain, struct audio_gain* halGain) { in audioGainToHal()
99 status_t HidlUtils::audioUsageFromHal(audio_usage_t halUsage, AudioUsage* usage) { in audioUsageFromHal()
113 status_t HidlUtils::audioUsageToHal(const AudioUsage& usage, audio_usage_t* halUsage) { in audioUsageToHal()
118 status_t HidlUtils::audioOffloadInfoFromHal(const audio_offload_info_t& halOffload, in audioOffloadInfoFromHal()
153 status_t HidlUtils::audioOffloadInfoToHal(const AudioOffloadInfo& offload, in audioOffloadInfoToHal()
[all …]
DHidlUtilsCommon.cpp26 status_t HidlUtils::audioPortConfigsFromHal(unsigned int numHalConfigs, in audioPortConfigsFromHal()
40 status_t HidlUtils::audioPortConfigsToHal(const hidl_vec<AudioPortConfig>& configs, in audioPortConfigsToHal()
DHidlUtils.h40 struct HidlUtils { struct
178 inline status_t HidlUtils::audioContentTypeFromHal(const audio_content_type_t halContentType, in audioContentTypeFromHal()
184 inline status_t HidlUtils::audioContentTypeToHal(const AudioContentType& contentType, in audioContentTypeToHal()
191 inline status_t HidlUtils::audioSourceFromHal(audio_source_t halSource, AudioSource* source) { in audioSourceFromHal()
196 inline status_t HidlUtils::audioSourceToHal(const AudioSource& source, audio_source_t* halSource) { in audioSourceToHal()
202 status_t HidlUtils::deviceAddressToHalImpl(const DA& device, audio_devices_t* halDeviceType, in deviceAddressToHalImpl()
231 status_t HidlUtils::deviceAddressFromHalImpl(audio_devices_t halDeviceType, in deviceAddressFromHalImpl()
DAndroid.bp55 "HidlUtils.cpp",
145 "7.0/HidlUtils.cpp",
165 "7.0/HidlUtils.cpp",
/hardware/interfaces/audio/core/all-versions/default/
DDevice.cpp45 using ::android::hardware::audio::common::COMMON_TYPES_CPP_VERSION::implementation::HidlUtils;
146 if (HidlUtils::audioConfigToHal(config, &halConfig) == NO_ERROR) { in getInputBufferSize()
163 if (HidlUtils::audioConfigToHal(config, &halConfig) != NO_ERROR) { in openOutputStreamCore()
190 HidlUtils::audioConfigFromHal(halConfig, false /*isInput*/, suggestedConfig); in openOutputStreamCore()
199 if (HidlUtils::audioConfigToHal(config, &halConfig) != NO_ERROR) { in openInputStreamCore()
211 HidlUtils::audioSourceToHal(source, &halSource) != NO_ERROR) { in openInputStreamCore()
228 HidlUtils::audioConfigFromHal(halConfig, true /*isInput*/, suggestedConfig); in openInputStreamCore()
375 if (status_t status = HidlUtils::audioPortConfigsToHal(sources, &halSources); in openOutputStreamImpl()
380 if (status_t status = HidlUtils::audioPortConfigsToHal(sinks, &halSinks); in openOutputStreamImpl()
408 if (status_t status = HidlUtils::audioPortToHal(port, &halPort); status != NO_ERROR) { in openOutputStreamImpl()
[all …]
DStream.cpp40 using ::android::hardware::audio::common::COMMON_TYPES_CPP_VERSION::implementation::HidlUtils;
231 (void)HidlUtils::audioFormatsFromHal(halFormats, &formats); in getSupportedProfiles()
235 if (status_t status = HidlUtils::audioFormatToHal(format, &halFormat); status != NO_ERROR) { in getSupportedProfiles()
256 (void)HidlUtils::audioChannelMasksFromHal(halChannelMasks, &channelMasks); in getSupportedProfiles()
280 status_t status = HidlUtils::audioConfigBaseFromHal(halConfigBase, mIsInput, &configBase); in getAudioProperties()
288 status_t status = HidlUtils::audioConfigBaseOptionalToHal( in setAudioProperties()
DStreamIn.cpp40 using ::android::hardware::audio::common::COMMON_TYPES_CPP_VERSION::implementation::HidlUtils;
348 HidlUtils::audioSourceFromHal(static_cast<audio_source_t>(halSource), &source)); in getAudioSource()
DStreamOut.cpp42 using ::android::hardware::audio::common::COMMON_TYPES_CPP_VERSION::implementation::HidlUtils;
/hardware/interfaces/audio/effect/all-versions/default/
DVirtualizerEffect.cpp37 using ::android::hardware::audio::common::COMMON_TYPES_CPP_VERSION::implementation::HidlUtils;
211 if (status_t status = HidlUtils::audioChannelMaskToHal(mask, &halChannelMask); in getVirtualSpeakerAngles()
220 if (status_t status = HidlUtils::deviceAddressToHal(device, &halDeviceType, halDeviceAddress); in getVirtualSpeakerAngles()
257 (void)HidlUtils::deviceAddressFromHal(static_cast<audio_devices_t>(halMode), nullptr, &device); in getVirtualSpeakerAngles()
271 (void)HidlUtils::deviceAddressToHal(device, &halDeviceType, halDeviceAddress); in getVirtualSpeakerAngles()
309 return HidlUtils::audioChannelMaskFromHal(halMask, false /*isInput*/, &speakerAngles.mask); in getVirtualSpeakerAngles()
DEffect.cpp49 using ::android::hardware::audio::common::COMMON_TYPES_CPP_VERSION::implementation::HidlUtils;
374 (void)HidlUtils::audioChannelMaskFromHal(halConfig.main_channels, mIsInput, in effectAuxChannelsConfigFromHal()
376 (void)HidlUtils::audioChannelMaskFromHal(halConfig.aux_channels, mIsInput, in effectAuxChannelsConfigFromHal()
383 (void)HidlUtils::audioChannelMaskToHal(config.mainChannels, &halConfig->main_channels); in effectAuxChannelsConfigToHal()
384 (void)HidlUtils::audioChannelMaskToHal(config.auxChannels, &halConfig->aux_channels); in effectAuxChannelsConfigToHal()
726 if (status_t status = HidlUtils::audioSourceToHal(source, &halSource); status == NO_ERROR) { in setAudioSource()
753 if (status_t status = HidlUtils::deviceAddressToHal(device, &halDevice, halDeviceAddress); in setDevice()
765 if (status_t status = HidlUtils::deviceAddressToHal(device, &halDevice, halDeviceAddress); in setInputDevice()
/hardware/interfaces/audio/core/all-versions/vts/functional/7.0/
DPolicyConfig.cpp35 using ::android::hardware::audio::common::COMMON_TYPES_CPP_VERSION::implementation::HidlUtils;
140 if (HidlUtils::audioDeviceTypeToHal(devicePort->getType(), &halDeviceType) == in getDeviceAddressOfDevicePort()
146 if (HidlUtils::deviceAddressFromHal(halDeviceType, address.c_str(), &result) == in getDeviceAddressOfDevicePort()
/hardware/interfaces/audio/effect/all-versions/default/util/
DEffectUtils.cpp28 using ::android::hardware::audio::common::COMMON_TYPES_CPP_VERSION::implementation::HidlUtils;
87 CONVERT_CHECKED(HidlUtils::audioConfigBaseOptionalFromHal( in effectBufferConfigFromHal()
108 HidlUtils::audioConfigBaseOptionalToHal(config.base, &halConfigBase, &formatSpecified, in effectBufferConfigToHal()