/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | StandardDeviationVerificationTest.java | 49 float[] threshold = {2, 2, 4}; in testVerify() local 50 runVerification(threshold, values, true, standardDeviations); in testVerify() 52 threshold = new float[]{1, 2, 4}; in testVerify() 53 runVerification(threshold, values, false, standardDeviations); in testVerify() 55 threshold = new float[]{2, 1, 4}; in testVerify() 56 runVerification(threshold, values, false, standardDeviations); in testVerify() 58 threshold = new float[]{2, 2, 3}; in testVerify() 59 runVerification(threshold, values, false, standardDeviations); in testVerify() 62 private void runVerification(float[] threshold, float[][] values, boolean pass, in runVerification() argument 65 StandardDeviationVerification verification = getVerification(threshold, values); in runVerification() [all …]
|
D | MagnitudeVerificationTest.java | 52 …private void runStats(float expected, float threshold, float[][] values, boolean pass, float magni… in runStats() argument 54 MagnitudeVerification verification = getVerification(expected, threshold, values); in runStats() 69 private static MagnitudeVerification getVerification(float expected, float threshold, in getVerification() argument 75 MagnitudeVerification verification = new MagnitudeVerification(expected, threshold); in getVerification()
|
D | OffsetVerificationTest.java | 98 private void runStats(float threshold, float[][] values, boolean pass) { in runStats() argument 100 OffsetVerification verification = getVerification(threshold, values); in runStats() 115 float threshold, float[] ... values) { in getVerification() argument 121 OffsetVerification verification = new OffsetVerification(threshold); in getVerification()
|
D | MagnitudeVerification.java | 57 public MagnitudeVerification(float expected, float threshold) { in MagnitudeVerification() argument 59 mThreshold = threshold; in MagnitudeVerification() 74 Float threshold = DEFAULTS.get(sensorType)[1]; in getDefault() local 75 return new MagnitudeVerification(expected, threshold); in getDefault()
|
D | StandardDeviationVerification.java | 59 public StandardDeviationVerification(float[] threshold) { in StandardDeviationVerification() argument 60 mThreshold = threshold; in StandardDeviationVerification()
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/util/ |
D | CompareUtils.java | 9 public static boolean verifyPixelWithThreshold(int color, int expectedColor, int threshold) { in verifyPixelWithThreshold() argument 13 return diff <= threshold; in verifyPixelWithThreshold() 21 public static boolean verifyPixelGrayScale(int color, int threshold) { in verifyPixelGrayScale() argument 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/ |
D | CompareUtils.java | 9 public static boolean verifyPixelWithThreshold(int color, int expectedColor, int threshold) { in verifyPixelWithThreshold() argument 13 return diff <= threshold; in verifyPixelWithThreshold() 21 public static boolean verifyPixelGrayScale(int color, int threshold) { in verifyPixelGrayScale() argument 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/sensor/src/android/hardware/cts/helpers/ |
D | SensorCalibratedUncalibratedVerifier.java | 45 float threshold) { in SensorCalibratedUncalibratedVerifier() argument 50 mThreshold = threshold; in SensorCalibratedUncalibratedVerifier() 74 float threshold) { in verifyMeasurements() argument 95 threshold); in verifyMeasurements() 111 float threshold) { in verifyCalibratedUncalibratedPair() argument 126 threshold); in verifyCalibratedUncalibratedPair() 127 Assert.assertEquals(message, calibrated, uncalibrated - bias, threshold); in verifyCalibratedUncalibratedPair()
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/ |
D | GnssTtffTests.java | 74 private void checkTtffColdWithWifiOn(long threshold) throws Exception { in checkTtffColdWithWifiOn() argument 79 TimeUnit.SECONDS.toMillis(threshold), softAssert); in checkTtffColdWithWifiOn() 89 private void checkTtffHotWithWifiOn(long threshold) throws Exception { in checkTtffHotWithWifiOn() argument 92 TimeUnit.SECONDS.toMillis(threshold), softAssert); in checkTtffHotWithWifiOn() 128 long threshold, SoftAssert softAssert) throws Exception { in checkTtffByThreshold() argument 155 softAssert.assertTrue("Test case: " + testName +", TTFF should be less than " + threshold in checkTtffByThreshold() 156 + " . In current test, TTFF value is: " + ttffTimeMillis, ttffTimeMillis < threshold); in checkTtffByThreshold()
|
D | GnssPseudorangeVerificationTest.java | 228 double threshold = PSEUDORANGE_THRESHOLD_IN_SEC; in validatePseudorange() local 233 threshold = PSEUDORANGE_THRESHOLD_BEIDOU_QZSS_IN_SEC; in validatePseudorange() 241 "0.0 <= deltaiSeconds <= " + String.valueOf(threshold), in validatePseudorange() 243 (deltaiSeconds >= 0.0 && deltaiSeconds <= threshold)); in validatePseudorange()
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
D | ComparisonTask.java | 91 BufferedImage generated, int threshold) { in checkNeighbors() argument 105 if (Math.abs(db) <= threshold && in checkNeighbors() 106 Math.abs(dg) <= threshold && in checkNeighbors() 107 Math.abs(dr) <= threshold) { in checkNeighbors() 130 int threshold) { in compare() argument 148 if (Math.abs(db) > threshold || in compare() 149 Math.abs(dg) > threshold || in compare() 150 Math.abs(dr) > threshold) { in compare() 152 if (!checkNeighbors(i, j, reference, generated, threshold)) { in compare()
|
/cts/suite/audio_quality/test_description/processing/ |
D | playback_sample.py | 45 threshold = inputData[2] 49 print "Expected Freq ", signalFrequency, "Actual Freq ", freq, "Threshold % ", threshold 51 if (diff < threshold):
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerMemoryInfoTest.java | 41 mMemory.threshold = THRESHOLD; in testWriteToParcel() 50 assertEquals(THRESHOLD, values.threshold); in testWriteToParcel() 66 mMemory.threshold = THRESHOLD; in testReadFromParcel() 75 assertEquals(THRESHOLD, result.threshold); in testReadFromParcel()
|
/cts/apps/CameraITS/tests/scene1_1/ |
D | test_locked_burst.py | 108 threshold = SPREAD_THRESH 110 threshold = SPREAD_THRESH_MANUAL_SENSOR 112 plane, spread, threshold) 113 assert spread < threshold, e_msg
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | ColorCountVerifier.java | 26 public ColorCountVerifier(int color, int count, int threshold) { in ColorCountVerifier() argument 29 mThreshold = threshold; in ColorCountVerifier()
|
D | BlurPixelVerifier.java | 60 float threshold = .05f; in verify() local 67 double dstPercentage = pixelDistance / maxPixelDistance + threshold; in verify()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/systemupdate/ |
D | InstallUpdateTest.java | 192 private void setNonChargingBatteryThreshold(int threshold) { in setNonChargingBatteryThreshold() argument 195 + threshold); in setNonChargingBatteryThreshold() 202 private void setChargingBatteryThreshold(int threshold) { in setChargingBatteryThreshold() argument 205 + threshold); in setChargingBatteryThreshold()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | InfrastructureTests.java | 57 final float threshold = 0.1f; in testRenderSpecIsolation() 58 return !(new MSSIMComparer(threshold)).verifySame(ideal, given, offset, stride, in testRenderSpecIsolation()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | WavAnalyzer.java | 19 private double threshold; // threshold of passing, drop off compared to 2000 kHz field in WavAnalyzer 114 threshold = dB[indexOf2000Hz] + Common.PASSING_THRESHOLD_DB; in responsePassesHifiTest() 119 if (Util.mean(responseInRange) < threshold) { in responsePassesHifiTest() 249 return threshold; in getThreshold()
|
/cts/apps/CtsVerifier/jni/audio_loopback/analyzer/ |
D | GlitchAnalyzer.h | 68 static const double threshold = 1.0e-14; in getSignalToNoiseDB() local 69 if (mMeanSquareSignal < threshold || mMeanSquareNoise < threshold) { in getSignalToNoiseDB()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/ |
D | MSSIMComparer.java | 39 public MSSIMComparer(double threshold) { in MSSIMComparer() argument 40 mThreshold = threshold; in MSSIMComparer()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PixelCopyTest.java | 896 int bottomLeft, int bottomRight, int threshold) { in assertBitmapQuadColor() argument 900 getPixelFloatPos(bitmap, .25f, .25f), threshold)); in assertBitmapQuadColor() 902 getPixelFloatPos(bitmap, .75f, .25f), threshold)); in assertBitmapQuadColor() 904 getPixelFloatPos(bitmap, .25f, .75f), threshold)); in assertBitmapQuadColor() 906 getPixelFloatPos(bitmap, .75f, .75f), threshold)); in assertBitmapQuadColor() 911 getPixelFloatPos(bitmap, below, below), threshold)); in assertBitmapQuadColor() 913 getPixelFloatPos(bitmap, above, below), threshold)); in assertBitmapQuadColor() 915 getPixelFloatPos(bitmap, below, above), threshold)); in assertBitmapQuadColor() 917 getPixelFloatPos(bitmap, above, above), threshold)); in assertBitmapQuadColor() 944 private boolean pixelsAreSame(int ideal, int given, int threshold) { in pixelsAreSame() argument [all …]
|
/cts/tests/tests/display/src/android/display/cts/ |
D | VirtualDisplayTest.java | 542 final int threshold = width * height / 4; in scanImage() local 543 if (bluePixels > threshold) { in scanImage() 547 if (greenPixels > threshold) { in scanImage() 551 if (blackPixels > threshold) { in scanImage()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | SignalThresholdInfoTest.java | 172 for (int threshold : invalidThresholds) { in testConstructor_thresholdsOutOfRange() 174 signalMeasurementType, new int[]{threshold}); in testConstructor_thresholdsOutOfRange()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | AppHibernationUtils.kt | 141 inline fun <T> withUnusedThresholdMs(threshold: Long, action: () -> T): T { in withUnusedThresholdMs() 144 threshold.toString(), action) in withUnusedThresholdMs()
|