Home
last modified time | relevance | path

Searched refs:deviceCategory (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/services/audiopolicy/engine/common/include/
DVolumeCurve.h139 const sp<VolumeCurve> getOriginVolumeCurve(device_category deviceCategory) const in getOriginVolumeCurve() argument
141 ALOG_ASSERT(mOriginVolumeCurves.indexOfKey(deviceCategory) >= 0, "Invalid device category"); in getOriginVolumeCurve()
142 return mOriginVolumeCurves.valueFor(deviceCategory); in getOriginVolumeCurve()
144 void setVolumeCurve(device_category deviceCategory, const sp<VolumeCurve> &volumeCurve) in setVolumeCurve() argument
146 ALOG_ASSERT(indexOfKey(deviceCategory) >= 0, "Invalid device category for Volume Curve"); in setVolumeCurve()
147 replaceValueFor(deviceCategory, volumeCurve); in setVolumeCurve()
152 device_category deviceCategory = volumeCurve->getDeviceCategory(); in add() local
153 ssize_t index = indexOfKey(deviceCategory); in add()
156 mOriginVolumeCurves.add(deviceCategory, volumeCurve); in add()
157 return KeyedVector::add(deviceCategory, volumeCurve); in add()
/frameworks/av/services/audiopolicy/engine/config/src/
DEngineConfig.cpp119 static constexpr const char *deviceCategory = "deviceCategory"; member
425 std::string deviceCategory = getXmlAttribute(root, Attributes::deviceCategory); in deserialize() local
426 if (deviceCategory.empty()) { in deserialize()
427 ALOGW("%s: No %s found", __FUNCTION__, Attributes::deviceCategory); in deserialize()
459 volumes.push_back({ deviceCategory, curvePoints }); in deserialize()
/frameworks/av/services/audiopolicy/engine/config/include/
DEngineConfig.h56 std::string deviceCategory; member
/frameworks/av/services/audiopolicy/engine/common/src/
DEngineBase.cpp128 if (!DeviceCategoryConverter::fromString(configCurve.deviceCategory, deviceCat)) { in loadAudioPolicyEngineConfig()
129 ALOGE("%s: Invalid %s", __FUNCTION__, configCurve.deviceCategory.c_str()); in loadAudioPolicyEngineConfig()