/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | VulkanPreTransformTest.java | 128 int diff = 0; in validatePixelValuesAfterRotation() local 130 diff += pixelDiff(bitmap.getPixel(0, 0), 0, 255, 0); in validatePixelValuesAfterRotation() 131 diff += pixelDiff(bitmap.getPixel(width - 1, 0), 255, 255, 0); in validatePixelValuesAfterRotation() 132 diff += pixelDiff(bitmap.getPixel(0, height - 1), 255, 0, 0); in validatePixelValuesAfterRotation() 133 diff += pixelDiff(bitmap.getPixel(width - 1, height - 1), 0, 0, 255); in validatePixelValuesAfterRotation() 135 diff += pixelDiff(bitmap.getPixel(0, 0), 255, 0, 0); in validatePixelValuesAfterRotation() 136 diff += pixelDiff(bitmap.getPixel(width - 1, 0), 0, 255, 0); in validatePixelValuesAfterRotation() 137 diff += pixelDiff(bitmap.getPixel(0, height - 1), 0, 0, 255); in validatePixelValuesAfterRotation() 138 diff += pixelDiff(bitmap.getPixel(width - 1, height - 1), 255, 255, 0); in validatePixelValuesAfterRotation() 141 return diff < 10; in validatePixelValuesAfterRotation()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | FeatureGroupInfoTest.java | 134 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/camera/src/android/hardware/camera2/cts/rs/ |
D | BitmapUtils.java | 80 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/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | LightNavigationBarVerifier.java | 161 diffs -> Arrays.stream(diffs).allMatch(diff -> diff == 0))) { in verify() 167 final OptionalDouble average = Arrays.stream(diffs).filter(diff -> diff != 0).average(); in verify() 179 final OptionalDouble average = Arrays.stream(diffs).filter(diff -> diff != 0).average(); in verify() 204 diff -> histogram.put(diff, histogram.get(diff, 0) + 1)); in dumpDiffStreams()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | HasCoverage.java | 31 int diff = Integer.compare(getCoveragePercentageSegment(lhsPct), in compare() local 33 return diff != 0 ? diff : in compare()
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
D | ComparisonTask.java | 61 final File diff = File.createTempFile("diff_" + mExpected.getName(), ".png"); in call() local 62 createDiff(expected, actual, diff); in call() 63 return new Pair<>(mName, diff); in call() 149 final BufferedImage diff = new BufferedImage( in createDiff() local 174 diff.setRGB(x, j, colorExpected); in createDiff() 176 diff.setRGB(x, j, colorActual); in createDiff() 178 diff.setRGB(x, j, colorDiff); in createDiff() 182 ImageIO.write(diff, "png", out); in createDiff()
|
/cts/apps/CtsVerifier/jni/audio_loopback/audio_utils/ |
D | fifo.c | 69 int32_t diff = rear - front; in audio_utils_fifo_diff() local 75 diff -= fifo->mFudgeFactor; in audio_utils_fifo_diff() 79 ALOG_ASSERT(0 <= diff && diff <= (int32_t) fifo->mFrameCount); in audio_utils_fifo_diff() 80 return (size_t) diff; in audio_utils_fifo_diff()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | WorkSourceTest.java | 405 … private void doTestRemoveUids(int[] lhs, int[] rhs, int[] result, boolean diff) throws Exception { in doTestRemoveUids() argument 409 if (diffres != diff) { in doTestRemoveUids() 412 sb.append(diff); in doTestRemoveUids() 425 String[] resultnames, boolean diff) throws Exception { in doTestRemoveNames() argument 432 if (diffres != diff) { in doTestRemoveNames() 435 sb.append(diff); in doTestRemoveNames() 448 int[] result, String[] resultnames, boolean diff) throws Exception { in doTestRemoveUidsNames() argument 452 if (diffres != diff) { in doTestRemoveUidsNames() 455 sb.append(diff); in doTestRemoveUidsNames() 467 private void doTestRemove(int[] lhs, int[] rhs, int[] result, boolean diff) throws Exception { in doTestRemove() argument [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
D | CompareUtils.java | 10 int diff = Math.abs(Color.red(color) - Color.red(expectedColor)) in verifyPixelWithThreshold() local 13 return diff <= threshold; in verifyPixelWithThreshold()
|
/cts/suite/audio_quality/test_description/processing/ |
D | playback_sample.py | 50 diff = abs(freq - signalFrequency) 51 if (diff < threshold):
|
/cts/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/ |
D | SustainedPerformanceHostTest.java | 149 double diff = (max - min)*100/max; in analyzeResults() local 153 appResultsWithMode.add(2, diff); in analyzeResults() 157 appResultsWithoutMode.add(2, diff); in analyzeResults() 216 double diff = (dhryMax - dhryMin)*100/dhryMax; in testShader() local 219 dhrystoneResultsWithMode.add(2, diff); in testShader()
|
/cts/apps/CameraITS/tests/scene1/ |
D | test_crop_regions.py | 93 diff = numpy.fabs(tile_full - tile_crop).mean() 94 if min_diff is None or diff < min_diff: 95 min_diff = diff
|
D | test_dng_noise_model.py | 126 for j, diff in enumerate(diffs): 128 assert diff <= thresh
|
D | test_ev_compensation_basic.py | 113 luma_diffs = np.diff(lumas)
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | sample.rs | 19 float4 diff = fabs(expected - value); 20 if (diff.x > allowedDelta || diff.y > allowedDelta || 21 diff.z > allowedDelta || diff.w > allowedDelta) {
|
/cts/apps/CameraITS/tests/sensor_fusion/ |
D | test_multi_camera_frame_sync.py | 64 diff = abs(angle_2 - angle_1) 68 diff, ANGULAR_DIFF_THRESHOLD) 69 assert diff < ANGULAR_DIFF_THRESHOLD, emsg
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
D | LocationVerifier.java | 150 double diff = d - mean; in computeStdev() local 151 accumulator += diff * diff; in computeStdev()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | FractionTest.java | 80 float diff = Math.abs(expected - res); in tryFraction() local 87 + Integer.toHexString(resid) + " " + mValue, diff > prec); in tryFraction()
|
D | ConfigurationTest.java | 181 assertEquals(expectedFlags, c1.diff(c2)); in doConfigCompare() 184 assertEquals(0, tmpc1.diff(c2)); in doConfigCompare() 611 int diff = config1.diff(config2); in testDiff_localeFixUp() local 612 assertEquals(0, diff); in testDiff_localeFixUp()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckAnalyzer.java | 637 double diff = 0.0; in calcMaxErr() local 646 diff = ra.get(i).roll - rb.get(i).roll; // they always opposite of each other.. in calcMaxErr() 649 diff = ra.get(i).pitch - rb.get(i).pitch; in calcMaxErr() 652 diff = Math.abs(((4*Math.PI + ra.get(i).yaw - rb.get(i).yaw)%(2*Math.PI)) in calcMaxErr() 656 diff = Math.abs(diff); in calcMaxErr() 657 if (diff>max) { in calcMaxErr() 658 max = diff; in calcMaxErr() 685 double diff = 0.0; in calcSqrErr() local 695 diff = ra.get(i).roll - rb.get(i).roll; in calcSqrErr() 698 diff = ra.get(i).pitch - rb.get(i).pitch; in calcSqrErr() [all …]
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | TestUtils.java | 292 int diff = actualCount - ((expectedCount != null) ? expectedCount : 0); in assertContentsInAnyOrder() local 293 if (diff > 0) { in assertContentsInAnyOrder() 294 extraneousFreq.put(actualEntry.getKey(), diff); in assertContentsInAnyOrder() local 302 int diff = expectedCount - ((actualCount != null) ? actualCount : 0); in assertContentsInAnyOrder() local 303 if (diff > 0) { in assertContentsInAnyOrder() 304 missingFreq.put(expectedEntry.getKey(), diff); in assertContentsInAnyOrder() local
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | GestureUtils.java | 125 public static PointF diff(PointF a, PointF b) { in diff() method in GestureUtils
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | BurstCaptureRawTest.java | 410 double diff = deltaList.get(i) - average; in execute() local 411 stddev += diff * diff; in execute()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaSyncTest.java | 444 final double diff = state.mMediaDurationUs - state.mClockDurationUs * playbackRate ; in playAV() local 449 + ", diff " + diff in playAV() 453 if (Math.abs(diff) <= tolerance) { in playAV()
|
/cts/hostsidetests/jvmti/run-tests/ |
D | Android.mk | 245 GEN_EXTRA_DIFF := $(wildcard $(LOCAL_PATH)/src/$(1)*/expected_jack.diff) 247 GEN_EXTRA_DIFF := $(wildcard $(LOCAL_PATH)/src/$(1)*/expected_d8.diff)
|