Home
last modified time | relevance | path

Searched refs:volumeGroup (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/audio/aidl/default/
DAudioPolicyConfigXmlConverter.cpp158 AudioHalVolumeGroup volumeGroup; in addVolumeGroupstoEngineConfig() local
159 volumeGroup.name = ap_xsd::toString(xsdcStream); in addVolumeGroupstoEngineConfig()
161 volumeGroup.minIndex = kDefaultVolumeIndexMin; in addVolumeGroupstoEngineConfig()
162 volumeGroup.maxIndex = kDefaultVolumeIndexMax; in addVolumeGroupstoEngineConfig()
164 volumeGroup.minIndex = KVolumeIndexDeferredToAudioService; in addVolumeGroupstoEngineConfig()
165 volumeGroup.maxIndex = KVolumeIndexDeferredToAudioService; in addVolumeGroupstoEngineConfig()
167 volumeGroup.volumeCurves = volumeCurves; in addVolumeGroupstoEngineConfig()
168 mAidlEngineConfig.volumeGroups.push_back(std::move(volumeGroup)); in addVolumeGroupstoEngineConfig()
/hardware/interfaces/audio/aidl/vts/
DVtsHalAudioCoreConfigTargetTest.cpp235 void ValidateAudioHalVolumeGroup(const AudioHalVolumeGroup& volumeGroup) { in ValidateAudioHalVolumeGroup() argument
245 if (volumeGroup.minIndex != AudioHalVolumeGroup::INDEX_DEFERRED_TO_AUDIO_SERVICE || in ValidateAudioHalVolumeGroup()
246 volumeGroup.maxIndex != AudioHalVolumeGroup::INDEX_DEFERRED_TO_AUDIO_SERVICE) { in ValidateAudioHalVolumeGroup()
247 EXPECT_TRUE(volumeGroup.minIndex >= 0); in ValidateAudioHalVolumeGroup()
248 EXPECT_TRUE(volumeGroup.maxIndex >= 0); in ValidateAudioHalVolumeGroup()
250 EXPECT_TRUE(volumeGroup.minIndex <= volumeGroup.maxIndex); in ValidateAudioHalVolumeGroup()
252 for (const AudioHalVolumeCurve& volumeCurve : volumeGroup.volumeCurves) { in ValidateAudioHalVolumeGroup()
316 for (const AudioHalVolumeGroup& volumeGroup : mEngineConfig->volumeGroups) { in ValidateAudioHalEngineConfig() local
317 EXPECT_TRUE(volumeGroupMap.insert({volumeGroup.name, volumeGroup}).second); in ValidateAudioHalEngineConfig()
318 EXPECT_NO_FATAL_FAILURE(ValidateAudioHalVolumeGroup(volumeGroup)); in ValidateAudioHalEngineConfig()