/frameworks/base/core/java/android/animation/ |
H A D | ArgbEvaluator.java | 68 startR = (float) Math.pow(startR, 2.2); 69 startG = (float) Math.pow(startG, 2.2); 70 startB = (float) Math.pow(startB, 2.2); 72 endR = (float) Math.pow(endR, 2.2); 73 endG = (float) Math.pow(endG, 2.2); 74 endB = (float) Math.pow(endB, 2.2); 84 r = (float) Math.pow(r, 1.0 / 2.2) * 255.0f; 85 g = (float) Math.pow(g, 1.0 / 2.2) * 255.0f; 86 b = (float) Math.pow(b, 1.0 / 2.2) * 255.0f;
|
/frameworks/support/graphics/drawable/animated/src/main/java/androidx/vectordrawable/graphics/drawable/ |
H A D | ArgbEvaluator.java | 77 startR = (float) Math.pow(startR, 2.2); 78 startG = (float) Math.pow(startG, 2.2); 79 startB = (float) Math.pow(startB, 2.2); 81 endR = (float) Math.pow(endR, 2.2); 82 endG = (float) Math.pow(endG, 2.2); 83 endB = (float) Math.pow(endB, 2.2); 93 r = (float) Math.pow(r, 1.0 / 2.2) * 255.0f; 94 g = (float) Math.pow(g, 1.0 / 2.2) * 255.0f; 95 b = (float) Math.pow(b, 1.0 / 2.2) * 255.0f;
|
/frameworks/base/core/java/android/util/ |
H A D | FloatMath.java | 117 public static float pow(float x, float y) { method in class:FloatMath 118 return (float) Math.pow(x, y);
|
/frameworks/base/libs/hwui/ |
H A D | GammaFontRenderer.cpp | 31 mGammaTable[i] = uint8_t((float)::floor(pow(i / 255.0f, gamma) * 255.0f + 0.5f));
|
/frameworks/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/ |
H A D | SpringForce.java | 288 displacement = coeffA * Math.pow(Math.E, mGammaMinus * deltaT) 289 + coeffB * Math.pow(Math.E, mGammaPlus * deltaT); 290 currentVelocity = coeffA * mGammaMinus * Math.pow(Math.E, mGammaMinus * deltaT) 291 + coeffB * mGammaPlus * Math.pow(Math.E, mGammaPlus * deltaT); 296 displacement = (coeffA + coeffB * deltaT) * Math.pow(Math.E, -mNaturalFreq * deltaT); 297 currentVelocity = (coeffA + coeffB * deltaT) * Math.pow(Math.E, -mNaturalFreq * deltaT) 298 * (-mNaturalFreq) + coeffB * Math.pow(Math.E, -mNaturalFreq * deltaT); 304 displacement = Math.pow(Math.E, -mDampingRatio * mNaturalFreq * deltaT) 308 + Math.pow(Math.E, -mDampingRatio * mNaturalFreq * deltaT)
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | m4venc_oscl.h | 39 #define M4VENC_POW(x,y) pow(x,y)
|
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | LogDecelerateInterpolator.java | 35 return (float) -Math.pow(base, -t) + 1 + (drift * t);
|
/frameworks/support/leanback/src/main/java/androidx/leanback/animation/ |
H A D | LogAccelerateInterpolator.java | 39 return (float) -Math.pow(base, -t) + 1 + (drift * t);
|
H A D | LogDecelerateInterpolator.java | 40 return (float) -Math.pow(base, -t) + 1 + (drift * t);
|
/frameworks/wilhelm/src/android/ |
H A D | android_sles_conversions.h | 85 return pow(10, (float)level/2000);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/ |
H A D | DisappearAnimationUtils.java | 48 return (long) ((row * 60 + col * (Math.pow(row, 0.4) + 0.4) * 10) * mDelayScale); 55 return (float) (Math.pow((numRows - row), 2) / numRows);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
H A D | SystemUIInterpolators.java | 41 return 1f - (float) Math.pow(mBase, -t * mTimeScale) + (mDrift * t); 66 return (float) -Math.pow(base, -t) + 1 + (drift * t);
|
/frameworks/rs/rsov/compiler/tests/image/ |
H A D | contrast.rs | 25 brightM = pow(2.f, v / 100.f);
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
H A D | contrast.rs | 24 brightM = pow(2.f, v / 100.f);
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
H A D | contrast.rs | 24 brightM = pow(2.f, v / 100.f);
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | contrast.rs | 24 brightM = pow(2.f, v / 100.f);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
H A D | BrightnessMappingStrategyTest.java | 368 minBrightness = (float) MathUtils.pow(minBrightness, MAXIMUM_GAMMA); // Gamma correction. 477 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); 478 assertEquals(MathUtils.pow(y1, gamma), strategy.getBrightness(x1), 0.01f /* tolerance */); 479 assertEquals(MathUtils.pow(y2, gamma), strategy.getBrightness(x2), 0.01f /* tolerance */); 480 assertEquals(MathUtils.pow(y3, gamma), strategy.getBrightness(x3), 0.01f /* tolerance */); 506 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); 507 assertEquals(MathUtils.pow(y1, minGamma), strategy.getBrightness(x1), 509 assertEquals(MathUtils.pow(y2, gamma), strategy.getBrightness(x2), 511 assertEquals(MathUtils.pow(y3, minGamma), strategy.getBrightness(x3), 552 float gamma = (float) MathUtils.pow(MAXIMUM_GAMM [all...] |
/frameworks/base/core/java/com/android/internal/graphics/ |
H A D | ColorUtils.java | 425 sr = sr < 0.04045 ? sr / 12.92 : Math.pow((sr + 0.055) / 1.055, 2.4); 427 sg = sg < 0.04045 ? sg / 12.92 : Math.pow((sg + 0.055) / 1.055, 2.4); 429 sb = sb < 0.04045 ? sb / 12.92 : Math.pow((sb + 0.055) / 1.055, 2.4); 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; 525 g = g > 0.0031308 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : 12.92 * g; 526 b = b > 0.0031308 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : 12.92 * b; 555 return Math.sqrt(Math.pow(lab [all...] |
/frameworks/support/compat/src/main/java/androidx/core/graphics/ |
H A D | ColorUtils.java | 449 sr = sr < 0.04045 ? sr / 12.92 : Math.pow((sr + 0.055) / 1.055, 2.4); 451 sg = sg < 0.04045 ? sg / 12.92 : Math.pow((sg + 0.055) / 1.055, 2.4); 453 sb = sb < 0.04045 ? sb / 12.92 : Math.pow((sb + 0.055) / 1.055, 2.4); 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; 549 g = g > 0.0031308 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : 12.92 * g; 550 b = b > 0.0031308 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : 12.92 * b; 579 return Math.sqrt(Math.pow(lab [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | CSVWriterFilter.java | 100 float vectorAccel = (float) Math.sqrt(Math.pow(motionValues[0], 2) + 101 Math.pow(motionValues[1], 2) + Math.pow(motionValues[2], 2));
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
H A D | Utilities.java | 178 bgR = (bgR < 0.03928f) ? bgR / 12.92f : (float) Math.pow((bgR + 0.055f) / 1.055f, 2.4f); 179 bgG = (bgG < 0.03928f) ? bgG / 12.92f : (float) Math.pow((bgG + 0.055f) / 1.055f, 2.4f); 180 bgB = (bgB < 0.03928f) ? bgB / 12.92f : (float) Math.pow((bgB + 0.055f) / 1.055f, 2.4f); 186 fgR = (fgR < 0.03928f) ? fgR / 12.92f : (float) Math.pow((fgR + 0.055f) / 1.055f, 2.4f); 187 fgG = (fgG < 0.03928f) ? fgG / 12.92f : (float) Math.pow((fgG + 0.055f) / 1.055f, 2.4f); 188 fgB = (fgB < 0.03928f) ? fgB / 12.92f : (float) Math.pow((fgB + 0.055f) / 1.055f, 2.4f);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | ExponentialBackoffTest.java | 95 long minDelay = (long) (START_DELAY_MS * Math.pow(MULTIPLIER, i - 1)); 96 long maxDelay = (long) (START_DELAY_MS * Math.pow(MULTIPLIER, i));
|
/frameworks/av/media/libaaudio/examples/utils/ |
H A D | SineGenerator.h | 39 mUpScaler = pow((frequencyHigh / frequencyLow), (1.0 / numFrames));
|
/frameworks/av/media/libeffects/lvm/lib/Common/src/ |
H A D | dB_to_Lin32.c | 77 LinFloat = pow(10, dB_Float / 20.0);
|
/frameworks/base/core/java/android/view/animation/ |
H A D | AccelerateInterpolator.java | 81 return (float)Math.pow(input, mDoubleFactor);
|