Home
last modified time | relevance | path

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

1234567

/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/core/java/com/android/internal/dynamicanimation/animation/
DSpringForce.java279 displacement = coeffA * Math.pow(Math.E, mGammaMinus * deltaT) in updateValues()
280 + coeffB * Math.pow(Math.E, mGammaPlus * deltaT); in updateValues()
281 currentVelocity = coeffA * mGammaMinus * Math.pow(Math.E, mGammaMinus * deltaT) in updateValues()
282 + coeffB * mGammaPlus * Math.pow(Math.E, mGammaPlus * deltaT); in updateValues()
287 displacement = (coeffA + coeffB * deltaT) * Math.pow(Math.E, -mNaturalFreq * deltaT); in updateValues()
288 currentVelocity = (coeffA + coeffB * deltaT) * Math.pow(Math.E, -mNaturalFreq * deltaT) in updateValues()
289 * -mNaturalFreq + coeffB * Math.pow(Math.E, -mNaturalFreq * deltaT); in updateValues()
295 displacement = Math.pow(Math.E, -mDampingRatio * mNaturalFreq * deltaT) in updateValues()
299 + Math.pow(Math.E, -mDampingRatio * mNaturalFreq * deltaT) in updateValues()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/
DUtils.java143 float f_r = (float) Math.pow(r / 255.0f, 2.2); in interpolateColor()
144 float f_g = (float) Math.pow(g / 255.0f, 2.2); in interpolateColor()
145 float f_b = (float) Math.pow(b / 255.0f, 2.2); in interpolateColor()
155 f_r = (float) Math.pow(r / 255.0f, 2.2); in interpolateColor()
156 f_g = (float) Math.pow(g / 255.0f, 2.2); in interpolateColor()
157 f_b = (float) Math.pow(b / 255.0f, 2.2); in interpolateColor()
167 int outr = clamp((int) ((float) Math.pow(f_r, 1.0 / 2.2) * 255.0f)); in interpolateColor()
168 int outg = clamp((int) ((float) Math.pow(f_g, 1.0 / 2.2) * 255.0f)); in interpolateColor()
169 int outb = clamp((int) ((float) Math.pow(f_b, 1.0 / 2.2) * 255.0f)); in interpolateColor()
/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.java185 float nbb = 0.725f / (float) Math.pow(n, 0.2); in make()
190 float[] rgbAFactors = new float[]{(float) Math.pow(fl * rgbD[0] * rW / 100.0, 0.42), in make()
191 (float) Math.pow(fl * rgbD[1] * gW / 100.0, 0.42), (float) Math.pow( in make()
200 return new Frame(n, aw, nbb, ncb, c, nc, rgbD, fl, (float) Math.pow(fl, 0.25), z); in make()
DHctSolver.java346 delinearized = 1.055 * Math.pow(normalized, 1.0 / 2.4) - 0.055; in trueDelinearized()
352 double af = Math.pow(Math.abs(component), 0.42); in chromaticAdaptation()
595 return CamUtils.signum(adapted) * Math.pow(base, 1.0 / 0.42); in inverseChromaticAdaptation()
613 double tInnerCoeff = 1 / Math.pow(1.64 - Math.pow(0.29, viewingConditions.getN()), 0.73); in findResultByJ()
625 double t = Math.pow(alpha * tInnerCoeff, 1.0 / 0.9); in findResultByJ()
627 double ac = viewingConditions.getAw() * Math.pow(jNormalized, acExponent); in findResultByJ()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/
DBigIntegerPerfTest.java50 BigInteger big = BigInteger.TEN.pow(prec).shiftLeft(30).add(BigInteger.ONE); in inner()
76 BigInteger scaledOne = BigInteger.TEN.pow(prec); in harmonic1000()
140 BigInteger scaledOne = BigInteger.TEN.pow(prec); in eApprox()
171 BigInteger odd1 = BigInteger.TEN.pow(i / 2).add(BigInteger.ONE); in repeatModPow()
172 BigInteger odd2 = BigInteger.TEN.pow(i / 2).add(BigInteger.valueOf(17)); in repeatModPow()
174 BigInteger exponent = BigInteger.TEN.pow(i / 2 - 1); in repeatModPow()
175 BigInteger base = BigInteger.TEN.pow(i / 4); in repeatModPow()
204 BigInteger odd1 = BigInteger.TEN.pow(i / 2).add(BigInteger.ONE); in repeatModInverse()
205 BigInteger odd2 = BigInteger.TEN.pow(i / 2).add(BigInteger.valueOf(17)); in repeatModInverse()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
DUtilities.java81 bgR = (bgR < 0.03928f) ? bgR / 12.92f : (float) Math.pow((bgR + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors()
82 bgG = (bgG < 0.03928f) ? bgG / 12.92f : (float) Math.pow((bgG + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors()
83 bgB = (bgB < 0.03928f) ? bgB / 12.92f : (float) Math.pow((bgB + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors()
89 fgR = (fgR < 0.03928f) ? fgR / 12.92f : (float) Math.pow((fgR + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors()
90 fgG = (fgG < 0.03928f) ? fgG / 12.92f : (float) Math.pow((fgG + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors()
91 fgB = (fgB < 0.03928f) ? fgB / 12.92f : (float) Math.pow((fgB + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors()
/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.java459 sr = sr < 0.04045 ? sr / 12.92 : Math.pow((sr + 0.055) / 1.055, 2.4); in RGBToXYZ()
461 sg = sg < 0.04045 ? sg / 12.92 : Math.pow((sg + 0.055) / 1.055, 2.4); in RGBToXYZ()
463 sb = sb < 0.04045 ? sb / 12.92 : Math.pow((sb + 0.055) / 1.055, 2.4); in RGBToXYZ()
527 double tmp = Math.pow(fx, 3);
529 final double yr = l > XYZ_KAPPA * XYZ_EPSILON ? Math.pow(fy, 3) : l / XYZ_KAPPA;
531 tmp = Math.pow(fz, 3);
558 r = r > 0.0031308 ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 : 12.92 * r; in XYZToColor()
559 g = g > 0.0031308 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : 12.92 * g; in XYZToColor()
560 b = b > 0.0031308 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : 12.92 * b; in XYZToColor()
589 return Math.sqrt(Math.pow(labX[0] - labY[0], 2) in distanceEuclidean()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/format/
DFormatterTest.java253 assertEquals("1.00 kB", Formatter.formatFileSize(mContext, bd.pow(1).longValue())); in assertFormatFileSize_englishOutput()
254 assertEquals("1.50 kB", Formatter.formatFileSize(mContext, bd.pow(1).longValue() * 3 / 2)); in assertFormatFileSize_englishOutput()
256 bd.pow(1).longValue() * 25 / 2)); in assertFormatFileSize_englishOutput()
258 assertEquals("1.00 MB", Formatter.formatFileSize(mContext, bd.pow(2).longValue())); in assertFormatFileSize_englishOutput()
260 assertEquals("1.00 GB", Formatter.formatFileSize(mContext, bd.pow(3).longValue())); in assertFormatFileSize_englishOutput()
262 assertEquals("1.00 TB", Formatter.formatFileSize(mContext, bd.pow(4).longValue())); in assertFormatFileSize_englishOutput()
264 assertEquals("1.00 PB", Formatter.formatFileSize(mContext, bd.pow(5).longValue())); in assertFormatFileSize_englishOutput()
266 assertEquals("1000 PB", Formatter.formatFileSize(mContext, bd.pow(6).longValue())); in assertFormatFileSize_englishOutput()
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/animation/
DEasingUtils.kt20 import kotlin.math.pow
63 val lerpBy = 1f - exponentialEasingRate.pow(deltaSeconds) in calculateEasing()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/utilities/easing/
DElasticOutCurve.java35 return (float) (Math.pow(2.0f, -10 * x) in get()
44 return (float) ((5 * Math.pow(2.0f, (1 - 10 * x)) in getDiff()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DBrightnessMappingStrategyTest.java509 minBrightness = (float) MathUtils.pow(minBrightness, MAXIMUM_GAMMA); // Gamma correction. in assertStrategyAdaptsToUserDataPoints()
589 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); in testGammaCorrectionLowChangeAtCenter()
590 assertEquals(MathUtils.pow(y1, gamma), strategy.getBrightness(x1), 0.0001f /* tolerance */); in testGammaCorrectionLowChangeAtCenter()
591 assertEquals(MathUtils.pow(y2, gamma), strategy.getBrightness(x2), 0.0001f /* tolerance */); in testGammaCorrectionLowChangeAtCenter()
592 assertEquals(MathUtils.pow(y3, gamma), strategy.getBrightness(x3), 0.0001f /* tolerance */); in testGammaCorrectionLowChangeAtCenter()
620 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); in testGammaCorrectionHighChangeAtCenter()
621 assertEquals(MathUtils.pow(y1, minGamma), in testGammaCorrectionHighChangeAtCenter()
623 assertEquals(MathUtils.pow(y2, gamma), in testGammaCorrectionHighChangeAtCenter()
625 assertEquals(MathUtils.pow(y3, minGamma), in testGammaCorrectionHighChangeAtCenter()
669 float gamma = (float) MathUtils.pow(MAXIMUM_GAMMA, -adjustment); in testGammaCorrectionChangeAtEdges()
[all …]
/frameworks/base/core/java/android/util/
DFloatMath.java118 public static float pow(float x, float y) { in pow() method in FloatMath
119 return (float) Math.pow(x, y); in pow()
/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/
DMaths.kt20 import kotlin.math.pow
29 return 0.25f * ((2f * x - 1f).pow(5f) + 1f) + 0.5f * x in invsmoothish()
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/ui/view/
DLongPressHandlingView.kt27 import kotlin.math.pow in <lambda>()
135 sqrt((x - getHistoricalX(0)).pow(2) + (y - getHistoricalY(0)).pow(2)) in MotionEvent()
/frameworks/native/libs/tonemap/
Dtonemap.cpp316 targetNits *= std::pow(targetNits / 1000.f, -0.2 / 1.2); in lookupTonemapGain()
325 targetNits *= std::pow(targetNits, 0.2); in lookupTonemapGain()
421 targetNits *= std::pow(targetNits / 1000.0, -0.2 / 1.2); in lookupTonemapGain()
447 double tmp = std::pow(nits, m1); in OETF_ST2084()
449 return std::pow(tmp, m2); in OETF_ST2084()
681 targetNits *= pow(targetNits / 1000.0, (1 - hlgGamma) / (hlgGamma)); in lookupTonemapGain()
709 targetNits = maxRGB * pow(maxRGB / 1000.0, hlgGamma - 1); in lookupTonemapGain()
715 targetNits = maxRGB * pow(maxRGB / 1000.0, hlgGamma - 1) * in lookupTonemapGain()
/frameworks/av/media/libeffects/loudness/aidl/
DLoudnessEnhancerContext.cpp47 float targetAmp = pow(10, mGain / 2000.0f); // mB to linear amplification in reset()
75 const float inputAmp = pow(10, mGain / 2000.0f) * scale; in process()
114 float targetAmp = pow(10, mGain / 2000.0f); // mB to linear amplification in init_params()
/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/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/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)

1234567