/frameworks/base/core/java/android/animation/ |
D | ArgbEvaluator.java | 68 startR = (float) Math.pow(startR, 2.2); in evaluate() 69 startG = (float) Math.pow(startG, 2.2); in evaluate() 70 startB = (float) Math.pow(startB, 2.2); in evaluate() 72 endR = (float) Math.pow(endR, 2.2); in evaluate() 73 endG = (float) Math.pow(endG, 2.2); in evaluate() 74 endB = (float) Math.pow(endB, 2.2); in evaluate() 84 r = (float) Math.pow(r, 1.0 / 2.2) * 255.0f; in evaluate() 85 g = (float) Math.pow(g, 1.0 / 2.2) * 255.0f; in evaluate() 86 b = (float) Math.pow(b, 1.0 / 2.2) * 255.0f; in evaluate()
|
/frameworks/support/graphics/drawable/animated/src/main/java/androidx/vectordrawable/graphics/drawable/ |
D | ArgbEvaluator.java | 77 startR = (float) Math.pow(startR, 2.2); in evaluate() 78 startG = (float) Math.pow(startG, 2.2); in evaluate() 79 startB = (float) Math.pow(startB, 2.2); in evaluate() 81 endR = (float) Math.pow(endR, 2.2); in evaluate() 82 endG = (float) Math.pow(endG, 2.2); in evaluate() 83 endB = (float) Math.pow(endB, 2.2); in evaluate() 93 r = (float) Math.pow(r, 1.0 / 2.2) * 255.0f; in evaluate() 94 g = (float) Math.pow(g, 1.0 / 2.2) * 255.0f; in evaluate() 95 b = (float) Math.pow(b, 1.0 / 2.2) * 255.0f; in evaluate()
|
/frameworks/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/ |
D | SpringForce.java | 288 displacement = coeffA * Math.pow(Math.E, mGammaMinus * deltaT) in updateValues() 289 + coeffB * Math.pow(Math.E, mGammaPlus * deltaT); in updateValues() 290 currentVelocity = coeffA * mGammaMinus * Math.pow(Math.E, mGammaMinus * deltaT) in updateValues() 291 + coeffB * mGammaPlus * Math.pow(Math.E, mGammaPlus * deltaT); in updateValues() 296 displacement = (coeffA + coeffB * deltaT) * Math.pow(Math.E, -mNaturalFreq * deltaT); in updateValues() 297 currentVelocity = (coeffA + coeffB * deltaT) * Math.pow(Math.E, -mNaturalFreq * deltaT) in updateValues() 298 * (-mNaturalFreq) + coeffB * Math.pow(Math.E, -mNaturalFreq * deltaT); in updateValues() 304 displacement = Math.pow(Math.E, -mDampingRatio * mNaturalFreq * deltaT) in updateValues() 308 + Math.pow(Math.E, -mDampingRatio * mNaturalFreq * deltaT) in updateValues()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessMappingStrategyTest.java | 368 minBrightness = (float) MathUtils.pow(minBrightness, MAXIMUM_GAMMA); // Gamma correction. in assertStrategyAdaptsToUserDataPoints() 477 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); in testGammaCorrectionLowChangeAtCenter() 478 assertEquals(MathUtils.pow(y1, gamma), strategy.getBrightness(x1), 0.01f /* tolerance */); in testGammaCorrectionLowChangeAtCenter() 479 assertEquals(MathUtils.pow(y2, gamma), strategy.getBrightness(x2), 0.01f /* tolerance */); in testGammaCorrectionLowChangeAtCenter() 480 assertEquals(MathUtils.pow(y3, gamma), strategy.getBrightness(x3), 0.01f /* tolerance */); in testGammaCorrectionLowChangeAtCenter() 506 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); in testGammaCorrectionHighChangeAtCenter() 507 assertEquals(MathUtils.pow(y1, minGamma), strategy.getBrightness(x1), in testGammaCorrectionHighChangeAtCenter() 509 assertEquals(MathUtils.pow(y2, gamma), strategy.getBrightness(x2), in testGammaCorrectionHighChangeAtCenter() 511 assertEquals(MathUtils.pow(y3, minGamma), strategy.getBrightness(x3), in testGammaCorrectionHighChangeAtCenter() 552 float gamma = (float) MathUtils.pow(MAXIMUM_GAMMA, -adjustment); in testGammaCorrectionChangeAtEdges() [all …]
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | camera_response.rsh | 45 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);
|
D | camera_response_fast.rsh | 37 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/ |
D | ColorUtils.java | 425 sr = sr < 0.04045 ? sr / 12.92 : Math.pow((sr + 0.055) / 1.055, 2.4); in RGBToXYZ() 427 sg = sg < 0.04045 ? sg / 12.92 : Math.pow((sg + 0.055) / 1.055, 2.4); in RGBToXYZ() 429 sb = sb < 0.04045 ? sb / 12.92 : Math.pow((sb + 0.055) / 1.055, 2.4); in RGBToXYZ() 493 double tmp = Math.pow(fx, 3); 495 final double yr = l > XYZ_KAPPA * XYZ_EPSILON ? Math.pow(fy, 3) : l / XYZ_KAPPA; 497 tmp = Math.pow(fz, 3); 524 r = r > 0.0031308 ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 : 12.92 * r; in XYZToColor() 525 g = g > 0.0031308 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : 12.92 * g; in XYZToColor() 526 b = b > 0.0031308 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : 12.92 * b; in XYZToColor() 555 return Math.sqrt(Math.pow(labX[0] - labY[0], 2) in distanceEuclidean() [all …]
|
/frameworks/support/compat/src/main/java/androidx/core/graphics/ |
D | ColorUtils.java | 449 sr = sr < 0.04045 ? sr / 12.92 : Math.pow((sr + 0.055) / 1.055, 2.4); in RGBToXYZ() 451 sg = sg < 0.04045 ? sg / 12.92 : Math.pow((sg + 0.055) / 1.055, 2.4); in RGBToXYZ() 453 sb = sb < 0.04045 ? sb / 12.92 : Math.pow((sb + 0.055) / 1.055, 2.4); in RGBToXYZ() 517 double tmp = Math.pow(fx, 3); 519 final double yr = l > XYZ_KAPPA * XYZ_EPSILON ? Math.pow(fy, 3) : l / XYZ_KAPPA; 521 tmp = Math.pow(fz, 3); 548 r = r > 0.0031308 ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 : 12.92 * r; in XYZToColor() 549 g = g > 0.0031308 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : 12.92 * g; in XYZToColor() 550 b = b > 0.0031308 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : 12.92 * b; in XYZToColor() 579 return Math.sqrt(Math.pow(labX[0] - labY[0], 2) in distanceEuclidean() [all …]
|
/frameworks/base/core/java/android/util/ |
D | FloatMath.java | 117 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/shared/src/com/android/systemui/shared/recents/utilities/ |
D | Utilities.java | 178 bgR = (bgR < 0.03928f) ? bgR / 12.92f : (float) Math.pow((bgR + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors() 179 bgG = (bgG < 0.03928f) ? bgG / 12.92f : (float) Math.pow((bgG + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors() 180 bgB = (bgB < 0.03928f) ? bgB / 12.92f : (float) Math.pow((bgB + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors() 186 fgR = (fgR < 0.03928f) ? fgR / 12.92f : (float) Math.pow((fgR + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors() 187 fgG = (fgG < 0.03928f) ? fgG / 12.92f : (float) Math.pow((fgG + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors() 188 fgB = (fgB < 0.03928f) ? fgB / 12.92f : (float) Math.pow((fgB + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | SystemUIInterpolators.java | 41 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/ |
D | DisappearAnimationUtils.java | 48 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/ |
D | math.ll | 5 declare float @llvm.pow.f32(float, float) 17 %1 = tail call float @llvm.pow.f32(float %v1, float %v2)
|
/frameworks/rs/driver/runtime/ll32/ |
D | math.ll | 5 declare float @llvm.pow.f32(float, float) 17 %1 = tail call float @llvm.pow.f32(float %v1, float %v2)
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | CSVWriterFilter.java | 100 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/native/libs/ui/ |
D | ColorSpace.cpp | 28 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/ |
D | NotificationColorUtil.java | 784 sr = sr < 0.04045 ? sr / 12.92 : Math.pow((sr + 0.055) / 1.055, 2.4); in RGBToXYZ() 786 sg = sg < 0.04045 ? sg / 12.92 : Math.pow((sg + 0.055) / 1.055, 2.4); in RGBToXYZ() 788 sb = sb < 0.04045 ? sb / 12.92 : Math.pow((sb + 0.055) / 1.055, 2.4); in RGBToXYZ() 852 double tmp = Math.pow(fx, 3); 854 final double yr = l > XYZ_KAPPA * XYZ_EPSILON ? Math.pow(fy, 3) : l / XYZ_KAPPA; 856 tmp = Math.pow(fz, 3); 883 r = r > 0.0031308 ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 : 12.92 * r; in XYZToColor() 884 g = g > 0.0031308 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : 12.92 * g; in XYZToColor() 885 b = b > 0.0031308 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : 12.92 * b; in XYZToColor() 920 ? Math.pow(component, 1 / 3.0) in pivotXyzComponent()
|
/frameworks/base/libs/hwui/ |
D | Interpolator.cpp | 40 return pow(input, mDoubleFactor); in interpolate() 88 result = 1.0f - pow((1.0f - input), 2 * mFactor); in interpolate()
|
D | GammaFontRenderer.cpp | 31 mGammaTable[i] = uint8_t((float)::floor(pow(i / 255.0f, gamma) * 255.0f + 0.5f)); in GammaFontRenderer()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ExponentialBackoffTest.java | 95 long minDelay = (long) (START_DELAY_MS * Math.pow(MULTIPLIER, i - 1)); in testDelayIncreasedExponentially() 96 long maxDelay = (long) (START_DELAY_MS * Math.pow(MULTIPLIER, i)); in testDelayIncreasedExponentially()
|
/frameworks/base/tests/Internal/src/com/android/internal/ml/clustering/ |
D | KMeansTest.java | 87 float sqDist = (float) (Math.pow(a[0] - b[0], 2) + Math.pow(a[1] - b[1], 2)); in sqDistanceTest()
|
/frameworks/base/core/res/res/raw/ |
D | color_fade_frag.frag | 12 vec3 rgb = pow(color.rgb * opacity, vec3(gamma));
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | m4venc_oscl.h | 39 #define M4VENC_POW(x,y) pow(x,y)
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | LogDecelerateInterpolator.java | 35 return (float) -Math.pow(base, -t) + 1 + (drift * t); in computeLog()
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | contrast.rs | 24 brightM = pow(2.f, v / 100.f);
|