Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 25 of 30) sorted by relevance

12

/cts/tests/tests/content/src/android/content/pm/cts/
DFeatureGroupInfoTest.java134 int diff = sFeatureInfoComparator.compare(a[i], b[i]); in compareFeatureInfoArrays() local
135 if (diff != 0) { in compareFeatureInfoArrays()
136 return diff; in compareFeatureInfoArrays()
158 final int diff;
160 diff = -1;
162 diff = 1;
164 diff = Integer.compare(o1.reqGlEsVersion, o2.reqGlEsVersion);
166 diff = o1.name.compareTo(o2.name);
169 if (diff == 0) {
172 return diff;
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DExactComparer.rs19 uchar4 diff = idealPixel - givenPixel;
20 int totalDiff = diff.x + diff.y + diff.z;
DThresholdDifferenceComparer.rs20 float diff = l1 - l2;
21 if (fabs(diff) >= THRESHOLD) {
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/rs/
DBitmapUtils.java80 double diff = 0; in calcDifferenceMetric() local
85 diff += Math.abs(Color.red(aPix) - Color.red(bPix)); // red in calcDifferenceMetric()
86 diff += Math.abs(Color.green(aPix) - Color.green(bPix)); // green in calcDifferenceMetric()
87 diff += Math.abs(Color.blue(aPix) - Color.blue(bPix)); // blue in calcDifferenceMetric()
89 diff /= (aPixels.length * 3); in calcDifferenceMetric()
90 return diff; in calcDifferenceMetric()
/cts/hostsidetests/theme/src/android/theme/cts/
DComparisonTask.java59 final File diff = File.createTempFile("diff_" + mExpected.getName(), ".png"); in call() local
60 createDiff(expected, actual, diff); in call()
61 Log.logAndDisplay(LogLevel.INFO, TAG, "Diff created: " + diff.getPath()); in call()
118 final BufferedImage diff = new BufferedImage( in createDiff() local
143 diff.setRGB(x, j, colorExpected); in createDiff()
145 diff.setRGB(x, j, colorActual); in createDiff()
147 diff.setRGB(x, j, colorDiff); in createDiff()
151 ImageIO.write(diff, "png", out); in createDiff()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DHasCoverage.java31 int diff = Integer.compare(getCoveragePercentageSegment(lhsPct), in compare() local
33 return diff != 0 ? diff : in compare()
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DCompareUtils.java10 int diff = Math.abs(Color.red(color) - Color.red(expectedColor)) in verifyPixelWithThreshold() local
13 return diff <= threshold; in verifyPixelWithThreshold()
/cts/tests/tests/os/jni/seccomp-tests/
DREADME.android13 The diff of modifications can be found in local-modifications-android.diff.
Dlocal-modifications-android.diff1 diff --git a/tests/seccomp_bpf_tests.c b/tests/seccomp_bpf_tests.c
25 diff --git a/tests/test_harness.h b/tests/test_harness.h
/cts/suite/audio_quality/test_description/processing/
Dplayback_sample.py50 diff = abs(freq - signalFrequency)
51 if (diff < threshold):
/cts/tests/tests/os/src/android/os/cts/
DWorkSourceTest.java411 … private void doTestRemoveUids(int[] lhs, int[] rhs, int[] result, boolean diff) throws Exception { in doTestRemoveUids() argument
415 if (diffres != diff) { in doTestRemoveUids()
418 sb.append(diff); in doTestRemoveUids()
431 String[] resultnames, boolean diff) throws Exception { in doTestRemoveNames() argument
438 if (diffres != diff) { in doTestRemoveNames()
441 sb.append(diff); in doTestRemoveNames()
454 int[] result, String[] resultnames, boolean diff) throws Exception { in doTestRemoveUidsNames() argument
458 if (diffres != diff) { in doTestRemoveUidsNames()
461 sb.append(diff); in doTestRemoveUidsNames()
473 private void doTestRemove(int[] lhs, int[] rhs, int[] result, boolean diff) throws Exception { in doTestRemove() argument
[all …]
/cts/apps/CameraITS/tests/scene1/
Dtest_crop_regions.py93 diff = numpy.fabs(tile_full - tile_crop).mean()
94 if min_diff is None or diff < min_diff:
95 min_diff = diff
Dtest_dng_noise_model.py108 for i,diff in enumerate(diffs):
110 assert(diff <= thresh)
Dtest_ev_compensation_basic.py63 luma_diffs = numpy.diff(lumas)
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dsample.rs19 float4 diff = fabs(expected - value);
20 if (diff.x > allowedDelta || diff.y > allowedDelta ||
21 diff.z > allowedDelta || diff.w > allowedDelta) {
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DLocationVerifier.java150 double diff = d - mean; in computeStdev() local
151 accumulator += diff * diff; in computeStdev()
/cts/tests/tests/content/src/android/content/res/cts/
DFractionTest.java80 float diff = Math.abs(expected - res); in tryFraction() local
87 + Integer.toHexString(resid) + " " + mValue, diff > prec); in tryFraction()
DConfigurationTest.java144 assertEquals(expectedFlags, c1.diff(c2)); in doConfigCompare()
147 assertEquals(0, tmpc1.diff(c2)); in doConfigCompare()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java630 double diff = 0.0; in calcMaxErr() local
639 diff = ra.get(i).roll - rb.get(i).roll; // they always opposite of each other.. in calcMaxErr()
642 diff = ra.get(i).pitch - rb.get(i).pitch; in calcMaxErr()
645 diff = Math.abs(((4*Math.PI + ra.get(i).yaw - rb.get(i).yaw)%(2*Math.PI)) in calcMaxErr()
649 diff = Math.abs(diff); in calcMaxErr()
650 if (diff>max) { in calcMaxErr()
651 max = diff; in calcMaxErr()
678 double diff = 0.0; in calcSqrErr() local
688 diff = ra.get(i).roll - rb.get(i).roll; in calcSqrErr()
691 diff = ra.get(i).pitch - rb.get(i).pitch; in calcSqrErr()
[all …]
/cts/tools/signature-tools/templates/
DCommon_meta.st2 <meta name="keywords" content="API difference, difference between two APIs, API diff">
/cts/tests/tests/keystore/src/android/keystore/cts/
DTestUtils.java273 int diff = actualCount - ((expectedCount != null) ? expectedCount : 0); in assertContentsInAnyOrder() local
274 if (diff > 0) { in assertContentsInAnyOrder()
275 extraneousFreq.put(actualEntry.getKey(), diff); in assertContentsInAnyOrder() local
283 int diff = expectedCount - ((actualCount != null) ? actualCount : 0); in assertContentsInAnyOrder() local
284 if (diff > 0) { in assertContentsInAnyOrder()
285 missingFreq.put(expectedEntry.getKey(), diff); in assertContentsInAnyOrder() local
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java216 long diff = before.getFirstTimeStamp() - after.getFirstTimeStamp(); in ignore_testStatsAreShiftedInTimeWhenSystemTimeChanges() local
217 assertLessThan(Math.abs(diff - (DAY / 2)), TIME_DIFF_THRESHOLD); in ignore_testStatsAreShiftedInTimeWhenSystemTimeChanges()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DBurstCaptureRawTest.java408 double diff = deltaList.get(i) - average; in execute() local
409 stddev += diff * diff; in execute()
/cts/suite/cts/deviceTests/videoperf/src/com/android/cts/videoperf/
DVideoEncoderDecoderTest.java671 long diff = System.nanoTime() - lastOutputTimeNs; in runEncoder() local
672 mEncoderFrameTimeDiff[mCurrentTestRound][pos] = diff; in runEncoder()
980 long diff = System.nanoTime() - lastOutputTimeNs; in runDecoder() local
981 mDecoderFrameTimeDiff[mCurrentTestRound][pos] = diff; in runDecoder()
/cts/tests/tests/media/src/android/media/cts/
DVp8CodecTestBase.java1891 int diff = ((int)data0[i] & 0xff) - ((int)data1[i] & 0xff); in computePSNR() local
1892 squareError += diff * diff; in computePSNR()

12