Home
last modified time | relevance | path

Searched refs:abs (Results 1 – 25 of 153) sorted by relevance

1234567

/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestAbs.rs24 return abs(inV);
28 return abs(inV);
32 return abs(inV);
36 return abs(inV);
40 return abs(inV);
44 return abs(inV);
48 return abs(inV);
52 return abs(inV);
56 return abs(inV);
60 return abs(inV);
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DCompareUtils.java10 int diff = Math.abs(Color.red(color) - Color.red(expectedColor)) in verifyPixelWithThreshold()
11 + Math.abs(Color.green(color) - Color.green(expectedColor)) in verifyPixelWithThreshold()
12 + Math.abs(Color.blue(color) - Color.blue(expectedColor)); in verifyPixelWithThreshold()
24 return Math.abs(Color.red(color) - average) <= threshold in verifyPixelGrayScale()
25 && Math.abs(Color.green(color) - average) <= threshold in verifyPixelGrayScale()
26 && Math.abs(Color.blue(color) - average) <= threshold; in verifyPixelGrayScale()
/cts/tests/tests/view/src/android/view/animation/cts/
DScaleAnimationTest.java116 assertTrue(Math.abs(trans1X) < Math.abs(trans2X)); in testApplyTransformation()
117 assertTrue(Math.abs(trans2X) < Math.abs(trans3X)); in testApplyTransformation()
118 assertTrue(Math.abs(trans1Y) < Math.abs(trans2Y)); in testApplyTransformation()
119 assertTrue(Math.abs(trans2Y) < Math.abs(trans3Y)); in testApplyTransformation()
158 assertTrue(Math.abs(trans1X) < Math.abs(trans2X));
159 assertTrue(Math.abs(trans2X) < Math.abs(trans3X));
160 assertTrue(Math.abs(trans1Y) < Math.abs(trans2Y));
161 assertTrue(Math.abs(trans2Y) < Math.abs(trans3Y));
/cts/apps/CameraITS/tests/scene1/
Dtest_param_color_correction.py103 assert(abs(g_means[1] - g_means[0]) < THRESHOLD_MAX_DIFF)
104 assert(abs(g_means[2] - g_means[1]) < THRESHOLD_MAX_DIFF)
105 assert(abs(r_means[2] - r_means[0]) < THRESHOLD_MAX_DIFF)
106 assert(abs(r_means[1] - 2.0 * r_means[0]) < THRESHOLD_MAX_DIFF)
107 assert(abs(b_means[1] - b_means[0]) < THRESHOLD_MAX_DIFF)
108 assert(abs(b_means[2] - 2.0 * b_means[0]) < THRESHOLD_MAX_DIFF)
Dtest_crop_region_raw.py103 assert ((abs(cr_expected["left"] - cr_reported["left"]) <= ex) and
104 (abs(cr_expected["right"] - cr_reported["right"]) <= ex) and
105 (abs(cr_expected["top"] - cr_reported["top"]) <= ey) and
106 (abs(cr_expected["bottom"] - cr_reported["bottom"]) <= ey))
Dtest_param_tonemap_mode.py105 assert(abs(rgb_diffs[0]) < THRESHOLD_DIFF_MAX_DIFF)
106 assert(abs(rgb_diffs[1]) < THRESHOLD_DIFF_MAX_DIFF)
107 assert(abs(rgb_diffs[2]) < THRESHOLD_DIFF_MAX_DIFF)
Dtest_tonemap_sequence.py73 assert(all([abs(deltas[i]) < MAX_SAME_DELTA for i in [0,1,3,4]]))
74 assert(abs(deltas[2]) > MIN_DIFF_DELTA)
Dtest_auto_vs_manual.py96 assert(all([abs(xform[i] - x[i]) < 0.05 for i in range(9)]))
97 assert(all([abs(gains[i] - g[i]) < 0.05 for i in range(4)]))
/cts/tests/sensor/src/android/hardware/cts/helpers/
DMovementDetectorHelper.java102 float totalAcceleration = Math.abs(linearAcceleration[0]) in onSensorChanged()
103 + Math.abs(linearAcceleration[1]) in onSensorChanged()
104 + Math.abs(linearAcceleration[2]); in onSensorChanged()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DBitmapUtils.java85 diff += Math.abs(Color.red(aPix) - Color.red(bPix)); // red in calcDifferenceMetric()
86 diff += Math.abs(Color.green(aPix) - Color.green(bPix)); // green in calcDifferenceMetric()
87 diff += Math.abs(Color.blue(aPix) - Color.blue(bPix)); // blue in calcDifferenceMetric()
/cts/suite/audio_quality/test_description/processing/
Dcheck_spectrum_playback.py53 print "Phh", abs(Phh[iLow:iHigh])
54 spectrum = np.sqrt(abs(Phh[iLow:iHigh]))
59 positiveMax = abs(max(spectrum))
60 negativeMin = abs(min(spectrum))
Dcheck_spectrum.py57 print "Phh", abs(Phh[iLow:iHigh])
58 print "Pdd", abs(Pdd[iLow:iHigh])
59 amplitudeRatio = np.sqrt(abs(Pdd[iLow:iHigh]/Phh[iLow:iHigh]))
64 positiveMax = abs(max(amplitudeRatio))
65 negativeMin = abs(min(amplitudeRatio))
/cts/apps/CameraITS/tests/scene0/
Dtest_jitter.py61 assert(abs(range0) < MAX_FRAME_DELTA_JITTER)
62 assert(abs(range1) < MAX_FRAME_DELTA_JITTER)
/cts/tests/tests/view/src/android/view/cts/
DVelocityTrackerTest.java211 float absError = Math.abs(actual - expected); in error()
215 if (Math.abs(expected) < 0.001f) { in error()
218 return absError / Math.abs(expected); in error()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_static_range/d/
DT_invoke_static_range_19.java22 return Math.abs(-1234567); in run()
DT_invoke_static_range_1.java22 return Math.abs(-1234567); in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_static/d/
DT_invoke_static_1.java22 return Math.abs(-1234567); in run()
DT_invoke_static_19.java22 return Math.abs(-1234567); in run()
/cts/apps/CameraITS/tests/inprog/
Dtest_burst_sameness_fullres_auto.py86 delta_maxes.append(max(abs(delta_max_pos), abs(delta_max_neg)))
/cts/tests/tests/opengl/src/android/opengl/cts/
DColorBufferTest.java193 assertTrue(Math.abs(r - (actualColor[0]/255)) < 0.1f); in compare()
194 assertTrue(Math.abs(g - (actualColor[1]/255)) < 0.1f); in compare()
195 assertTrue(Math.abs(b - (actualColor[2]/255)) < 0.1f); in compare()
DNativeColorBufferTest.java187 assertTrue(Math.abs(r - (actualColor[0]/255.0)) < 0.1f); in compare()
188 assertTrue(Math.abs(g - (actualColor[1]/255.0)) < 0.1f); in compare()
189 assertTrue(Math.abs(b - (actualColor[2]/255.0)) < 0.1f); in compare()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTestUtils.java178 totalError += Math.abs(Color.red(idealColor) - Color.red(givenColor)); in compareImages()
179 totalError += Math.abs(Color.green(idealColor) - Color.green(givenColor)); in compareImages()
180 totalError += Math.abs(Color.blue(idealColor) - Color.blue(givenColor)); in compareImages()
181 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in compareImages()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DWavAnalyzer.java65 if ((Math.abs(data[i]) >= Short.MAX_VALUE) && (Math.abs(data[i - 1]) >= Short.MAX_VALUE)) { in isClipped()
168 noisePower[i][s] = fourierCoeff.multiply(fourierCoeff.conjugate()).abs(); in measurePipStrength()
207 fourierCoeff.multiply(fourierCoeff.conjugate()).abs(); in measurePipStrength()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/
DSensorOperationTest.java56 assertTrue(Math.abs(opDurationMs - duration) < TEST_DURATION_THRESHOLD_MS); in testFakeSensorOperation()
82 long durationDeltaMs = Math.abs(opDurationMs + subOpDurationMs - durationMs);
106 long durationDeltaMs = Math.abs(subOpDurationMs - durationMs);
217 assertTrue(Math.abs(subOpDurationMs * iterations - duration) < TEST_DURATION_THRESHOLD_MS);
306 assertTrue(Math.abs(subOpDurationMs * subOpCount - duration) < TEST_DURATION_THRESHOLD_MS);
/cts/tests/openglperf2/assets/fragment/
Dwater22 float weight = abs(mod(float(u_Time), 101.0) - 50.0) / 50.0;// loop between 0.0 and 1.0
23 float offset = abs(float(u_Time) / 1000.0);

1234567