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.cpp204 int volIdx = (nbSteps * (indexInUi - indexMin)) / (indexMax - indexMin); in volIndexToDb() local
208 if (volIdx < curve[Volume::VOLMIN].mIndex) { // out of bounds in volIndexToDb()
210 } else if (volIdx < curve[Volume::VOLKNEE1].mIndex) { in volIndexToDb()
212 } else if (volIdx < curve[Volume::VOLKNEE2].mIndex) { in volIndexToDb()
214 } else if (volIdx <= curve[Volume::VOLMAX].mIndex) { in volIndexToDb()
222 ((float)(volIdx - curve[segment].mIndex)) * in volIndexToDb()
229 curve[segment].mIndex, volIdx, in volIndexToDb()
DVolumeCurve.cpp32 int volIdx = (nbSteps * (indexInUi - volIndexMin)) / (volIndexMax - volIndexMin); in volIndexToDb() local
35 size_t indexInUiPosition = mCurvePoints.orderOf(CurvePoint(volIdx, 0)); in volIndexToDb()
48 ((float)(volIdx - mCurvePoints[indexInUiPosition - 1].mIndex)) * in volIndexToDb()
56 mCurvePoints[indexInUiPosition - 1].mIndex, volIdx, in volIndexToDb()