Lines Matching refs:profile
220 ssize_t AudioProfileVector::add(const sp<AudioProfile> &profile) in add() argument
223 push_back(profile); in add()
241 for (const auto &profile : *this) { in getFirstValidProfile()
242 if (profile->isValid()) { in getFirstValidProfile()
243 return profile; in getFirstValidProfile()
251 for (const auto &profile : *this) { in getFirstValidProfileFor()
252 if (profile->isValid() && profile->getFormat() == format) { in getFirstValidProfileFor()
253 return profile; in getFirstValidProfileFor()
262 for (const auto &profile : *this) { in getSupportedFormats()
263 if (profile->hasValidFormat()) { in getSupportedFormats()
264 supportedFormats.push_back(profile->getFormat()); in getSupportedFormats()
272 for (const auto &profile : *this) { in hasDynamicChannelsFor()
273 if (profile->getFormat() == format && profile->isDynamicChannels()) { in hasDynamicChannelsFor()
282 for (const auto &profile : *this) { in hasDynamicFormat()
283 if (profile->isDynamicFormat()) { in hasDynamicFormat()
292 for (const auto &profile : *this) { in hasDynamicProfile()
293 if (profile->isDynamic()) { in hasDynamicProfile()
302 for (const auto &profile : *this) { in hasDynamicRateFor()
303 if (profile->getFormat() == format && profile->isDynamicRate()) { in hasDynamicRateFor()
310 bool AudioProfileVector::contains(const sp<AudioProfile>& profile) const in contains()
313 if (audioProfile->equals(profile)) { in contains()
380 for (const auto& profile : profiles2) { in intersectAudioProfiles() local
381 infos2.emplace(profile->getFormat(), in intersectAudioProfiles()
382 std::make_pair(profile->getChannels(), profile->getSampleRates())); in intersectAudioProfiles()
385 for (const auto& profile : profiles1) { in intersectAudioProfiles() local
386 const auto it = infos2.find(profile->getFormat()); in intersectAudioProfiles()
390 ChannelMaskSet channelMasks = SetIntersection(profile->getChannels(), it->second.first); in intersectAudioProfiles()
394 SampleRateSet sampleRates = SetIntersection(profile->getSampleRates(), it->second.second); in intersectAudioProfiles()
398 profiles.push_back(new AudioProfile(profile->getFormat(), channelMasks, sampleRates)); in intersectAudioProfiles()