Home
last modified time | relevance | path

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

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DVolumeCurve.cpp42 size_t indexInUiPosition = mCurvePoints.orderOf(CurvePoint(volIdx, 0)); in volIndexToDb() local
43 if (indexInUiPosition >= nbCurvePoints) { in volIndexToDb()
47 if (indexInUiPosition == 0) { in volIndexToDb()
48 if (indexInUiPosition != mCurvePoints[0].mIndex) { in volIndexToDb()
54 float decibels = (mCurvePoints[indexInUiPosition - 1].mAttenuationInMb / 100.0f) + in volIndexToDb()
55 ((float)(volIdx - mCurvePoints[indexInUiPosition - 1].mIndex)) * in volIndexToDb()
56 ( ((mCurvePoints[indexInUiPosition].mAttenuationInMb / 100.0f) - in volIndexToDb()
57 (mCurvePoints[indexInUiPosition - 1].mAttenuationInMb / 100.0f)) / in volIndexToDb()
58 ((float)(mCurvePoints[indexInUiPosition].mIndex - in volIndexToDb()
59 mCurvePoints[indexInUiPosition - 1].mIndex)) ); in volIndexToDb()
[all …]