/frameworks/base/core/java/android/animation/ |
D | ArgbEvaluator.java | 71 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/ |
D | Utilities.java | 39 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/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessMappingStrategyTest.java | 366 minBrightness = (float) MathUtils.pow(minBrightness, MAXIMUM_GAMMA); // Gamma correction. in assertStrategyAdaptsToUserDataPoints() 475 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); in testGammaCorrectionLowChangeAtCenter() 476 assertEquals(MathUtils.pow(y1, gamma), strategy.getBrightness(x1), 0.01f /* tolerance */); in testGammaCorrectionLowChangeAtCenter() 477 assertEquals(MathUtils.pow(y2, gamma), strategy.getBrightness(x2), 0.01f /* tolerance */); in testGammaCorrectionLowChangeAtCenter() 478 assertEquals(MathUtils.pow(y3, gamma), strategy.getBrightness(x3), 0.01f /* tolerance */); in testGammaCorrectionLowChangeAtCenter() 504 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); in testGammaCorrectionHighChangeAtCenter() 505 assertEquals(MathUtils.pow(y1, minGamma), strategy.getBrightness(x1), in testGammaCorrectionHighChangeAtCenter() 507 assertEquals(MathUtils.pow(y2, gamma), strategy.getBrightness(x2), in testGammaCorrectionHighChangeAtCenter() 509 assertEquals(MathUtils.pow(y3, minGamma), strategy.getBrightness(x3), in testGammaCorrectionHighChangeAtCenter() 549 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/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/utilities/ |
D | Utilities.java | 316 bgR = (bgR < 0.03928f) ? bgR / 12.92f : (float) Math.pow((bgR + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors() 317 bgG = (bgG < 0.03928f) ? bgG / 12.92f : (float) Math.pow((bgG + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors() 318 bgB = (bgB < 0.03928f) ? bgB / 12.92f : (float) Math.pow((bgB + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors() 324 fgR = (fgR < 0.03928f) ? fgR / 12.92f : (float) Math.pow((fgR + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors() 325 fgG = (fgG < 0.03928f) ? fgG / 12.92f : (float) Math.pow((fgG + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors() 326 fgB = (fgB < 0.03928f) ? fgB / 12.92f : (float) Math.pow((fgB + 0.055f) / 1.055f, 2.4f); in computeContrastBetweenColors()
|
/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/ml/nn/runtime/test/generated/spec_V1_2/ |
D | pow.example.cpp | 7 namespace generated_tests::pow { namespace 64 namespace generated_tests::pow { namespace 189 namespace generated_tests::pow { namespace 246 namespace generated_tests::pow { namespace 371 namespace generated_tests::pow { namespace 428 namespace generated_tests::pow { namespace 553 namespace generated_tests::pow { namespace 610 namespace generated_tests::pow { namespace 735 namespace generated_tests::pow { namespace 792 namespace generated_tests::pow { namespace [all …]
|
/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/ml/nn/common/operations/ |
D | Pow.cpp | 28 namespace pow { namespace 51 outputData[outputFlatIndex] = std::pow(static_cast<float>(baseData[baseFlatIndex]), in evalGeneric()
|
D | Pow.h | 24 namespace pow {
|
/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 | ContrastColorUtil.java | 795 sr = sr < 0.04045 ? sr / 12.92 : Math.pow((sr + 0.055) / 1.055, 2.4); in RGBToXYZ() 797 sg = sg < 0.04045 ? sg / 12.92 : Math.pow((sg + 0.055) / 1.055, 2.4); in RGBToXYZ() 799 sb = sb < 0.04045 ? sb / 12.92 : Math.pow((sb + 0.055) / 1.055, 2.4); in RGBToXYZ() 863 double tmp = Math.pow(fx, 3); 865 final double yr = l > XYZ_KAPPA * XYZ_EPSILON ? Math.pow(fy, 3) : l / XYZ_KAPPA; 867 tmp = Math.pow(fz, 3); 894 r = r > 0.0031308 ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 : 12.92 * r; in XYZToColor() 895 g = g > 0.0031308 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : 12.92 * g; in XYZToColor() 896 b = b > 0.0031308 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : 12.92 * b; in XYZToColor() 931 ? Math.pow(component, 1 / 3.0) in pivotXyzComponent()
|
/frameworks/base/libs/hwui/utils/ |
D | Color.cpp | 168 float fx = X > A ? pow(X, 1.0f / 3.0f) : B * X + C; in fromXyz() 169 float fy = Y > A ? pow(Y, 1.0f / 3.0f) : B * Y + C; in fromXyz() 170 float fz = Z > A ? pow(Z, 1.0f / 3.0f) : B * Z + C; in fromXyz()
|
/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()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ExponentialBackoffTest.java | 97 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/ |
D | KMeansTest.java | 88 float sqDist = (float) (Math.pow(a[0] - b[0], 2) + Math.pow(a[1] - b[1], 2)); in sqDistanceTest()
|
/frameworks/base/wifi/java/android/net/wifi/rtt/ |
D | ResponderLocation.java | 604 if ((fields[offset] & (long) Math.pow(2, bitFieldSizes[offset] - 1)) != 0) { in decodeLciLatLng() 608 angle = Math.scalb((double) fields[offset] - Math.pow(2, bitFieldSizes[offset]), in decodeLciLatLng() 629 return Math.pow(2, LATLNG_UNCERTAINTY_BASE - encodedValue); in decodeLciLatLngUncertainty() 639 return Math.pow(2, ALTITUDE_UNCERTAINTY_BASE - encodedValue); in decodeLciAltUncertainty() 672 Math.pow(2, Z_FLOOR_HEIGHT_FRACTION_BITS - zHeightUncertainty - 1); in parseSubelementZ() 691 int maxPositiveValue = (int) Math.pow(2, fieldLengths[index] - 1) - 1; in decodeZUnsignedToSignedValue() 693 value -= Math.pow(2, fieldLengths[index]); in decodeZUnsignedToSignedValue()
|
/frameworks/av/media/libeffects/lvm/lib/Common/src/ |
D | dB_to_Lin32.cpp | 73 LinFloat = pow(10, dB_Float / 20.0); in dB_to_LinFloat()
|
/frameworks/av/media/libeffects/loudness/ |
D | EffectLoudnessEnhancer.cpp | 95 float targetAmp = pow(10, pContext->mTargetGainmB/2000.0f); // mB to linear amplification in LE_reset() 191 float targetAmp = pow(10, pContext->mTargetGainmB/2000.0f); // mB to linear amplification in LE_init() 303 const float inputAmp = pow(10, pContext->mTargetGainmB/2000.0f) * scale; in LE_process() 305 float inputAmp = pow(10, pContext->mTargetGainmB/2000.0f); in LE_process()
|