Home
last modified time | relevance | path

Searched refs:average (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DCompareUtils.java22 int average = Color.red(color) + Color.green(color) + Color.blue(color); in verifyPixelGrayScale() local
23 average /= 3; in verifyPixelGrayScale()
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/
DCompareUtils.java22 int average = Color.red(color) + Color.green(color) + Color.blue(color); in verifyPixelGrayScale() local
23 average /= 3; in verifyPixelGrayScale()
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/inputmethod/src/android/view/inputmethod/cts/util/
DLightNavigationBarVerifier.java168 final OptionalDouble average = Arrays.stream(diffs).filter(diff -> diff != 0).average(); in verify()
169 return average.isPresent() && average.getAsDouble() > LIGHT_NAVBAR_SUPPORTED_THRESHOLD; in verify()
180 final OptionalDouble average = Arrays.stream(diffs).filter(diff -> diff != 0).average(); in verify()
181 return average.isPresent() in verify()
182 && Math.abs(average.getAsDouble()) < LIGHT_NAVBAR_NOT_SUPPORTED_THRESHOLD; in verify()
/cts/tests/camera/src/android/hardware/camera2/cts/
DBurstCaptureRawTest.java407 double average = 0.0; in execute() local
410 average += deltaList.get(i); in execute()
412 average /= deltaList.size(); in execute()
417 double diff = deltaList.get(i) - average; in execute()
422 Log.i(TAG, String.format("average = %.2f, stddev = %.2f", average, stddev)); in execute()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java887 double average = mSumX / mNum; in getStdev() local
888 return Math.sqrt(mSumXX / mNum - average * average); in getStdev()
924 double average = mSumX / mNum; in movingAverageOverSum() local
926 return new Stats(new double[] { average }); in movingAverageOverSum()
928 int samples = (int)Math.ceil((mSumX - window) / average); in movingAverageOverSum()
975 foot -= average; in movingAverageOverSum()
976 space += average; in movingAverageOverSum()
/cts/apps/CameraITS/pymodules/its/
Dimage.py818 return numpy.average(numpy.sqrt(gy*gy + gx*gx))