/cts/apps/CameraITS/tests/scene1_2/ |
D | test_raw_exposure.py | 122 mean = means[i] 124 if max(mean) > min(black_levels) * _IMG_INCREASING_ATOL: 127 if math.isclose(max(mean), white_level, rel_tol=_IMG_SAT_RTOL): 129 white_level, max(mean)) 132 if allow_under_saturated and min(mean-lower_thresh) < 0: 138 logging.debug('iso: %d, exp: %.3f, means: %s', sens, exps[i-1], mean) 140 if mean[ch] <= prev_mean[ch] * _IMG_DELTA_THRESH: 218 mean = mean_image[_IMG_STATS_GRID // 2, _IMG_STATS_GRID // 2] 220 s, (e_test[i] * _NS_TO_MS_FACTOR), str(mean)) 221 means.append(mean)
|
D | test_raw_sensitivity.py | 109 mean = mean_img[_IMG_STATS_GRID//2, _IMG_STATS_GRID//2, 113 logging.debug('cap: %d, mean: %.2f, var: %e', i, mean, var) 117 if math.isclose(mean, max(black_levels), rel_tol=_BLACK_LEVEL_RTOL): 137 vars_step_means.append(np.mean(vars_step))
|
D | test_reprocess_noise_reduction.py | 171 rgb_avg_snrs = [np.mean(r_snrs), np.mean(g_snrs), np.mean(b_snrs)]
|
D | test_param_noise_reduction.py | 127 rgb_snrs = [np.mean(r_snrs), np.mean(g_snrs), np.mean(b_snrs)]
|
D | test_post_raw_sensitivity_boost.py | 205 mean = sum(vals) / len(vals) 206 logging.debug('%s channel vals %s mean %f', _COLORS[ch], vals, mean) 208 ratio_mean = vals[step] / mean
|
D | test_raw_burst_sensitivity.py | 141 vars_step_means.append(np.mean(vars_step))
|
/cts/apps/CameraITS/tests/scene_flash/ |
D | test_flash_strength.py | 141 for mean in range(1, len(formats_means)-1): 142 if formats_means[mean] >= formats_means[mean+1]: 153 for mean in range(1, len(formats_means)-1): 154 diff = abs(formats_means[mean] - formats_means[mean+1])
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | MagnitudeVerification.java | 98 float mean = mSum / mCount; in verify() local 99 boolean failed = Math.abs(mean - mExpected) > mThreshold; in verify() 102 stats.addValue(SensorStats.MAGNITUDE_KEY, mean); in verify() 106 mean, mExpected, mThreshold)); in verify()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | StatUtils.java | 21 double mean, double[] values, int numValues) { in calculateMeanAbsoluteDeviation() argument 24 sum += Math.abs(values[index] - mean); in calculateMeanAbsoluteDeviation()
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/ |
D | GnssLocationUpdateIntervalTest.java | 288 double mean = computeMean(deltas); in assertMeanAndStdev() local 289 double stdev = computeStdev(mean, deltas); in assertMeanAndStdev() 292 softAssert.assertTrue(provider + " provider mean too small: " + mean in assertMeanAndStdev() 293 + " (min: " + minMean + ")", mean >= minMean); in assertMeanAndStdev() 298 Log.i(TAG, provider + " provider mean: " + mean); in assertMeanAndStdev() 310 private static double computeStdev(double mean, List<Long> deltas) { in computeStdev() argument 313 double diff = d - mean; in computeStdev()
|
/cts/apps/CameraITS/tests/scene1_1/ |
D | test_black_white.py | 143 for ch, mean in enumerate(black_means): 144 if mean >= _CH_THRESH_BLACK: 149 for ch, mean in enumerate(white_means): 150 if mean <= _CH_THRESH_WHITE:
|
D | test_crop_region_raw.py | 153 img = img.reshape(h//2, 2, w//2, 2, 3).mean(3).mean(1) 179 diff_yuv = np.fabs((imgs2['yuv_full'] - imgs2['yuv_crop'])).mean() 180 diff_raw = np.fabs((imgs2['raw_full'] - imgs2['raw_crop'])).mean()
|
D | test_crop_regions.py | 125 diff = np.fabs(tile_full - tile_crop).mean()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | StepSensorPermissionTestActivity.java | 232 float mean = 0; in variance() local 234 mean += val; in variance() 236 mean /= mMagnitudes.size(); in variance() 240 var += (val - mean) * (val - mean); in variance()
|
/cts/apps/CameraITS/tests/scene5/ |
D | test_lens_shading_and_color_uniformity.py | 201 center_luma = numpy.mean(img_y[top:bottom, left:right]) 202 center_r_g = numpy.mean(img_r_g[top:bottom, left:right]) 203 center_b_g = numpy.mean(img_b_g[top:bottom, left:right]) 240 block_y = numpy.mean(img_y[top:bottom, left:right]) 241 block_r_g = numpy.mean(img_r_g[top:bottom, left:right]) 242 block_b_g = numpy.mean(img_b_g[top:bottom, left:right])
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | Util.java | 24 public static double mean(double[] data) { in mean() method in Util 25 Mean mean = new Mean(); in mean() local 26 return mean.evaluate(data); in mean()
|
D | WavAnalyzer.java | 86 coeffOfVar[i] = Util.std(powerAtFreq) / Util.mean(powerAtFreq); in isConsistent() 88 if (Util.mean(coeffOfVar) > 1.0) { in isConsistent() 109 if (Util.mean(dB) - Util.mean(noiseDB) < Common.SIGNAL_MIN_STRENGTH_DB_ABOVE_NOISE) { in responsePassesHifiTest() 121 if (Util.mean(responseInRange) < threshold) { in responsePassesHifiTest()
|
/cts/apps/CameraITS/utils/ |
D | sensor_fusion_utils.py | 470 x0 = (x-x.mean(0)) / np.sqrt(((x-x.mean(0))**2.0).sum()) 471 y0 = (y-y.mean(0)) / np.sqrt(((y-y.mean(0))**2.0).sum()) 639 (spatial_distances - np.mean(spatial_distances)) ** 2 668 (small_spatial_distances - np.mean(small_spatial_distances)) ** 2 736 x = x.reshape(nevents//_NUM_GYRO_PTS_TO_AVG, _NUM_GYRO_PTS_TO_AVG).mean(1) 737 y = y.reshape(nevents//_NUM_GYRO_PTS_TO_AVG, _NUM_GYRO_PTS_TO_AVG).mean(1) 738 z = z.reshape(nevents//_NUM_GYRO_PTS_TO_AVG, _NUM_GYRO_PTS_TO_AVG).mean(1)
|
D | capture_read_noise_utils.py | 217 mean = np.mean(channel_img[:, :, ch]) 219 norm_var = var / ((white_level - mean)**2) 222 'mean': mean, 380 np.mean(img), np.var(img), np.min(img), np.max(img))
|
/cts/apps/CameraITS/tests/scene9/ |
D | test_jpeg_quality.py | 156 lumas.append(np.mean(luma)) 157 chromas.append(np.mean(chroma)) 170 chromas.append(np.mean(matrix)) 175 lumas.append(np.mean(matrix))
|
/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | VideoErrorManager.java | 115 double mean = ((double) sum) / (bSize * bSize); in computeFrameVariance() local 116 double squareOfMean = mean * mean; in computeFrameVariance()
|
/cts/hostsidetests/adpf/app/hintsession/src/cpp/ |
D | Renderer.cpp | 414 double mean = static_cast<double>(sum) / static_cast<double>(durations.size()); in getFrameStats() local 421 varianceSum += (duration - mean) * (duration - mean); in getFrameStats()
|
/cts/apps/CameraITS/tools/ |
D | run_sensor_fusion.py | 196 len(times), np.mean(times), np.std(times))
|
/cts/apps/CameraITS/tests/scene3/ |
D | test_edge_enhancement.py | 101 return {'edge_mode': edge_mode_res, 'sharpness': np.mean(sharpness_list)}
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | SensorCtsHelper.java | 106 double mean = getMean(collection); in getVariance() local 109 double difference = mean - value.doubleValue(); in getVariance()
|