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.h59 float volIndexToDb(int indexInUi, int volIndexMin, int volIndexMax) const;
162 virtual float volIndexToDb(device_category deviceCat, int indexInUi) const in volIndexToDb() argument
166 return vc->volIndexToDb(indexInUi, mIndexMin, mIndexMax); in volIndexToDb()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DIVolumeCurves.h38 virtual float volIndexToDb(device_category device, int indexInUi) const = 0;