Home
last modified time | relevance | path

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

/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/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/inputmethod/util/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/apps/CameraITS/tests/scene_video/
Dtest_preview_frame_drop.py44 output = max(output, np.average(values[i:i+window_size]))
134 frame_delta_avg = np.average(frame_deltas)
/cts/apps/CameraITS/tests/scene_flash/
Dtest_preview_min_frame_rate.py136 frame_delta_avg = np.average(frame_deltas)
154 y_avg = np.average(
Dtest_torch_strength.py180 strength_means = [np.average(x) for x in formats_means]
/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/apps/CameraITS/tests/scene8/
Dtest_ae_awb_regions.py149 light_y_avg = numpy.average(light_y)
151 dark_y_avg = numpy.average(dark_y)
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java979 double average = mSumX / mNum; in getStdev() local
980 return Math.sqrt(mSumXX / mNum - average * average); in getStdev()
1016 double average = mSumX / mNum; in movingAverageOverSum() local
1018 return new Stats(new double[] { average }); in movingAverageOverSum()
1020 int samples = (int)Math.ceil((mSumX - window) / average); in movingAverageOverSum()
1067 foot -= average; in movingAverageOverSum()
1068 space += average; in movingAverageOverSum()
/cts/apps/CameraITS/tests/scene7/
Dtest_multi_camera_switch.py123 uw_y_avg = np.average(uw_y)
127 w_y_avg = np.average(w_y)
/cts/hostsidetests/mediapc/videoencodingquality/bdrate/src/main/java/com/android/media/videoquality/bdrate/
DBdRateMain.java194 .average() in checkVeq()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioTrackOffloadTest.java453 double averageDuration = Arrays.stream(playbackDurationsMs).average().orElse(0); in testGaplessAudioTrackOffload()
/cts/apps/CameraITS/utils/
Dimage_processing_utils.py1162 return numpy.average(numpy.sqrt(gy*gy + gx*gx))
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt23706 field public static final String KEY_VIDEO_QP_AVERAGE = "video-qp-average";