/hardware/interfaces/audio/core/all-versions/vts/functional/ |
D | ConfigHelper.h | 85 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()
|
D | AudioPrimaryHidlHalTest.h | 1432 &GetSupported::channelMasks, &IStream::getChannelMask, 1464 for (const auto& channelMask : profile.channelMasks) {
|
/hardware/interfaces/audio/core/all-versions/default/ |
D | Stream.cpp | 139 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/ |
D | ModuleAlsa.cpp | 61 .channelMasks = channels, in populateConnectedDevicePort()
|
D | Utils.cpp | 70 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/ |
D | Generators.cpp | 41 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/ |
D | HidlUtils.cpp | 267 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()
|
D | HidlUtils.h | 89 hidl_vec<AudioChannelMask>* channelMasks);
|
/hardware/interfaces/audio/core/all-versions/vts/functional/2.0/ |
D | AudioPrimaryHidlHalUtils.h | 61 static Result channelMasks(IStream* stream, hidl_vec<AudioChannelMask>& channels) { in channelMasks() function
|
/hardware/interfaces/audio/common/all-versions/default/tests/ |
D | hidlutils_tests.cpp | 914 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/ |
D | HidlUtils.cpp | 101 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/ |
D | AudioPrimaryHidlHalUtils.h | 75 static Result channelMasks(IStream* stream, in channelMasks() function
|
/hardware/interfaces/audio/aidl/default/ |
D | Module.cpp | 70 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()
|
D | Configuration.cpp | 52 profile->channelMasks.push_back( in fillProfile() 145 .channelMasks = {AudioChannelLayout::make<AudioChannelLayout::layoutMask>( in getStandard16And24BitPcmAudioProfiles()
|
D | XsdcConversion.cpp | 192 .channelMasks = in convertAudioProfileToAidl()
|
/hardware/interfaces/audio/aidl/default/r_submix/ |
D | ModuleRemoteSubmix.cpp | 116 .channelMasks = std::vector<AudioChannelLayout>({pipeConfig->channelLayout}), in populateConnectedDevicePort()
|
/hardware/interfaces/audio/aidl/vts/ |
D | ModuleConfig.cpp | 456 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/ |
D | ModuleBluetooth.cpp | 246 .channelMasks = std::vector<AudioChannelLayout>( in populateConnectedDevicePort()
|
/hardware/interfaces/automotive/audiocontrol/aidl/default/ |
D | AudioControl.cpp | 97 profile->channelMasks.push_back( in fillProfile()
|
/hardware/interfaces/audio/common/7.0/ |
D | types.hal | 163 vec<AudioChannelMask> channelMasks;
|
/hardware/interfaces/audio/common/4.0/ |
D | types.hal | 888 vec<bitfield<AudioChannelMask>> channelMasks;
|
/hardware/interfaces/audio/common/2.0/ |
D | types.hal | 927 vec<AudioChannelMask> channelMasks;
|
/hardware/interfaces/audio/common/5.0/ |
D | types.hal | 1017 vec<bitfield<AudioChannelMask>> channelMasks;
|
/hardware/interfaces/audio/common/6.0/ |
D | types.hal | 1176 vec<bitfield<AudioChannelMask>> channelMasks;
|