Home
last modified time | relevance | path

Searched refs:indexInUi (Results 1 – 3 of 3) sorted by relevance

/frameworks/av/services/audiopolicy/engine/common/src/
DVolumeCurve.cpp26 float VolumeCurve::volIndexToDb(int indexInUi, int volIndexMin, int volIndexMax) const in volIndexToDb() argument
33 if (indexInUi < volIndexMin) { in volIndexToDb()
35 if (indexInUi == 0) { in volIndexToDb()
39 ALOGV("VOLUME remapping index from %d to min index %d", indexInUi, volIndexMin); in volIndexToDb()
40 indexInUi = volIndexMin; in volIndexToDb()
41 } else if (indexInUi > volIndexMax) { in volIndexToDb()
42 ALOGV("VOLUME remapping index from %d to max index %d", indexInUi, volIndexMax); in volIndexToDb()
43 indexInUi = volIndexMax; in volIndexToDb()
49 int volIdx = (nbSteps * (indexInUi - volIndexMin)) / (volIndexMax - volIndexMin); in volIndexToDb()
/frameworks/av/services/audiopolicy/engine/common/include/
DVolumeCurve.h58 float volIndexToDb(int indexInUi, int volIndexMin, int volIndexMax) const;
161 virtual float volIndexToDb(device_category deviceCat, int indexInUi) const in volIndexToDb() argument
165 return vc->volIndexToDb(indexInUi, mIndexMin, mIndexMax); in volIndexToDb()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DIVolumeCurves.h39 virtual float volIndexToDb(device_category device, int indexInUi) const = 0;