/aosp14/frameworks/base/core/java/com/android/internal/dynamicanimation/animation/ |
H A D | SpringForce.java | 82 double mNaturalFreq = Math.sqrt(STIFFNESS_MEDIUM); 139 mNaturalFreq = Math.sqrt(stiffness); in setStiffness() 250 + mNaturalFreq * Math.sqrt(mDampingRatio * mDampingRatio - 1); in init() 252 - mNaturalFreq * Math.sqrt(mDampingRatio * mDampingRatio - 1); in init() 255 mDampedFreq = mNaturalFreq * Math.sqrt(1 - mDampingRatio * mDampingRatio); in init()
|
/aosp14/frameworks/base/core/java/com/android/internal/graphics/cam/ |
H A D | Cam.java | 201 * (float) Math.sqrt(j / 100.0f) in fromIntInFrame() 209 float t = p1 * (float) Math.sqrt(a * a + b * b) / (u + 0.305f); in fromIntInFrame() 214 float c = alpha * (float) Math.sqrt(j / 100.0); in fromIntInFrame() 216 float s = 50.0f * (float) Math.sqrt((alpha * frame.getC()) / (frame.getAw() + 4.0f)); in fromIntInFrame() 245 * (float) Math.sqrt(j / 100.0) in fromJchInFrame() 249 float alpha = c / (float) Math.sqrt(j / 100.0); in fromJchInFrame() 250 float s = 50.0f * (float) Math.sqrt((alpha * frame.getC()) / (frame.getAw() + 4.0f)); in fromJchInFrame() 270 double dEPrime = Math.sqrt(dJ * dJ + dA * dA + dB * dB); in distance() 285 : getChroma() / (float) Math.sqrt(getJ() / 100.0); in viewed()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSDetailClipper.java | 76 int r = (int) Math.ceil(Math.sqrt(x * x + y * y)); in updateCircularClip() 77 r = (int) Math.max(r, Math.ceil(Math.sqrt(w * w + y * y))); in updateCircularClip() 78 r = (int) Math.max(r, Math.ceil(Math.sqrt(w * w + h * h))); in updateCircularClip() 79 r = (int) Math.max(r, Math.ceil(Math.sqrt(x * x + h * h))); in updateCircularClip()
|
/aosp14/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DensityMapping.java | 86 double leftDiagonal = Math.sqrt(left.squaredDiagonal); in getDensityForResolution() 87 double rightDiagonal = Math.sqrt(right.squaredDiagonal); in getDensityForResolution() 88 double diagonal = Math.sqrt(squaredDiagonal); in getDensityForResolution()
|
H A D | BrightnessUtils.java | 77 ret = MathUtils.sqrt(normalizedVal) * R; in convertLinearToGamma()
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | FloatMath.java | 92 public static float sqrt(float value) { in sqrt() method in FloatMath 93 return (float) Math.sqrt(value); in sqrt()
|
H A D | MathUtils.java | 65 public static float sqrt(float a) { in sqrt() method in MathUtils 66 return (float) Math.sqrt(a); in sqrt() 112 return (float) Math.sqrt(x * x + y * y + z * z); in dist() 120 return (float) Math.sqrt(a * a + b * b + c * c); in mag()
|
/aosp14/frameworks/base/core/java/android/hardware/ |
H A D | GeomagneticField.java | 295 return (float) Math.sqrt(mX * mX + mY * mY + mZ * mZ); in getFieldStrength() 319 (float) Math.sqrt(a2 * clat * clat + b2 * slat * slat); in computeGeocentricCoordinates() 327 + 2 * altitudeKm * (float) Math.sqrt(a2 * clat * clat + in computeGeocentricCoordinates() 331 mGcRadiusKm = (float) Math.sqrt(radSq); in computeGeocentricCoordinates() 406 * (float) Math.sqrt((n - m + 1) * (m == 1 ? 2 : 1)
|
H A D | SensorManager.java | 1227 final float normH = (float) Math.sqrt(Hx * Hx + Hy * Hy + Hz * Hz); in getRotationMatrix() 1238 final float invA = 1.0f / (float) Math.sqrt(Ax * Ax + Ay * Ay + Az * Az); in getRotationMatrix() 1261 final float invE = 1.0f / (float) Math.sqrt(Ex * Ex + Ey * Ey + Ez * Ez); in getRotationMatrix() 1687 q0 = (q0 > 0) ? (float) Math.sqrt(q0) : 0; in getRotationMatrixFromVector() 1744 Q[0] = (Q[0] > 0) ? (float) Math.sqrt(Q[0]) : 0; in getQuaternionFromVector()
|
/aosp14/frameworks/base/core/tests/benchmarks/src/android/util/ |
H A D | FloatMathBenchmark.java | 98 f += FloatMath.sqrt(100.123f); in timeFloatMathSqrt() 107 f += (float) Math.sqrt(100.123f); in timeFloatMathSqrt_math()
|
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | stats_scorer.cpp | 39 result[1] = sqrt((sumSquares - numPixels * result[0] * result[0]) / (numPixels - 1)); // stdev. in Java_androidx_media_filterpacks_numeric_StatsFilter_score() 67 0 : sqrt((sumSquares - numPixels * result[0] * result[0]) / (numPixels - 1)); // stdev. in Java_androidx_media_filterpacks_numeric_StatsFilter_regionscore()
|
H A D | brightness.cpp | 47 float returnValue = sqrt(0.241f * avgPixels[0] * avgPixels[0] + in Java_androidx_media_filterfw_samples_simplecamera_AvgBrightnessFilter_brightnessOperator()
|
H A D | contrast.cpp | 50 return ((float) sqrt(sum / numPixels)); in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator()
|
/aosp14/frameworks/base/tests/JankBench/scripts/external/ |
H A D | statistics.py | 620 return var.sqrt() 622 return math.sqrt(var) 636 return var.sqrt() 638 return math.sqrt(var)
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/ |
H A D | ViewStateTest.kt | 25 import kotlin.math.sqrt 66 viewState.zTranslation = sqrt(-1.0).toFloat()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/common/ui/view/ |
H A D | LongPressHandlingView.kt | 27 import kotlin.math.sqrt 120 sqrt((x - getHistoricalX(0)).pow(2) + (y - getHistoricalY(0)).pow(2))
|
/aosp14/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | VignetteFilter.java | 102 float max_dist = ((float) Math.sqrt(scale[0] * scale[0] + scale[1] * scale[1])) * 0.5f; in initParameters() 115 mProgram.setHostValue("range", 1.30f - (float) Math.sqrt(mScale) * 0.7f); in updateParameters()
|
H A D | FisheyeFilter.java | 159 float bound = (float) Math.sqrt(bound2); in updateProgramParams() 163 (float) Math.atan(alpha / bound * (float) Math.sqrt(radius2 - bound2)); in updateProgramParams()
|
/aosp14/frameworks/base/core/java/android/gesture/ |
H A D | GestureUtils.java | 42 private static final float NONUNIFORM_SCALE = (float) Math.sqrt(2); 228 float topLeft = (float) Math.sqrt(xFloorSq + yFloorSq); in plot() 229 float topRight = (float) Math.sqrt(xCeilingSq + yFloorSq); in plot() 230 float btmLeft = (float) Math.sqrt(xFloorSq + yCeilingSq); in plot() 231 float btmRight = (float) Math.sqrt(xCeilingSq + yCeilingSq); in plot() 548 float rightside = (float) Math.sqrt(Math.pow(value, 2) - b); in computeOrientation()
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/mtp_perf/ |
H A D | AppFusePerfTest.java | 93 Math.sqrt(readSquaredAverage - readAverage * readAverage)); in testReadWriteFile() 96 Math.sqrt(writeSquaredAverage - writeAverage * writeAverage)); in testReadWriteFile()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/ |
H A D | PatternBouncerViewModel.kt | 26 import kotlin.math.sqrt 110 val distance = sqrt((xPx - dotPixelX).pow(2) + (yPx - dotPixelY).pow(2))
|
/aosp14/frameworks/base/core/tests/privacytests/src/android/privacy/ |
H A D | LongitudinalReportingEncoderTest.java | 135 final double valueRange = 5 * Math.sqrt(n * f * (1 - f)); in testLongitudinalReportingInsecureEncoder_setSeedCorrectly() 301 final double valueRange1 = 5 * Math.sqrt(n1 * p1 * (1 - p1)); in testLongitudinalReportingEncoder_basicPRRTest() 325 final double valueRange2 = 5 * Math.sqrt(n2 * p2 * (1 - p2)); in testLongitudinalReportingEncoder_basicPRRTest()
|
/aosp14/frameworks/base/core/tests/coretests/BstatsTestApp/src/com/android/coretests/apps/bstatstestapp/ |
H A D | Common.java | 39 z = Math.sqrt(y / 100); in doSomeWork()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | Vector3Test.java | 61 0, (float)Math.sqrt(3)/2, (float)0.5, 0); in setUp() 73 assertTrue(nearlyEqual(x1y1.norm(), (float)Math.sqrt(2))); in testVector3Norm()
|
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | RippleComponent.java | 68 return (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight); in getTargetRadius()
|