Home
last modified time | relevance | path

Searched refs:pow (Results 1 – 25 of 142) sorted by relevance

123456

/frameworks/base/core/java/android/animation/
DArgbEvaluator.java71 startR = (float) Math.pow(startR, 2.2); in evaluate()
72 startG = (float) Math.pow(startG, 2.2); in evaluate()
73 startB = (float) Math.pow(startB, 2.2); in evaluate()
75 endR = (float) Math.pow(endR, 2.2); in evaluate()
76 endG = (float) Math.pow(endG, 2.2); in evaluate()
77 endB = (float) Math.pow(endB, 2.2); in evaluate()
87 r = (float) Math.pow(r, 1.0 / 2.2) * 255.0f; in evaluate()
88 g = (float) Math.pow(g, 1.0 / 2.2) * 255.0f; in evaluate()
89 b = (float) Math.pow(b, 1.0 / 2.2) * 255.0f; in evaluate()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
DUtilities.java39 bgR = (bgR < 0.03928f) ? bgR / 12.92f : (float) Math.pow((bgR + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors()
40 bgG = (bgG < 0.03928f) ? bgG / 12.92f : (float) Math.pow((bgG + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors()
41 bgB = (bgB < 0.03928f) ? bgB / 12.92f : (float) Math.pow((bgB + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors()
47 fgR = (fgR < 0.03928f) ? fgR / 12.92f : (float) Math.pow((fgR + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors()
48 fgG = (fgG < 0.03928f) ? fgG / 12.92f : (float) Math.pow((fgG + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors()
49 fgB = (fgB < 0.03928f) ? fgB / 12.92f : (float) Math.pow((fgB + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors()
/frameworks/base/core/java/com/android/internal/graphics/cam/
DCam.java168 float rAF = (float) Math.pow(frame.getFl() * Math.abs(rD) / 100.0, 0.42); in fromIntInFrame()
169 float gAF = (float) Math.pow(frame.getFl() * Math.abs(gD) / 100.0, 0.42); in fromIntInFrame()
170 float bAF = (float) Math.pow(frame.getFl() * Math.abs(bD) / 100.0, 0.42); in fromIntInFrame()
197 float j = 100.0f * (float) Math.pow(ac / frame.getAw(), frame.getC() * frame.getZ()); in fromIntInFrame()
211 (float) Math.pow(t, 0.9) * (float) Math.pow(1.64 - Math.pow(0.29, frame.getN()), in fromIntInFrame()
271 double dE = 1.41 * Math.pow(dEPrime, 0.63); in distance()
288 (float) Math.pow(alpha / Math.pow(1.64 - Math.pow(0.29, frame.getN()), 0.73), in viewed()
293 float ac = frame.getAw() * (float) Math.pow(getJ() / 100.0, in viewed()
310 float rC = Math.signum(rA) * (100.0f / frame.getFl()) * (float) Math.pow(rCBase, in viewed()
313 float gC = Math.signum(gA) * (100.0f / frame.getFl()) * (float) Math.pow(gCBase, in viewed()
[all …]
DFrame.java177 float nbb = 0.725f / (float) Math.pow(n, 0.2); in make()
182 float[] rgbAFactors = new float[]{(float) Math.pow(fl * rgbD[0] * rW / 100.0, 0.42), in make()
183 (float) Math.pow(fl * rgbD[1] * gW / 100.0, 0.42), (float) Math.pow( in make()
192 return new Frame(n, aw, nbb, ncb, c, nc, rgbD, fl, (float) Math.pow(fl, 0.25), z); in make()
DCamUtils.java150 return (float) Math.pow(((lstar + 16.0) / 116.0), 3) * 100f; in yFromLstar()
162 return (float) Math.pow(((normalized + 0.055f) / 1.055f), 2.4f) * 100.0f; in linearized()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dcamera_response.rsh45 const float pow_va = pow(v, camera_response->a);
49 return pow(x1 / x2, camera_response->c);
54 const float pow_vc = pow(v, 1.0f / camera_response->c);
56 return pow(pow_vc / x2, 1.0f / camera_response->a);
60 const float pow_va = pow(v, kDefaultA);
64 return pow(x1 / x2, kDefaultC);
68 const float pow_vc = pow(v, 1.0f / kDefaultC);
70 return pow(pow_vc / x2, 1.0f / kDefaultA);
Dcamera_response_fast.rsh37 const float pow_va = pow(v, kDefaultA);
41 return pow(x1 / x2, kDefaultC);
45 const float pow_vc = pow(v, 1.0f / kDefaultC);
47 return pow(pow_vc / x2, 1.0f / kDefaultA);
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java456 sr = sr < 0.04045 ? sr / 12.92 : Math.pow((sr + 0.055) / 1.055, 2.4); in RGBToXYZ()
458 sg = sg < 0.04045 ? sg / 12.92 : Math.pow((sg + 0.055) / 1.055, 2.4); in RGBToXYZ()
460 sb = sb < 0.04045 ? sb / 12.92 : Math.pow((sb + 0.055) / 1.055, 2.4); in RGBToXYZ()
524 double tmp = Math.pow(fx, 3);
526 final double yr = l > XYZ_KAPPA * XYZ_EPSILON ? Math.pow(fy, 3) : l / XYZ_KAPPA;
528 tmp = Math.pow(fz, 3);
555 r = r > 0.0031308 ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 : 12.92 * r; in XYZToColor()
556 g = g > 0.0031308 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : 12.92 * g; in XYZToColor()
557 b = b > 0.0031308 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : 12.92 * b; in XYZToColor()
586 return Math.sqrt(Math.pow(labX[0] - labY[0], 2) in distanceEuclidean()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessMappingStrategyTest.java410 minBrightness = (float) MathUtils.pow(minBrightness, MAXIMUM_GAMMA); // Gamma correction. in assertStrategyAdaptsToUserDataPoints()
516 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); in testGammaCorrectionLowChangeAtCenter()
517 assertEquals(MathUtils.pow(y1, gamma), strategy.getBrightness(x1), 0.0001f /* tolerance */); in testGammaCorrectionLowChangeAtCenter()
518 assertEquals(MathUtils.pow(y2, gamma), strategy.getBrightness(x2), 0.0001f /* tolerance */); in testGammaCorrectionLowChangeAtCenter()
519 assertEquals(MathUtils.pow(y3, gamma), strategy.getBrightness(x3), 0.0001f /* tolerance */); in testGammaCorrectionLowChangeAtCenter()
545 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); in testGammaCorrectionHighChangeAtCenter()
546 assertEquals(MathUtils.pow(y1, minGamma), in testGammaCorrectionHighChangeAtCenter()
548 assertEquals(MathUtils.pow(y2, gamma), in testGammaCorrectionHighChangeAtCenter()
550 assertEquals(MathUtils.pow(y3, minGamma), in testGammaCorrectionHighChangeAtCenter()
590 float gamma = (float) MathUtils.pow(MAXIMUM_GAMMA, -adjustment); in testGammaCorrectionChangeAtEdges()
[all …]
/frameworks/base/core/java/android/util/
DFloatMath.java117 public static float pow(float x, float y) { in pow() method in FloatMath
118 return (float) Math.pow(x, y); in pow()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DSystemUIInterpolators.java41 return 1f - (float) Math.pow(mBase, -t * mTimeScale) + (mDrift * t); in computeLog()
66 return (float) -Math.pow(base, -t) + 1 + (drift * t); in computeLog()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/
DDisappearAnimationUtils.java48 return (long) ((row * 60 + col * (Math.pow(row, 0.4) + 0.4) * 10) * mDelayScale); in calculateDelay()
55 return (float) (Math.pow((numRows - row), 2) / numRows);
/frameworks/rs/driver/runtime/ll64/
Dmath.ll5 declare float @llvm.pow.f32(float, float)
17 %1 = tail call float @llvm.pow.f32(float %v1, float %v2)
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DHistoryTracker.java50 Math.pow(10, Math.log10(MINIMUM_SCORE) / HISTORY_MAX_AGE_MS * DECAY_INTERVAL_MS);
128 .map(result -> Math.pow(result.getScore() - mean, 2)) in falseConfidence()
193 return (mScore - 0.5) * Math.pow(HISTORY_DECAY, timeIntervals) + 0.5; in getDecayedScore()
/frameworks/rs/driver/runtime/ll32/
Dmath.ll5 declare float @llvm.pow.f32(float, float)
17 %1 = tail call float @llvm.pow.f32(float %v1, float %v2)
/frameworks/native/services/surfaceflinger/tests/utils/
DColorUtils.h51 s = pow((s + 0.055f) / 1.055f, 2.4f); in DegammaColorSingle()
64 s = 1.055f * pow(s, (1.0f / 2.4f)) - 0.055f; in GammaColorSingle()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DCSVWriterFilter.java100 float vectorAccel = (float) Math.sqrt(Math.pow(motionValues[0], 2) + in onProcess()
101 Math.pow(motionValues[1], 2) + Math.pow(motionValues[2], 2)); in onProcess()
/frameworks/base/libs/hwui/utils/
DHostColorSpace.cpp29 return x >= p.d * p.c ? (std::pow(x, 1.0f / p.g) - p.b) / p.a : x / p.c; in rcpResponse()
33 return x >= p.d ? std::pow(p.a * x + p.b, p.g) : p.c * x; in response()
37 return x >= p.d * p.c ? (std::pow(x - p.e, 1.0f / p.g) - p.b) / p.a : (x - p.f) / p.c; in rcpFullResponse()
41 return x >= p.d ? std::pow(p.a * x + p.b, p.g) + p.e : p.c * x + p.f; in fullResponse()
46 return std::copysign(xx >= d * c ? (std::pow(xx, 1.0f / g) - b) / a : xx / c, x); in absRcpResponse()
51 return std::copysign(xx >= d ? std::pow(a * xx + b, g) : c * xx, x); in absResponse()
DColor.cpp319 float fx = X > A ? pow(X, 1.0f / 3.0f) : B * X + C; in fromXyz()
320 float fy = Y > A ? pow(Y, 1.0f / 3.0f) : B * Y + C; in fromXyz()
321 float fz = Z > A ? pow(Z, 1.0f / 3.0f) : B * Z + C; in fromXyz()
372 const double ws = pow(w, 1. / fn.f); in GetPQSkTransferFunction()
/frameworks/native/libs/ui/
DColorSpace.cpp28 return x >= p.d * p.c ? (std::pow(x, 1.0f / p.g) - p.b) / p.a : x / p.c; in rcpResponse()
32 return x >= p.d ? std::pow(p.a * x + p.b, p.g) : p.c * x; in response()
36 return x >= p.d * p.c ? (std::pow(x - p.e, 1.0f / p.g) - p.b) / p.a : (x - p.f) / p.c; in rcpFullResponse()
40 return x >= p.d ? std::pow(p.a * x + p.b, p.g) + p.e : p.c * x + p.f; in fullResponse()
45 return std::copysign(xx >= d * c ? (std::pow(xx, 1.0f / g) - b) / a : xx / c, x); in absRcpResponse()
50 return std::copysign(xx >= d ? std::pow(a * xx + b, g) : c * xx, x); in absResponse()
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java798 sr = sr < 0.04045 ? sr / 12.92 : Math.pow((sr + 0.055) / 1.055, 2.4); in RGBToXYZ()
800 sg = sg < 0.04045 ? sg / 12.92 : Math.pow((sg + 0.055) / 1.055, 2.4); in RGBToXYZ()
802 sb = sb < 0.04045 ? sb / 12.92 : Math.pow((sb + 0.055) / 1.055, 2.4); in RGBToXYZ()
866 double tmp = Math.pow(fx, 3);
868 final double yr = l > XYZ_KAPPA * XYZ_EPSILON ? Math.pow(fy, 3) : l / XYZ_KAPPA;
870 tmp = Math.pow(fz, 3);
897 r = r > 0.0031308 ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 : 12.92 * r; in XYZToColor()
898 g = g > 0.0031308 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : 12.92 * g; in XYZToColor()
899 b = b > 0.0031308 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : 12.92 * b; in XYZToColor()
934 ? Math.pow(component, 1 / 3.0) in pivotXyzComponent()
/frameworks/base/libs/hwui/
DInterpolator.cpp40 return pow(input, mDoubleFactor); in interpolate()
88 result = 1.0f - pow((1.0f - input), 2 * mFactor); in interpolate()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DExponentialBackoffTest.java97 long minDelay = (long) (START_DELAY_MS * Math.pow(MULTIPLIER, i - 1)); in testDelayIncreasedExponentially()
98 long maxDelay = (long) (START_DELAY_MS * Math.pow(MULTIPLIER, i)); in testDelayIncreasedExponentially()
/frameworks/base/tests/Internal/src/com/android/internal/ml/clustering/
DKMeansTest.java88 float sqDist = (float) (Math.pow(a[0] - b[0], 2) + Math.pow(a[1] - b[1], 2)); in sqDistanceTest()
/frameworks/av/media/libeffects/lvm/lib/Common/src/
DdB_to_Lin32.cpp72 LinFloat = pow(10, dB_Float / 20.0); in dB_to_LinFloat()

123456