Home
last modified time | relevance | path

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

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DGains.cpp200 float Gains::volIndexToDb(const VolumeCurvePoint *curve, int indexMin, int indexMax, int indexInUi) in volIndexToDb() argument
203 int nbSteps = 1 + curve[Volume::VOLMAX].mIndex - curve[Volume::VOLMIN].mIndex; in volIndexToDb()
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()
221 float decibels = curve[segment].mDBAttenuation + in volIndexToDb()
222 ((float)(volIdx - curve[segment].mIndex)) * in volIndexToDb()
223 ( (curve[segment+1].mDBAttenuation - in volIndexToDb()
224 curve[segment].mDBAttenuation) / in volIndexToDb()
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DTonemapCurve.java194 final float[] curve = getCurve(colorChannel); in getPoint() local
196 final float pIn = curve[index * POINT_SIZE + OFFSET_POINT_IN]; in getPoint()
197 final float pOut = curve[index * POINT_SIZE + OFFSET_POINT_OUT]; in getPoint()
241 float[] curve = getCurve(colorChannel); in copyColorCurve() local
242 System.arraycopy(curve, /*srcPos*/0, destination, offset, curve.length); in copyColorCurve()
312 float[] curve = getCurve(colorChannel); in curveToString() local
313 int pointCount = curve.length / POINT_SIZE; in curveToString()
316 sb.append(curve[j]); in curveToString()
318 sb.append(curve[j+1]); in curveToString()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DCachedPathIteratorFactory.java256 float[] curve = new float[8]; in getPointAtLength() local
259 System.arraycopy(coords, 0, curve, 2, coords.length); in getPointAtLength()
260 curve[0] = lastX; in getPointAtLength()
261 curve[1] = lastY; in getPointAtLength()
263 cubicCurveSegment(curve, 0f, t); in getPointAtLength()
265 quadCurveSegment(curve, 0f, t); in getPointAtLength()
268 point[0] = curve[2 + lastPointIndex]; in getPointAtLength()
269 point[1] = curve[2 + lastPointIndex + 1]; in getPointAtLength()
457 float[] curve = new float[8]; in currentSegment() local
458 curve[0] = mLastPoint[0]; in currentSegment()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkScoreCacheTest.java88 private static ScoredNetwork buildScoredNetwork(WifiKey key, RssiCurve curve) { in buildScoredNetwork() argument
89 return new ScoredNetwork(new NetworkKey(key), curve); in buildScoredNetwork()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraMetadataNative.java1092 float[][] curve = new float[3][]; in setTonemapCurve() local
1095 curve[i] = new float[pointCount * TonemapCurve.POINT_SIZE]; in setTonemapCurve()
1096 tc.copyColorCurve(i, curve[i], 0); in setTonemapCurve()
1098 setBase(CaptureRequest.TONEMAP_CURVE_RED, curve[0]); in setTonemapCurve()
1099 setBase(CaptureRequest.TONEMAP_CURVE_GREEN, curve[1]); in setTonemapCurve()
1100 setBase(CaptureRequest.TONEMAP_CURVE_BLUE, curve[2]); in setTonemapCurve()