Home
last modified time | relevance | path

Searched refs:channelMasks (Results 1 – 24 of 24) sorted by relevance

/hardware/interfaces/audio/core/all-versions/vts/functional/
DConfigHelper.h85 std::vector<audio_channel_mask_t> channelMasks, std::vector<uint32_t> sampleRates, in combineAudioConfig()
88 configs.reserve(channelMasks.size() * sampleRates.size()); in combineAudioConfig()
89 for (auto channelMask : channelMasks) { in combineAudioConfig()
102 static std::vector<AudioConfig> combineAudioConfig(std::vector<AudioChannelMask> channelMasks, in combineAudioConfig()
106 configs.reserve(channelMasks.size() * sampleRates.size() * formats.size()); in combineAudioConfig()
107 for (auto channelMask : channelMasks) { in combineAudioConfig()
DAudioPrimaryHidlHalTest.h1432 &GetSupported::channelMasks, &IStream::getChannelMask,
1464 for (const auto& channelMask : profile.channelMasks) {
/hardware/interfaces/audio/core/all-versions/default/
DStream.cpp139 hidl_vec<AudioChannelBitfield> channelMasks; in getSupportedChannelMasks() local
144 channelMasks.resize(halChannelMasks.size()); in getSupportedChannelMasks()
147 channelMasks[i++] = AudioChannelBitfield(channelMask); in getSupportedChannelMasks()
151 if (channelMasks.size() == 0) { in getSupportedChannelMasks()
156 _hidl_cb(channelMasks); in getSupportedChannelMasks()
158 _hidl_cb(result, channelMasks); in getSupportedChannelMasks()
255 hidl_vec<AudioChannelMask> channelMasks; in getSupportedProfiles() local
256 (void)HidlUtils::audioChannelMasksFromHal(halChannelMasks, &channelMasks); in getSupportedProfiles()
258 if (channelMasks.size() != 0 && sampleRates.size() != 0) { in getSupportedProfiles()
261 .channelMasks = std::move(channelMasks)}); in getSupportedProfiles()
/hardware/interfaces/audio/aidl/default/alsa/
DModuleAlsa.cpp61 .channelMasks = channels, in populateConnectedDevicePort()
DUtils.cpp70 const std::set<AudioChannelLayout>& channelMasks) { in make_ChannelCountToMaskMap() argument
72 for (const auto& channelMask : channelMasks) { in make_ChannelCountToMaskMap()
/hardware/interfaces/audio/core/all-versions/vts/functional/7.0/
DGenerators.cpp41 static std::vector<AudioConfig> combineAudioConfig(std::vector<xsd::AudioChannelMask> channelMasks, in combineAudioConfig() argument
45 configs.reserve(channelMasks.size() * sampleRates.size()); in combineAudioConfig()
46 for (auto channelMask : channelMasks) { in combineAudioConfig()
/hardware/interfaces/audio/common/all-versions/default/
DHidlUtils.cpp267 port->channelMasks.resize(halPort.num_channel_masks); in audioPortFromHal()
269 port->channelMasks[i] = EnumBitfield<AudioChannelMask>(halPort.channel_masks[i]); in audioPortFromHal()
317 std::min(port.channelMasks.size(), static_cast<size_t>(AUDIO_PORT_MAX_CHANNEL_MASKS)); in audioPortToHal()
319 halPort->channel_masks[i] = static_cast<audio_channel_mask_t>(port.channelMasks[i]); in audioPortToHal()
DHidlUtils.h89 hidl_vec<AudioChannelMask>* channelMasks);
/hardware/interfaces/audio/core/all-versions/vts/functional/2.0/
DAudioPrimaryHidlHalUtils.h61 static Result channelMasks(IStream* stream, hidl_vec<AudioChannelMask>& channels) { in channelMasks() function
/hardware/interfaces/audio/common/all-versions/default/tests/
Dhidlutils_tests.cpp914 profile.channelMasks.resize(2); in TEST()
915 profile.channelMasks[0] = toString(xsd::AudioChannelMask::AUDIO_CHANNEL_OUT_MONO); in TEST()
916 profile.channelMasks[1] = toString(xsd::AudioChannelMask::AUDIO_CHANNEL_OUT_STEREO); in TEST()
963 profile.channelMasks.resize(2); in generateValidAudioProfile()
964 profile.channelMasks[0] = toString(xsd::AudioChannelMask::AUDIO_CHANNEL_OUT_MONO); in generateValidAudioProfile()
965 profile.channelMasks[1] = toString(xsd::AudioChannelMask::AUDIO_CHANNEL_OUT_STEREO); in generateValidAudioProfile()
1053 profile.channelMasks.resize(2); in TEST()
1054 profile.channelMasks[0] = toString(xsd::AudioChannelMask::AUDIO_CHANNEL_OUT_MONO); in TEST()
1055 profile.channelMasks[1] = toString(xsd::AudioChannelMask::AUDIO_CHANNEL_OUT_STEREO); in TEST()
/hardware/interfaces/audio/common/all-versions/default/7.0/
DHidlUtils.cpp101 hidl_vec<AudioChannelMask>* channelMasks) { in audioChannelMasksFromHal() argument
111 *channelMasks = std::move(tempChannelMasks); in audioChannelMasksFromHal()
113 *channelMasks = hidl_vec<AudioChannelMask>(tempChannelMasks.begin(), in audioChannelMasksFromHal()
116 return halChannelMasks.size() == channelMasks->size() ? NO_ERROR : BAD_VALUE; in audioChannelMasksFromHal()
953 profile->channelMasks.resize(halProfile.num_channel_masks); in audioUsageFromHal()
956 &profile->channelMasks[i]), in audioUsageFromHal()
977 halProfile->num_channel_masks = profile.channelMasks.size(); in audioUsageFromHal()
985 audioChannelMaskToHal(profile.channelMasks[i], &halProfile->channel_masks[i]), in audioUsageFromHal()
/hardware/interfaces/audio/core/all-versions/vts/functional/4.0/
DAudioPrimaryHidlHalUtils.h75 static Result channelMasks(IStream* stream, in channelMasks() function
/hardware/interfaces/audio/aidl/default/
DModule.cpp70 inline bool hasDynamicChannelMasks(const std::vector<AudioChannelLayout>& channelMasks) { in hasDynamicChannelMasks() argument
71 return channelMasks.empty() || in hasDynamicChannelMasks()
72 std::all_of(channelMasks.begin(), channelMasks.end(), in hasDynamicChannelMasks()
87 return hasDynamicFormat(profile.format) || hasDynamicChannelMasks(profile.channelMasks) || in isDynamicProfile()
319 config->channelMask = *profile.channelMasks.begin(); in generateDefaultPortConfig()
1163 find(portProfile.channelMasks.begin(), portProfile.channelMasks.end(), channelMask) != in setAudioPortConfigImpl()
1164 portProfile.channelMasks.end()) { in setAudioPortConfigImpl()
DConfiguration.cpp52 profile->channelMasks.push_back( in fillProfile()
145 .channelMasks = {AudioChannelLayout::make<AudioChannelLayout::layoutMask>( in getStandard16And24BitPcmAudioProfiles()
DXsdcConversion.cpp192 .channelMasks = in convertAudioProfileToAidl()
/hardware/interfaces/audio/aidl/default/r_submix/
DModuleRemoteSubmix.cpp116 .channelMasks = std::vector<AudioChannelLayout>({pipeConfig->channelLayout}), in populateConnectedDevicePort()
/hardware/interfaces/audio/aidl/vts/
DModuleConfig.cpp456 const size_t newConfigCount = profile.channelMasks.size() * profile.sampleRates.size(); in combineAudioConfigs()
458 for (auto channelMask : profile.channelMasks) { in combineAudioConfigs()
477 profile.sampleRates.empty() || profile.channelMasks.empty(); in isDynamicProfile()
/hardware/interfaces/audio/aidl/default/bluetooth/
DModuleBluetooth.cpp246 .channelMasks = std::vector<AudioChannelLayout>( in populateConnectedDevicePort()
/hardware/interfaces/automotive/audiocontrol/aidl/default/
DAudioControl.cpp97 profile->channelMasks.push_back( in fillProfile()
/hardware/interfaces/audio/common/7.0/
Dtypes.hal163 vec<AudioChannelMask> channelMasks;
/hardware/interfaces/audio/common/4.0/
Dtypes.hal888 vec<bitfield<AudioChannelMask>> channelMasks;
/hardware/interfaces/audio/common/2.0/
Dtypes.hal927 vec<AudioChannelMask> channelMasks;
/hardware/interfaces/audio/common/5.0/
Dtypes.hal1017 vec<bitfield<AudioChannelMask>> channelMasks;
/hardware/interfaces/audio/common/6.0/
Dtypes.hal1176 vec<bitfield<AudioChannelMask>> channelMasks;