Home
last modified time | relevance | path

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

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DGains.cpp222 int volIdx = (nbSteps * (indexInUi - indexMin)) / (indexMax - indexMin); in volIndexToDb() local
226 if (volIdx < curve[Volume::VOLMIN].mIndex) { // out of bounds in volIndexToDb()
228 } else if (volIdx < curve[Volume::VOLKNEE1].mIndex) { in volIndexToDb()
230 } else if (volIdx < curve[Volume::VOLKNEE2].mIndex) { in volIndexToDb()
232 } else if (volIdx <= curve[Volume::VOLMAX].mIndex) { in volIndexToDb()
240 ((float)(volIdx - curve[segment].mIndex)) * in volIndexToDb()
247 curve[segment].mIndex, volIdx, in volIndexToDb()
DVolumeCurve.cpp39 int volIdx = (nbSteps * (indexInUi - volIndexMin)) / (volIndexMax - volIndexMin); in volIndexToDb() local
42 size_t indexInUiPosition = mCurvePoints.orderOf(CurvePoint(volIdx, 0)); in volIndexToDb()
55 ((float)(volIdx - mCurvePoints[indexInUiPosition - 1].mIndex)) * in volIndexToDb()
63 mCurvePoints[indexInUiPosition - 1].mIndex, volIdx, in volIndexToDb()