/aosp12/frameworks/av/media/libaudiofoundation/ |
H A D | AudioProfile.cpp | 49 audio_channel_mask_t channelMasks, in AudioProfile() argument 54 mChannelMasks.insert(channelMasks); in AudioProfile() 59 const ChannelMaskSet &channelMasks, in AudioProfile() argument 61 AudioProfile(format, channelMasks, samplingRateCollection, in AudioProfile() 65 const ChannelMaskSet &channelMasks, in AudioProfile() argument 70 mChannelMasks(channelMasks), in AudioProfile() 74 void AudioProfile::setChannels(const ChannelMaskSet &channelMasks) in setChannels() argument 77 mChannelMasks = channelMasks; in setChannels() 167 parcelable.channelMasks = VALUE_OR_RETURN( in toParcelable() 196 convertContainer<ChannelMaskSet>(parcelable.channelMasks, in fromParcelable() [all …]
|
H A D | AudioPort.cpp | 112 const ChannelMaskSet &channelMasks = profile->getChannels(); in toAudioPort() local 115 channelMasks.size() > AUDIO_PORT_MAX_CHANNEL_MASKS || in toAudioPort() 126 dstProfile.num_channel_masks = channelMasks.size(); in toAudioPort() 127 std::copy(channelMasks.begin(), channelMasks.end(), in toAudioPort()
|
/aosp12/hardware/interfaces/audio/core/all-versions/vts/functional/ |
H A 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()
|
/aosp12/frameworks/base/media/java/android/media/ |
H A D | AudioPort.java | 97 int[] samplingRates, int[] channelMasks, int[] channelIndexMasks, in AudioPort() argument 103 mChannelMasks = channelMasks; in AudioPort() 111 format, samplingRates, channelMasks, channelIndexMasks, in AudioPort() 129 Set<Integer> channelMasks = new HashSet<>(); in AudioPort() local 135 channelMasks.addAll(Arrays.stream(profile.getChannelMasks()).boxed() in AudioPort() 141 mChannelMasks = channelMasks.stream().mapToInt(Number::intValue).toArray(); in AudioPort() 188 public int[] channelMasks() { in channelMasks() method in AudioPort
|
H A D | AudioMixPort.java | 40 int[] samplingRates, int[] channelMasks, int[] channelIndexMasks, in AudioMixPort() argument 42 super(handle, role, deviceName, samplingRates, channelMasks, channelIndexMasks, in AudioMixPort()
|
H A D | AudioProfile.java | 60 AudioProfile(int format, @NonNull int[] samplingRates, @NonNull int[] channelMasks, in AudioProfile() argument 65 mChannelMasks = channelMasks; in AudioProfile()
|
H A D | AudioDevicePort.java | 48 int[] samplingRates, int[] channelMasks, int[] channelIndexMasks, in AudioDevicePort() argument 54 deviceName, samplingRates, channelMasks, channelIndexMasks, formats, gains); in AudioDevicePort()
|
/aosp12/hardware/interfaces/audio/core/all-versions/default/ |
H A D | Stream.cpp | 135 hidl_vec<AudioChannelBitfield> channelMasks; in getSupportedChannelMasks() local 140 channelMasks.resize(halChannelMasks.size()); in getSupportedChannelMasks() 143 channelMasks[i++] = AudioChannelBitfield(channelMask); in getSupportedChannelMasks() 147 if (channelMasks.size() == 0) { in getSupportedChannelMasks() 152 _hidl_cb(channelMasks); in getSupportedChannelMasks() 154 _hidl_cb(result, channelMasks); in getSupportedChannelMasks() 251 hidl_vec<AudioChannelMask> channelMasks; in getSupportedProfiles() local 252 (void)HidlUtils::audioChannelMasksFromHal(halChannelMasks, &channelMasks); in getSupportedProfiles() 254 if (channelMasks.size() != 0 && sampleRates.size() != 0) { in getSupportedProfiles() 257 .channelMasks = std::move(channelMasks)}); in getSupportedProfiles()
|
/aosp12/frameworks/av/media/libaudiofoundation/include/media/ |
H A D | AudioContainers.h | 62 static inline ChannelMaskSet asInMask(const ChannelMaskSet& channelMasks) { in asInMask() argument 64 for (const auto &channel : channelMasks) { in asInMask() 72 static inline ChannelMaskSet asOutMask(const ChannelMaskSet& channelMasks) { in asOutMask() argument 74 for (const auto &channel : channelMasks) { in asOutMask()
|
H A D | AudioProfile.h | 37 AudioProfile(audio_format_t format, audio_channel_mask_t channelMasks, uint32_t samplingRate); 39 const ChannelMaskSet &channelMasks, 42 const ChannelMaskSet &channelMasks, 49 void setChannels(const ChannelMaskSet &channelMasks);
|
/aosp12/packages/services/Car/service/src/com/android/car/audio/ |
H A D | CarAudioDeviceInfo.java | 181 int[] channelMasks = info.getChannelMasks(); in getMaxChannels() local 182 if (channelMasks == null) { in getMaxChannels() 185 for (int channelMask : channelMasks) { in getMaxChannels()
|
/aosp12/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | PolicyAudioPort.cpp | 119 const ChannelMaskSet &channelMasks) const in pickChannelMask() 127 for (const auto channelMask : channelMasks) { in pickChannelMask() 148 for (const auto channelMask : channelMasks) { in pickChannelMask()
|
H A D | AudioProfileVectorHelper.cpp | 221 const ChannelMaskSet channelMasks = audioProfile->getChannels(); in checkCompatibleChannelMask() local 222 if (channelMasks.empty()) { in checkCompatibleChannelMask() 231 for (const auto &supported : channelMasks) { in checkCompatibleChannelMask()
|
H A D | Serializer.cpp | 109 static constexpr const char *channelMasks = "channelMasks"; member 428 std::string channels = getXmlAttribute(cur, Attributes::channelMasks);
|
/aosp12/frameworks/av/media/libaudioclient/aidl/android/media/ |
H A D | AudioProfile.aidl | 30 int[] channelMasks;
|
/aosp12/hardware/interfaces/audio/core/all-versions/vts/functional/7.0/ |
H A 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()
|
/aosp12/hardware/interfaces/audio/common/all-versions/default/ |
H A 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()
|
H A D | HidlUtils.h | 87 hidl_vec<AudioChannelMask>* channelMasks);
|
/aosp12/hardware/interfaces/audio/common/all-versions/default/tests/ |
H A 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() 986 profile.channelMasks.resize(2); in TEST() 987 profile.channelMasks[0] = toString(xsd::AudioChannelMask::AUDIO_CHANNEL_OUT_MONO); in TEST() 988 profile.channelMasks[1] = toString(xsd::AudioChannelMask::AUDIO_CHANNEL_OUT_STEREO); in TEST() 1029 profile.channelMasks.resize(2); in TEST() 1030 profile.channelMasks[0] = toString(xsd::AudioChannelMask::AUDIO_CHANNEL_OUT_MONO); in TEST() 1031 profile.channelMasks[1] = toString(xsd::AudioChannelMask::AUDIO_CHANNEL_OUT_STEREO); in TEST()
|
/aosp12/hardware/interfaces/audio/common/all-versions/default/7.0/ |
H A 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() 948 profile->channelMasks.resize(halProfile.num_channel_masks); in audioProfileFromHal() 951 &profile->channelMasks[i]), in audioProfileFromHal() 972 halProfile->num_channel_masks = profile.channelMasks.size(); in audioProfileToHal() 980 audioChannelMaskToHal(profile.channelMasks[i], &halProfile->channel_masks[i]), in audioProfileToHal()
|
/aosp12/system/media/tests/ |
H A D | systemaudio_tests.cpp | 552 auto channelMasks = audioPort->role == AUDIO_PORT_ROLE_SINK ? OUT_CHANNEL_MASKS in fillFakeAudioPortInfo() local 554 std::copy(channelMasks, channelMasks+audioPort->num_channel_masks, in fillFakeAudioPortInfo() 574 auto channelMasks = portV7->role == AUDIO_PORT_ROLE_SINK ? OUT_CHANNEL_MASKS in fillFakeAudioPortV7Info() local 576 std::copy(channelMasks, channelMasks+portV7->audio_profiles[i].num_channel_masks, in fillFakeAudioPortV7Info()
|
/aosp12/hardware/interfaces/audio/core/all-versions/vts/functional/2.0/ |
H A D | AudioPrimaryHidlHalUtils.h | 59 static Result channelMasks(IStream* stream, hidl_vec<AudioChannelMask>& channels) { in channelMasks() function
|
/aosp12/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
H A D | PolicyAudioPort.h | 129 const ChannelMaskSet &channelMasks) const;
|
/aosp12/hardware/interfaces/audio/core/all-versions/vts/functional/4.0/ |
H A D | AudioPrimaryHidlHalUtils.h | 72 static Result channelMasks(IStream* stream, in channelMasks() function
|
/aosp12/frameworks/av/media/libaudioclient/ |
H A D | AidlConversion.cpp | 1922 if (aidl.channelMasks.size() > std::size(legacy.channel_masks)) { in aidl2legacy_AudioProfile_audio_profile() 1926 convertRange(aidl.channelMasks.begin(), aidl.channelMasks.end(), legacy.channel_masks, in aidl2legacy_AudioProfile_audio_profile() 1928 legacy.num_channel_masks = aidl.channelMasks.size(); in aidl2legacy_AudioProfile_audio_profile() 1953 std::back_inserter(aidl.channelMasks), in legacy2aidl_audio_profile_AudioProfile()
|