Home
last modified time | relevance | path

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

/frameworks/av/services/audiopolicy/engine/common/src/
DEngineBase.cpp112 [&volumeConfig](const auto &volumeGroup) { in loadAudioPolicyEngineConfig() argument
113 return volumeConfig.name == volumeGroup.second->getName(); }); in loadAudioPolicyEngineConfig()
118 sp<VolumeGroup> volumeGroup = new VolumeGroup(volumeConfig.name, volumeConfig.indexMin, in loadAudioPolicyEngineConfig() local
120 volumeGroups[volumeGroup->getId()] = volumeGroup; in loadAudioPolicyEngineConfig()
132 volumeGroup->add(curve); in loadAudioPolicyEngineConfig()
134 return volumeGroup; in loadAudioPolicyEngineConfig()
136 auto addSupportedAttributesToGroup = [](auto &group, auto &volumeGroup, auto &strategy) { in loadAudioPolicyEngineConfig() argument
138 strategy->addAttributes({group.stream, volumeGroup->getId(), attr}); in loadAudioPolicyEngineConfig()
139 volumeGroup->addSupportedAttributes(attr); in loadAudioPolicyEngineConfig()
144 [&streamType](const auto &volumeGroup) { in loadAudioPolicyEngineConfig() argument
[all …]
/frameworks/av/services/audiopolicy/engine/config/src/
DEngineConfig.cpp62 static constexpr const char *volumeGroup = "volumeGroup"; member
307 std::string volumeGroup = getXmlAttribute(child, Attributes::volumeGroup); in deserialize() local
308 if (volumeGroup.empty()) { in deserialize()
309 ALOGE("%s: No attribute %s found", __FUNCTION__, Attributes::volumeGroup); in deserialize()
311 ALOGV("%s: %s = %s", __FUNCTION__, Attributes::volumeGroup, volumeGroup.c_str()); in deserialize()
327 attributesGroup.push_back({name, streamType, volumeGroup, attributesVect}); in deserialize()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h312 volume_group_t &volumeGroup) in getVolumeGroupFromAudioAttributes() argument
314 volumeGroup = mEngine->getVolumeGroupForAttributes(aa.getAttributes()); in getVolumeGroupFromAudioAttributes()
315 return volumeGroup != VOLUME_GROUP_NONE ? NO_ERROR : BAD_VALUE; in getVolumeGroupFromAudioAttributes()
377 VolumeSource toVolumeSource(volume_group_t volumeGroup) const in toVolumeSource() argument
379 return static_cast<VolumeSource>(volumeGroup); in toVolumeSource()
DAudioPolicyManager.cpp5977 for (const auto &volumeGroup : mEngine->getVolumeGroups()) { in applyStreamVolumes() local
5978 auto &curves = getVolumeCurves(toVolumeSource(volumeGroup)); in applyStreamVolumes()
5979 checkAndSetVolume(curves, toVolumeSource(volumeGroup), in applyStreamVolumes()
/frameworks/av/services/audiopolicy/engine/config/include/
DEngineConfig.h40 std::string volumeGroup; member
/frameworks/base/core/java/android/preference/
DSeekBarVolumizer.java558 int volumeGroup = getVolumeGroupIdForLegacyStreamType(streamType); in onReceive() local
559 if (volumeGroup != AudioVolumeGroup.DEFAULT_VOLUME_GROUP in onReceive()
560 && volumeGroup == mVolumeGroupId) { in onReceive()
/frameworks/av/media/libaudioclient/include/media/
DIAudioPolicyService.h224 volume_group_t &volumeGroup) = 0;
DAudioSystem.h397 volume_group_t &volumeGroup);
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h277 volume_group_t &volumeGroup) = 0;
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImpl.cpp1320 volume_group_t &volumeGroup) in getVolumeGroupFromAudioAttributes() argument
1326 return mAudioPolicyManager->getVolumeGroupFromAudioAttributes(aa, volumeGroup); in getVolumeGroupFromAudioAttributes()
DAudioPolicyService.h268 volume_group_t &volumeGroup);
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java2145 final int volumeGroup = getVolumeGroupIdForAttributes(attr); in setVolumeIndexForAttributes() local
2146 if (sVolumeGroupStates.indexOfKey(volumeGroup) < 0) { in setVolumeIndexForAttributes()
2150 final VolumeGroupState vgs = sVolumeGroupStates.get(volumeGroup); in setVolumeIndexForAttributes()
2162 Log.d(TAG, "volume group " + volumeGroup + " has internal streams (" + groupedStream in setVolumeIndexForAttributes()
2187 final int volumeGroup = getVolumeGroupIdForAttributes(attr); in getVolumeIndexForAttributes() local
2188 if (sVolumeGroupStates.indexOfKey(volumeGroup) < 0) { in getVolumeIndexForAttributes()
2191 final VolumeGroupState vgs = sVolumeGroupStates.get(volumeGroup); in getVolumeIndexForAttributes()
/frameworks/av/media/libaudioclient/
DAudioSystem.cpp1529 volume_group_t &volumeGroup) in getVolumeGroupFromAudioAttributes() argument
1533 return aps->getVolumeGroupFromAudioAttributes(aa, volumeGroup); in getVolumeGroupFromAudioAttributes()
DIAudioPolicyService.cpp1260 volume_group_t &volumeGroup) in getVolumeGroupFromAudioAttributes() argument
1276 volumeGroup = static_cast<volume_group_t>(reply.readInt32()); in getVolumeGroupFromAudioAttributes()