Lines Matching refs:profile

139     ssize_t add(const sp<AudioProfile> &profile)
141 ssize_t index = Vector::add(profile);
152 // for a profile with dynamic format, rate and channels attributes
155 // Check valid profile to add:
173 // Go through the list of profile to avoid duplicates
175 const sp<AudioProfile> &profile = itemAt(profileIndex);
176 if (profile->isValid() && profile == profileToAdd) {
234 sp<AudioProfile> profile = itemAt(i);
235 if (profile->getFormat() == format && profile->isDynamicChannels()) {
245 sp<AudioProfile> profile = itemAt(i);
246 if (profile->getFormat() == format && profile->isDynamicRate()) {
253 // One audio profile will be added for each format supported by Audio HAL
256 // Only allow to change the format of dynamic profile
262 sp<AudioProfile> profile = new AudioProfile(formats[i],
265 profile->setDynamicFormat(true);
266 profile->setDynamicChannels(dynamicFormatProfile->isDynamicChannels());
267 profile->setDynamicRate(dynamicFormatProfile->isDynamicRate());
268 add(profile);
275 sp<AudioProfile> profile = itemAt(--i);
276 if (profile->isDynamicFormat() && profile->hasValidFormat()) {
280 profile->clear();
302 sp<AudioProfile> profile = itemAt(i);
303 if (profile->getFormat() == format && profile->isDynamicRate()) {
304 if (profile->hasValidRates()) {
305 // Need to create a new profile with same format
306 sp<AudioProfile> profileToAdd = new AudioProfile(format, profile->getChannels(),
311 profile->setSampleRates(sampleRates);
321 sp<AudioProfile> profile = itemAt(i);
322 if (profile->getFormat() == format && profile->isDynamicChannels()) {
323 if (profile->hasValidChannels()) {
324 // Need to create a new profile with same format
326 profile->getSampleRates());
330 profile->setChannels(channelMasks);