Searched defs:curve (Results 1 - 2 of 2) sorted by relevance

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DGains.cpp200 float Gains::volIndexToDb(const VolumeCurvePoint *curve, int indexMin, int indexMax, int indexInUi) argument
203 int nbSteps = 1 + curve[Volume::VOLMAX].mIndex - curve[Volume::VOLMIN].mIndex;
206 // find what part of the curve this index volume belongs to, or if it's out of bounds
208 if (volIdx < curve[Volume::VOLMIN].mIndex) { // out of bounds
210 } else if (volIdx < curve[Volume::VOLKNEE1].mIndex) {
212 } else if (volIdx < curve[Volume::VOLKNEE2].mIndex) {
214 } else if (volIdx <= curve[Volume::VOLMAX].mIndex) {
221 float decibels = curve[segment].mDBAttenuation +
222 ((float)(volIdx - curve[segmen
[all...]
/frameworks/base/wifi/tests/src/android/net/wifi/
H A DWifiNetworkScoreCacheTest.java89 private static ScoredNetwork buildScoredNetwork(WifiKey key, RssiCurve curve) { argument
90 return new ScoredNetwork(new NetworkKey(key), curve);

Completed in 350 milliseconds