/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | VulkanPreTransformTest.java | 176 int diff = 0; in validatePixelValuesAfterRotation() local 178 diff += pixelDiff(bitmap.getPixel(0, 0), 255, 0, 0); in validatePixelValuesAfterRotation() 179 diff += pixelDiff(bitmap.getPixel(width - 1, 0), 0, 255, 0); in validatePixelValuesAfterRotation() 180 diff += pixelDiff(bitmap.getPixel(0, height - 1), 0, 0, 255); in validatePixelValuesAfterRotation() 181 diff += pixelDiff(bitmap.getPixel(width - 1, height - 1), 255, 255, 0); in validatePixelValuesAfterRotation() 183 diff += pixelDiff(bitmap.getPixel(0, 0), 0, 255, 0); in validatePixelValuesAfterRotation() 184 diff += pixelDiff(bitmap.getPixel(width - 1, 0), 255, 255, 0); in validatePixelValuesAfterRotation() 185 diff += pixelDiff(bitmap.getPixel(0, height - 1), 255, 0, 0); in validatePixelValuesAfterRotation() 186 diff += pixelDiff(bitmap.getPixel(width - 1, height - 1), 0, 0, 255); in validatePixelValuesAfterRotation() 188 diff += pixelDiff(bitmap.getPixel(0, 0), 255, 255, 0); in validatePixelValuesAfterRotation() [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | FeatureGroupInfoTest.java | 136 int diff = sFeatureInfoComparator.compare(a[i], b[i]); in compareFeatureInfoArrays() local 137 if (diff != 0) { in compareFeatureInfoArrays() 138 return diff; in compareFeatureInfoArrays() 160 final int diff; 162 diff = -1; 164 diff = 1; 166 diff = Integer.compare(o1.reqGlEsVersion, o2.reqGlEsVersion); 168 diff = o1.name.compareTo(o2.name); 171 if (diff == 0) { 174 return diff;
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | LightNavigationBarVerifier.java | 162 diffs -> Arrays.stream(diffs).allMatch(diff -> diff == 0))) { in verify() 168 final OptionalDouble average = Arrays.stream(diffs).filter(diff -> diff != 0).average(); in verify() 180 final OptionalDouble average = Arrays.stream(diffs).filter(diff -> diff != 0).average(); in verify() 205 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/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | BitmapUtils.java | 89 double diff = 0; in compareBitmap() local 126 diff += Math.abs(aR - bR); // red in compareBitmap() 127 diff += Math.abs(aG - bG); // green in compareBitmap() 128 diff += Math.abs(aB - bB); // blue in compareBitmap() 130 diff /= (aPixels.length * 3); in compareBitmap() 132 result.mDiff = diff; in compareBitmap()
|
/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() 172 final BufferedImage diff = new BufferedImage( in createDiff() local 197 diff.setRGB(x, j, colorExpected); in createDiff() 199 diff.setRGB(x, j, colorActual); in createDiff() 201 diff.setRGB(x, j, colorDiff); in createDiff() 205 ImageIO.write(diff, "png", out); in createDiff()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | WorkSourceTest.java | 367 … private void doTestRemoveUids(int[] lhs, int[] rhs, int[] result, boolean diff) throws Exception { in doTestRemoveUids() argument 371 if (diffres != diff) { in doTestRemoveUids() 374 sb.append(diff); in doTestRemoveUids() 387 String[] resultnames, boolean diff) throws Exception { in doTestRemoveNames() argument 394 if (diffres != diff) { in doTestRemoveNames() 397 sb.append(diff); in doTestRemoveNames() 410 int[] result, String[] resultnames, boolean diff) throws Exception { in doTestRemoveUidsNames() argument 414 if (diffres != diff) { in doTestRemoveUidsNames() 417 sb.append(diff); in doTestRemoveUidsNames() 429 private void doTestRemove(int[] lhs, int[] rhs, int[] result, boolean diff) throws Exception { in doTestRemove() argument [all …]
|
/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/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/suite/audio_quality/test_description/processing/ |
D | playback_sample.py | 50 diff = abs(freq - signalFrequency) 51 if (diff < threshold):
|
/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/tests/tests/uirendering27/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/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/scene1/ |
D | test_crop_regions.py | 95 diff = numpy.fabs(tile_full - tile_crop).mean() 96 if min_diff is None or diff < min_diff: 97 min_diff = diff
|
D | test_dng_noise_model.py | 127 for j, diff in enumerate(diffs): 129 assert diff <= thresh, 'diff: %.5f, thresh: %.4f' % (diff, thresh)
|
D | test_ev_compensation_basic.py | 99 min_luma_diffs = min(np.diff(lumas))
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | ColorUtils.java | 110 float diff = Math.abs(e - o); in verifyChannel() local 111 if (diff <= tolerance) { in verifyChannel() 115 + ">, difference: <" + diff + ">"; in verifyChannel()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | ColorUtils.java | 110 float diff = Math.abs(e - o); in verifyChannel() local 111 if (diff <= tolerance) { in verifyChannel() 115 + ">, difference: <" + diff + ">"; in verifyChannel()
|
/cts/tests/tests/location/src/android/location/cts/ |
D | GnssLocationUpdateIntervalTest.java | 194 double diff = d - mean; in computeStdev() local 195 accumulator += diff * diff; in computeStdev()
|
/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/sensors/ |
D | RVCVXCheckAnalyzer.java | 638 double diff = 0.0; in calcMaxErr() local 647 diff = ra.get(i).roll - rb.get(i).roll; // they always opposite of each other.. in calcMaxErr() 650 diff = ra.get(i).pitch - rb.get(i).pitch; in calcMaxErr() 653 diff = Math.abs(((4*Math.PI + ra.get(i).yaw - rb.get(i).yaw)%(2*Math.PI)) in calcMaxErr() 657 diff = Math.abs(diff); in calcMaxErr() 658 if (diff>max) { in calcMaxErr() 659 max = diff; in calcMaxErr() 686 double diff = 0.0; in calcSqrErr() local 696 diff = ra.get(i).roll - rb.get(i).roll; in calcSqrErr() 699 diff = ra.get(i).pitch - rb.get(i).pitch; in calcSqrErr() [all …]
|
/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/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/camera/src/android/hardware/camera2/cts/ |
D | BurstCaptureRawTest.java | 414 double diff = deltaList.get(i) - average; in execute() local 415 stddev += diff * diff; in execute()
|