/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/ |
D | TestAbs.rscript | 24 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/ |
D | CompareUtils.java | 10 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/uirendering27/src/android/uirendering/cts/util/ |
D | CompareUtils.java | 10 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/ |
D | ScaleAnimationTest.java | 117 assertTrue(Math.abs(trans1X) < Math.abs(trans2X)); in testApplyTransformation() 118 assertTrue(Math.abs(trans2X) < Math.abs(trans3X)); in testApplyTransformation() 119 assertTrue(Math.abs(trans1Y) < Math.abs(trans2Y)); in testApplyTransformation() 120 assertTrue(Math.abs(trans2Y) < Math.abs(trans3Y)); in testApplyTransformation() 159 assertTrue(Math.abs(trans1X) < Math.abs(trans2X)); 160 assertTrue(Math.abs(trans2X) < Math.abs(trans3X)); 161 assertTrue(Math.abs(trans1Y) < Math.abs(trans2Y)); 162 assertTrue(Math.abs(trans2Y) < Math.abs(trans3Y));
|
/cts/apps/CameraITS/tests/scene1_1/ |
D | test_param_color_correction.py | 142 if abs(g_means[1] - g_means[0]) > RGB_DIFF_THRESH: 145 if abs(g_means[2] - g_means[1]) > RGB_DIFF_THRESH: 148 if abs(r_means[2] - r_means[0]) > RGB_DIFF_THRESH: 151 if abs(b_means[1] - b_means[0]) > RGB_DIFF_THRESH: 156 if abs(r_means[1] - 2*r_means[0]) > RGB_DIFF_THRESH: 159 if abs(b_means[2] - 2*b_means[0]) > RGB_DIFF_THRESH:
|
D | test_crop_region_raw.py | 135 (abs(cr_expected['left'] - cr_reported['left']) <= ex) and 136 (abs(cr_expected['right'] - cr_reported['right']) <= ex) and 137 (abs(cr_expected['top'] - cr_reported['top']) <= ey) and 138 (abs(cr_expected['bottom'] - cr_reported['bottom']) <= ey)), e_msg
|
/cts/tests/tests/graphics/src/android/graphics/cts/utils/ |
D | Cam.java | 163 float rAF = (float) Math.pow(frame.getFl() * Math.abs(rD) / 100.0, 0.42); in fromIntInFrame() 164 float gAF = (float) Math.pow(frame.getFl() * Math.abs(gD) / 100.0, 0.42); in fromIntInFrame() 165 float bAF = (float) Math.pow(frame.getFl() * Math.abs(bD) / 100.0, 0.42); in fromIntInFrame() 302 float rCBase = (float) Math.max(0, (27.13 * Math.abs(rA)) / (400.0 - Math.abs(rA))); in viewed() 305 float gCBase = (float) Math.max(0, (27.13 * Math.abs(gA)) / (400.0 - Math.abs(gA))); in viewed() 308 float bCBase = (float) Math.max(0, (27.13 * Math.abs(bA)) / (400.0 - Math.abs(bA))); in viewed() 399 while (Math.abs(low - high) >= CHROMA_SEARCH_ENDPOINT) { in getInt() 454 while (Math.abs(low - high) > LIGHTNESS_SEARCH_ENDPOINT) { in findCamByJ() 463 float dL = Math.abs(lstar - clippedLstar); in findCamByJ()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | MovementDetectorHelper.java | 102 float totalAcceleration = Math.abs(linearAcceleration[0]) in onSensorChanged() 103 + Math.abs(linearAcceleration[1]) in onSensorChanged() 104 + Math.abs(linearAcceleration[2]); in onSensorChanged()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | GetPasswordExpirationTest.java | 21 import static java.lang.Math.abs; 52 assertTrue(error, abs(System.currentTimeMillis() + timeout in checkPasswordExpiration()
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/ |
D | BitmapImage.java | 110 return lhs == rhs || (Math.abs(Color.red(lhs) - Color.red(rhs)) <= TOLERANCE in robustMatchInternal() 111 && Math.abs(Color.green(lhs) - Color.green(rhs)) <= TOLERANCE in robustMatchInternal() 112 && Math.abs(Color.blue(lhs) - Color.blue(rhs)) <= TOLERANCE); in robustMatchInternal()
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
D | ComparisonTask.java | 105 if (Math.abs(db) <= threshold && in checkNeighbors() 106 Math.abs(dg) <= threshold && in checkNeighbors() 107 Math.abs(dr) <= threshold) { in checkNeighbors() 148 if (Math.abs(db) > threshold || in compare() 149 Math.abs(dg) > threshold || in compare() 150 Math.abs(dr) > threshold) { in compare()
|
/cts/suite/audio_quality/test_description/processing/ |
D | check_spectrum_playback.py | 53 print "Phh", abs(Phh[iLow:iHigh]) 54 spectrum = np.sqrt(abs(Phh[iLow:iHigh])) 59 positiveMax = abs(max(spectrum)) 60 negativeMin = abs(min(spectrum))
|
D | check_spectrum.py | 57 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/tests/tests/transition/src/android/transition/cts/ |
D | ExplodeTest.java | 170 assertEquals(explode, Math.abs(firstPoint.x) < Math.abs(lastPoint.x)); in verifyMovement() 171 assertEquals(explode, Math.abs(firstPoint.y) < Math.abs(lastPoint.y)); in verifyMovement() 179 return Math.abs(view.getTranslationX() - x) > 2f in hasMoved() 180 || Math.abs(view.getTranslationY() - y) > 2f; in hasMoved()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarTestBase.java | 144 return Math.abs(Color.alpha(c1) - Color.alpha(c2)) < COLOR_DIFF_THESHOLDS in isColorSame() 145 && Math.abs(Color.red(c1) - Color.red(c2)) < COLOR_DIFF_THESHOLDS in isColorSame() 146 && Math.abs(Color.green(c1) - Color.green(c2)) < COLOR_DIFF_THESHOLDS in isColorSame() 147 && Math.abs(Color.blue(c1) - Color.blue(c2)) < COLOR_DIFF_THESHOLDS; in isColorSame()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_static/d/ |
D | T_invoke_static_1.java | 22 return Math.abs(-1234567); in run()
|
D | T_invoke_static_19.java | 22 return Math.abs(-1234567); in run()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_static_range/d/ |
D | T_invoke_static_range_1.java | 22 return Math.abs(-1234567); in run()
|
D | T_invoke_static_range_19.java | 22 return Math.abs(-1234567); in run()
|
/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | BitmapUtils.java | 126 diff += Math.abs(aR - bR); // red in compareBitmap() 127 diff += Math.abs(aG - bG); // green in compareBitmap() 128 diff += Math.abs(aB - bB); // blue in compareBitmap()
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/pseudorange/ |
D | Ecef2LlaConverter.java | 76 boolean polesCheck = Math.abs(ecefXMeters) < ECEF_NEAR_POLE_THRESHOLD_METERS in convertECEFToLLACloseForm() 77 && Math.abs(ecefYMeters) < ECEF_NEAR_POLE_THRESHOLD_METERS; in convertECEFToLLACloseForm() 79 altMeters = Math.abs(ecefZMeters) - SEMI_MINOR_AXIS_METERS; in convertECEFToLLACloseForm()
|
/cts/apps/CameraITS/tests/inprog/ |
D | test_burst_sameness_fullres_auto.py | 86 delta_maxes.append(max(abs(delta_max_pos), abs(delta_max_neg)))
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | Watermark.java | 120 || (Math.abs(Color.red(targetPx) - Color.red(sourcePx)) <= TOLERANCE in robustMatch() 121 && Math.abs(Color.green(targetPx) - Color.green(sourcePx)) <= TOLERANCE in robustMatch() 122 && Math.abs(Color.blue(targetPx) - Color.blue(sourcePx)) <= TOLERANCE); in robustMatch()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | StatUtils.java | 23 sum += Math.abs(value - mean); in calculateMeanAbsoluteDeviation()
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_jitter.py | 92 if (abs(range0) >= _MAX_FRAME_DELTA_JITTER or 93 abs(range1) >= _MAX_FRAME_DELTA_JITTER):
|