/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | VulkanPreTransformTest.java | 170 int diff = 0; in validatePixelValuesAfterRotation() local 172 diff += pixelDiff(bitmap.getPixel(0, 0), 255, 0, 0); in validatePixelValuesAfterRotation() 173 diff += pixelDiff(bitmap.getPixel(width - 1, 0), 0, 255, 0); in validatePixelValuesAfterRotation() 174 diff += pixelDiff(bitmap.getPixel(0, height - 1), 0, 0, 255); in validatePixelValuesAfterRotation() 175 diff += pixelDiff(bitmap.getPixel(width - 1, height - 1), 255, 255, 0); in validatePixelValuesAfterRotation() 177 diff += pixelDiff(bitmap.getPixel(0, 0), 0, 255, 0); in validatePixelValuesAfterRotation() 178 diff += pixelDiff(bitmap.getPixel(width - 1, 0), 255, 255, 0); in validatePixelValuesAfterRotation() 179 diff += pixelDiff(bitmap.getPixel(0, height - 1), 255, 0, 0); in validatePixelValuesAfterRotation() 180 diff += pixelDiff(bitmap.getPixel(width - 1, height - 1), 0, 0, 255); in validatePixelValuesAfterRotation() 182 diff += pixelDiff(bitmap.getPixel(0, 0), 255, 255, 0); in validatePixelValuesAfterRotation() [all …]
|
/cts/hostsidetests/car/src/android/car/cts/powerpolicy/ |
D | PowerPolicyTestAnalyzer.java | 104 TestResultTable diff; in getDiff() local 116 diff = new TestResultTable(); in getDiff() 123 diff.add(longResult.get(idx)); in getDiff() 126 diff = result2; in getDiff() 128 diff = result1; in getDiff() 130 return diff; in getDiff() 134 TestResultTable diff; in getTailDiff() local 145 diff = new TestResultTable(); in getTailDiff() 147 diff.add(longResult.get(idx)); in getTailDiff() 150 diff = result2; in getTailDiff() [all …]
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | HasCoverage.java | 31 int diff = Integer.compare(getCoveragePercentageSegment(lhsPct), in compare() local 33 if (diff != 0) { in compare() 34 return diff; in compare() 36 diff = Integer.compare(otherEntity.getMemberSize(), entity.getMemberSize()); in compare() 37 if (diff != 0) { in compare() 38 return diff; in compare()
|
/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/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/analyzer/ |
D | GlitchAnalyzer.h | 221 double diff = predicted - sample; in processInputFrame() local 222 double absDiff = fabs(diff); in processInputFrame() 230 mSumSquareNoise += diff * diff; in processInputFrame() 266 double diff = predicted - sample; in processInputFrame() local 267 double absDiff = fabs(diff); in processInputFrame()
|
/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/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/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/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | BubbleActivity.java | 113 int diff = bottomInset - bubbleWindowMetrics.getBounds().bottom; in checkHeight() local 114 if (diff > maxHeightBuffer) { in checkHeight() 116 + "isn't close enough to the bottom inset: " + diff); in checkHeight()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | sample.rscript | 19 float4 diff = fabs(expected - value); 20 if (diff.x > allowedDelta || diff.y > allowedDelta || 21 diff.z > allowedDelta || diff.w > allowedDelta) {
|
/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/apps/CameraITS/tests/scene1_1/ |
D | test_crop_regions.py | 123 diff = np.fabs(tile_full - tile_crop).mean() 124 if min_diff is None or diff < min_diff: 125 min_diff = diff
|
D | test_dng_noise_model.py | 168 for j, diff in enumerate(var_diffs): 170 assert diff <= thresh, 'var diff: %.5f, thresh: %.4f' % (diff, thresh)
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckAnalyzer.java | 655 double diff = 0.0; in calcMaxErr() local 664 diff = ra.get(i).roll - rb.get(i).roll; // they always opposite of each other.. in calcMaxErr() 667 diff = ra.get(i).pitch - rb.get(i).pitch; in calcMaxErr() 670 diff = Math.abs(((4*Math.PI + ra.get(i).yaw - rb.get(i).yaw)%(2*Math.PI)) in calcMaxErr() 674 diff = Math.abs(diff); in calcMaxErr() 675 if (diff>max) { in calcMaxErr() 676 max = diff; in calcMaxErr() 703 double diff = 0.0; in calcSqrErr() local 713 diff = ra.get(i).roll - rb.get(i).roll; in calcSqrErr() 716 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()
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/ |
D | GnssLocationUpdateIntervalTest.java | 294 double diff = d - mean; in computeStdev() local 295 accumulator += diff * diff; in computeStdev()
|
/cts/apps/CameraITS/tests/sensor_fusion/ |
D | test_multi_camera_frame_sync.py | 225 diff = abs(angle_2 - angle_1) 228 if diff > angular_diff_thresh:
|
/cts/hostsidetests/tv/src/com/android/cts/tv/ |
D | TvInputManagerServiceHostTest.java | 205 String diff(T actual, T expected) { in diff() method in TvInputManagerServiceHostTest.CorrespondenceFieldChainBuilder.GetterName 232 input -> input.diff(actual, expected))); in build()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | TestUtils.java | 350 int diff = actualCount - ((expectedCount != null) ? expectedCount : 0); in assertContentsInAnyOrder() local 351 if (diff > 0) { in assertContentsInAnyOrder() 352 extraneousFreq.put(actualEntry.getKey(), diff); in assertContentsInAnyOrder() local 360 int diff = expectedCount - ((actualCount != null) ? actualCount : 0); in assertContentsInAnyOrder() local 361 if (diff > 0) { in assertContentsInAnyOrder() 362 missingFreq.put(expectedEntry.getKey(), diff); in assertContentsInAnyOrder() local
|
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/ |
D | MediaTranscodingTestUtil.java | 402 int diff = ((int) data0[i] & 0xff) - ((int) data1[i] & 0xff); in computePSNR() local 403 squareError += diff * diff; in computePSNR()
|