Home
last modified time | relevance | path

Searched refs:sqrt (Results 1 – 25 of 58) sorted by relevance

123

/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestSqrt.rs24 return sqrt(inV);
28 return sqrt(inV);
32 return sqrt(inV);
36 return sqrt(inV);
40 return sqrt(inV);
44 return sqrt(inV);
48 return sqrt(inV);
52 return sqrt(inV);
/cts/tests/tests/libcorelegacy22/src/android/util/cts/
DFloatMathTest.java24 assertEquals(5.0f, FloatMath.sqrt(25)); in testSqrt()
25 assertEquals(7, FloatMath.sqrt(49), 0); in testSqrt()
26 assertEquals(10, FloatMath.sqrt(100), 0); in testSqrt()
27 assertEquals(0, FloatMath.sqrt(0), 0); in testSqrt()
28 assertEquals(1, FloatMath.sqrt(1), 0); in testSqrt()
/cts/common/util/tests/src/com/android/compatibility/common/util/
DStatTest.java73 assertEquals(Math.sqrt(2.5), stddev, 0.00001); in testGetStandardDeviation()
77 assertEquals(Math.sqrt(2.5), stddev, 0.00001); in testGetStandardDeviation()
81 assertEquals(Math.sqrt(10.0), stddev, 0.00001); in testGetStandardDeviation()
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/
DStandardDeviationVerificationTest.java46 (float) Math.sqrt(2.5), (float) Math.sqrt(2.5), (float) Math.sqrt(10.0) in testVerify()
DStandardDeviationVerification.java91 float mAccelNoise = (float)(graceFactorAccelGyro * Math.sqrt(currOperatingFreq) * in getDefault()
93 float mGyroNoise = (float)(graceFactorAccelGyro * Math.sqrt(currOperatingFreq) * in getDefault()
97 (float)Math.sqrt(currOperatingFreq)); // Allow extra grace for pressure in getDefault()
141 stdDevs[i] = (float) Math.sqrt(mM2s[i] / (mCount - 1)); in verify()
/cts/tests/openglperf2/jni/graphics/
DVector2D.cpp49 return (float) sqrt(dx * dx + dy * dy); in distance()
67 return (float) sqrt(mX * mX + mY * mY); in magnitude()
DMatrix.cpp144 float rlf = 1.0f / (float) sqrt(fx * fx + fy * fy + fz * fz); in newLookAt()
155 float rls = 1.0f / (float) sqrt(sx * sx + sy * sy + sz * sz); in newLookAt()
289 float len = sqrt((x * x) + (y * y) + (z * z)); in newRotate()
/cts/tools/dasm/test/
Dall_opcodes.d136 invoke-virtual {v1}, java/lang/Math/sqrt(D)D
137 invoke-super {v1}, java/lang/Math/sqrt(D)D
138 invoke-direct {v1}, java/lang/Math/sqrt(D)D
139 invoke-static {v1}, java/lang/Math/sqrt(D)D
140 ;invoke-interface {v1}, java/lang/Math/sqrt(D)D
142 invoke-virtual/range {v1..v4}, java/lang/Math/sqrt(D)D
143 invoke-super/range {v1..v4}, java/lang/Math/sqrt(D)D
144 invoke-direct/range {v1..v4}, java/lang/Math/sqrt(D)D
145 invoke-static/range {v1..v4}, java/lang/Math/sqrt(D)D
146 ;invoke-interface/range {v1..v4}, java/lang/Math/sqrt(D)D
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DTarget.java266 Floaty sqrt(Floaty a) { in sqrt() method in Target
271 double f = Math.sqrt(a.mValue); in sqrt()
272 double min = Math.sqrt(a.mMinValue); in sqrt()
273 double max = Math.sqrt(a.mMaxValue); in sqrt()
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/
DSensorCtsHelper.java126 return Math.sqrt(getVariance(collection)); in getStandardDeviation()
151 double magnitude = Math.sqrt(sumOfSquares); in getMagnitude()
/cts/suite/audio_quality/lib/src/
DBuiltinProcessing.cpp62 rms = (int64_t)sqrt(energy/samples); in rms_mva()
/cts/libs/view/src/com/android/view/
DPosition.java50 return Math.sqrt(Math.pow((mX - other.mX), 2) + Math.pow((mY - other.mY), 2)); in distanceTo()
/cts/apps/CameraITS/tests/scene1/
Dtest_jpeg.py56 rms_diff = math.sqrt(
Dtest_yuv_plus_jpeg.py58 rms_diff = math.sqrt(
Dtest_yuv_plus_raw.py61 rms_diff = math.sqrt(
Dtest_yuv_plus_raw10.py61 rms_diff = math.sqrt(
Dtest_yuv_plus_raw12.py61 rms_diff = math.sqrt(
Dtest_yuv_jpeg_all.py76 rms_diff = math.sqrt(
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
DArcShapeTest.java75 assertEquals((double)SQUARE / 2 / Math.sqrt(2), count, TOLERANCE); in testDraw()
DOvalShapeTest.java68 assertEquals((double)SQUARE / Math.sqrt(2), count, TOLERANCE); in testDraw()
/cts/tests/tests/dpi/src/android/dpi/cts/
DConfigurationTest.java45 double diagonalInches = Math.sqrt(Math.pow(xInches, 2) + Math.pow(yInches, 2)); in testScreenConfiguration()
/cts/tests/openglperf2/jni/primitive/shaderperf/
DShaderPerfRenderer.cpp21 static const float GOLDEN_RATIO = (1.0f + sqrt(5.0f)) / 2.0f;
/cts/tests/vr/src/android/vr/cts/
DVrDisplayTest.java114 double diagonalLength = Math.sqrt(width * width + height * height); in testDisplayDimensions()
/cts/tests/tests/graphics/src/android/graphics/cts/
DCornerPathEffectTest.java96 assertTrue(cornerPixels > Math.sqrt(2 * Math.pow(RADIUS, 2))); in testCornerPathEffect()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java240 rms = Math.sqrt(calcSqrErr(vrecs, srecs2, 0)+ calcSqrErr(vrecs, srecs2, 1)); in processDataSet()
258 report.roll_rms_error = Math.sqrt(calcSqrErr(vrecs, srecs2, 0)); in processDataSet()
259 report.pitch_rms_error = Math.sqrt(calcSqrErr(vrecs, srecs2, 1)); in processDataSet()
260 report.yaw_rms_error = Math.sqrt(calcSqrErr(vrecs, srecs2, 2)); in processDataSet()
603 ret[1] = Math.sqrt(sumsq/srec.size() - ret[0]*ret[0]); in calcSensorPeriodStat()
1299 double t = Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]); in rodr2quat()
1306 double t = Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]); in rodr2quat()

123