Home
last modified time | relevance | path

Searched refs:threshold (Results 1 – 25 of 52) sorted by relevance

123

/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DStandardDeviationVerificationTest.java49 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 …]
DMeanLargerThanVerification.java74 float threshold; in getDefault() local
76 threshold = environment.getSensor().getResolution() / 2; in getDefault()
77 Log.d(TAG, "Setting threshold to " + threshold + " based on reported resolution"); in getDefault()
79 threshold = DEFAULT_GYRO_UNCAL_THRESHOLD; in getDefault()
83 float[] thresholds = new float[] {threshold, threshold, threshold}; in getDefault()
DMagnitudeVerificationTest.java52 …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()
DOffsetVerificationTest.java98 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()
DMagnitudeVerification.java57 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()
/cts/tests/app/src/android/app/cts/
DActivityManagerMemoryInfoTest.java42 final long threshold = 500L; in testWriteToParcel() local
43 mMemory.threshold = threshold; in testWriteToParcel()
53 assertEquals(threshold, values.threshold); in testWriteToParcel()
70 final long threshold = 500L; in testReadFromParcel() local
71 mMemory.threshold = threshold; in testReadFromParcel()
81 assertEquals(threshold, result.threshold); in testReadFromParcel()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/util/
DCompareUtils.java9 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/
DCompareUtils.java9 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/
DSensorCalibratedUncalibratedVerifier.java45 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/
DGnssTtffTests.java81 private void checkTtffColdWithWifiOn(long threshold) throws Exception { in checkTtffColdWithWifiOn() argument
86 TimeUnit.SECONDS.toMillis(threshold), softAssert); in checkTtffColdWithWifiOn()
96 private void checkTtffHotWithWifiOn(long threshold) throws Exception { in checkTtffHotWithWifiOn() argument
99 TimeUnit.SECONDS.toMillis(threshold), softAssert); in checkTtffHotWithWifiOn()
135 long threshold, SoftAssert softAssert) throws Exception { in checkTtffByThreshold() argument
163 softAssert.assertTrue("Test case: " + testName +", TTFF should be less than " + threshold in checkTtffByThreshold()
164 + " . In current test, TTFF value is: " + ttffTimeMillis, ttffTimeMillis < threshold); in checkTtffByThreshold()
DGnssPseudorangeVerificationTest.java231 double threshold = PSEUDORANGE_THRESHOLD_IN_SEC; in validatePseudorange() local
236 threshold = PSEUDORANGE_THRESHOLD_BEIDOU_QZSS_IN_SEC; in validatePseudorange()
244 "0.0 <= deltaiSeconds <= " + String.valueOf(threshold), in validatePseudorange()
246 (deltaiSeconds >= 0.0 && deltaiSeconds <= threshold)); in validatePseudorange()
/cts/hostsidetests/theme/src/android/theme/cts/
DComparisonTask.java91 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/hostsidetests/mediapc/videoencodingquality/bdrate/src/main/java/com/android/media/videoquality/bdrate/
DVeqResultCheckFailureException.java29 public VeqResultCheckFailureException(String message, double threshold, double bdResult) { in VeqResultCheckFailureException() argument
31 mThreshold = threshold; in VeqResultCheckFailureException()
DBdRateMain.java170 double threshold) { in checkVeq() argument
181 if (bdRateResult > threshold) { in checkVeq()
183 "BD-RATE is higher than threshold.", threshold, bdRateResult); in checkVeq()
199 if (percentageQualityChange * -1 > threshold) { in checkVeq()
201 "BD-QUALITY is higher than threshold.", threshold, bdQualityResult); in checkVeq()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DColorCountVerifier.java26 public ColorCountVerifier(int color, int count, int threshold) { in ColorCountVerifier() argument
29 mThreshold = threshold; in ColorCountVerifier()
DBlurPixelVerifier.java60 float threshold = .05f; in verify() local
67 double dstPercentage = pixelDistance / maxPixelDistance + threshold; in verify()
/cts/apps/CameraITS/tests/scene1_1/
Dtest_locked_burst.py108 threshold = _SPREAD_THRESH
110 threshold = _SPREAD_THRESH_MANUAL_SENSOR
111 if spread >= threshold:
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DTestMmTelFeature.java151 public void setMediaThreshold(int sessionType, MediaThreshold threshold) { in setMediaThreshold() argument
152 Log.d(TAG, "setMediaThreshold" + threshold); in setMediaThreshold()
153 int[] packetLossThreshold = threshold.getThresholdsRtpPacketLossRate(); in setMediaThreshold()
154 int[] jitterThreshold = threshold.getThresholdsRtpJitterMillis(); in setMediaThreshold()
155 long[] inactivityTimeThreshold = threshold.getThresholdsRtpInactivityTimeMillis(); in setMediaThreshold()
160 mSetMediaThreshold = threshold; in setMediaThreshold()
163 Log.d(TAG, "setMediaThreshold, this is not config update for test" + threshold); in setMediaThreshold()
/cts/tests/tests/graphics/src/android/graphics/cts/
DGainmapTest.java336 final int threshold = 20; in testDecodeGainmapBitmapRegionDecoderWithInSampleSize() local
363 assertBitmapQuadColor(region, Color.RED, Color.GREEN, Color.BLUE, Color.BLACK, threshold); in testDecodeGainmapBitmapRegionDecoderWithInSampleSize()
364 assertBitmapQuadColor(gainmap, Color.RED, Color.GREEN, Color.BLUE, Color.BLACK, threshold); in testDecodeGainmapBitmapRegionDecoderWithInSampleSize()
571 int bottomLeft, int bottomRight, int threshold) { in assertBitmapQuadColor() argument
577 getX.apply(.25f), getY.apply(.25f), threshold); in assertBitmapQuadColor()
579 getX.apply(.75f), getY.apply(.25f), threshold); in assertBitmapQuadColor()
581 getX.apply(.25f), getY.apply(.75f), threshold); in assertBitmapQuadColor()
583 getX.apply(.75f), getY.apply(.75f), threshold); in assertBitmapQuadColor()
588 getX.apply(below), getY.apply(below), threshold); in assertBitmapQuadColor()
590 getX.apply(above), getY.apply(below), threshold); in assertBitmapQuadColor()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DInfrastructureTests.java57 final float threshold = 0.1f; in testRenderSpecIsolation()
58 return !(new MSSIMComparer(threshold)).verifySame(ideal, given, offset, stride, in testRenderSpecIsolation()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/systemupdate/
DInstallUpdateTest.java217 private void setNonChargingBatteryThreshold(int threshold) { in setNonChargingBatteryThreshold() argument
220 + threshold); in setNonChargingBatteryThreshold()
227 private void setChargingBatteryThreshold(int threshold) { in setChargingBatteryThreshold() argument
230 + threshold); in setChargingBatteryThreshold()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DWavAnalyzer.java21 private double threshold; // threshold of passing, drop off compared to 2000 kHz field in WavAnalyzer
116 threshold = dB[indexOf2000Hz] + Common.PASSING_THRESHOLD_DB; in responsePassesHifiTest()
121 if (Util.mean(responseInRange) < threshold) { in responsePassesHifiTest()
251 return threshold; in getThreshold()
/cts/apps/CtsVerifier/jni/audio_loopback/analyzer/
DGlitchAnalyzer.h68 static const double threshold = 1.0e-14; in getSignalToNoiseDB() local
69 if (mMeanSquareSignal < threshold || mMeanSquareNoise < threshold) { in getSignalToNoiseDB()
/cts/tests/media/src/android/mediav2/cts/
DDecoderPushBlankBufferOnStopTest.java101 int threshold = 0; in isBlankFrame() local
106 if (pixelValue > threshold) { in isBlankFrame()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DMSSIMComparer.java39 public MSSIMComparer(double threshold) { in MSSIMComparer() argument
40 mThreshold = threshold; in MSSIMComparer()

123