Home
last modified time | relevance | path

Searched refs:bitmap2 (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DImageCompare.java48 public static double psnr(Bitmap bitmap1, Bitmap bitmap2) { in psnr() argument
49 if (bitmap1.getWidth() != bitmap2.getWidth() || in psnr()
50 bitmap1.getHeight() != bitmap2.getHeight()) { in psnr()
54 if (bitmap1.sameAs(bitmap2)) { in psnr()
68 int pixel2 = bitmap2.getPixel(x, y); in psnr()
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DBitmapAsserter.java43 public void assertBitmapsAreSimilar(Bitmap bitmap1, Bitmap bitmap2, BitmapComparer comparer, in assertBitmapsAreSimilar() argument
49 if (width != bitmap2.getWidth() || height != bitmap2.getHeight()) { in assertBitmapsAreSimilar()
56 bitmap2.getPixels(pixels2, 0, width, 0, 0, width, height); in assertBitmapsAreSimilar()
60 BitmapDumper.dumpBitmaps(bitmap1, bitmap2, testName, mClassName, mDifferenceVisualizer); in assertBitmapsAreSimilar()
/cts/tests/quickaccesswallet/src/android/quickaccesswallet/cts/
DTestUtils.java42 Bitmap bitmap2 = ((BitmapDrawable) drawable2).getBitmap(); in compareIcons() local
43 assertThat(BitmapUtils.compareBitmaps(bitmap1, bitmap2)).isTrue(); in compareIcons()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapTest.java1919 Bitmap bitmap2 = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testSameAs_simpleSuccess() local
1921 bitmap2.eraseColor(Color.BLACK); in testSameAs_simpleSuccess()
1922 assertTrue(bitmap1.sameAs(bitmap2)); in testSameAs_simpleSuccess()
1923 assertTrue(bitmap2.sameAs(bitmap1)); in testSameAs_simpleSuccess()
1929 Bitmap bitmap2 = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testSameAs_simpleFail() local
1931 bitmap2.eraseColor(Color.BLACK); in testSameAs_simpleFail()
1932 bitmap2.setPixel(20, 10, Color.WHITE); in testSameAs_simpleFail()
1933 assertFalse(bitmap1.sameAs(bitmap2)); in testSameAs_simpleFail()
1934 assertFalse(bitmap2.sameAs(bitmap1)); in testSameAs_simpleFail()
1940 Bitmap bitmap2 = Bitmap.createBitmap(150, 150, Config.ARGB_8888); in testSameAs_reconfigure() local
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DFadeTest.java255 private static double[] getMeans(Bitmap bitmap1, Bitmap bitmap2, int xStart, int yStart) { in getMeans() argument
261 avg1 += getIntensity(bitmap2.getPixel(xStart + x, yStart + y)); in getMeans()
274 private static double[] getVariances(Bitmap bitmap1, Bitmap bitmap2, double mean0, double mean1, in getVariances() argument
282 double v1 = getIntensity(bitmap2.getPixel(xStart + x, yStart + y)) - mean1; in getVariances()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityFocusAndInputFocusSyncTest.java389 private boolean isBitmapDifferent(Bitmap bitmap1, Bitmap bitmap2) { in isBitmapDifferent() argument
400 final Bitmap bitmapTwo = bitmap2.copy(Bitmap.Config.ARGB_8888, false); in isBitmapDifferent()
412 saveFailureScreenshot(bitmap1, bitmap2); in isBitmapDifferent()
416 private void saveFailureScreenshot(Bitmap bitmap1, Bitmap bitmap2) { in saveFailureScreenshot() argument
426 BitmapUtils.saveBitmap(bitmap2, directoryName, fileName2); in saveFailureScreenshot()
/cts/tests/tests/media/src/android/media/cts/
DDecodeAccuracyTestBase.java1775 public static Difference computeDifference(Bitmap bitmap1, Bitmap bitmap2) { in computeDifference() argument
1776 if (bitmap1 == null || bitmap2 == null) { in computeDifference()
1779 if (bitmap1.equals(bitmap2) || bitmap1.sameAs(bitmap2)) { in computeDifference()
1782 … if (bitmap1.getHeight() != bitmap2.getHeight() || bitmap1.getWidth() != bitmap2.getWidth()) { in computeDifference()
1788 final double[][] pixels2 = convertRgbToCieLab(bitmap2); in computeDifference()
2011 Bitmap bitmap1, Bitmap bitmap2, Pair<Double, Double>[] borderCrops) { in computeMinimumDifference() argument
2014 Difference minDiff = computeDifference(bitmap1, bitmap2); in computeMinimumDifference()
2019 Bitmap bitmap2s = shrinkAndScaleBilinear(bitmap2, borderCrop.first, borderCrop.second); in computeMinimumDifference()
2035 Bitmap bitmap1, Bitmap bitmap2, int trueWidth, int trueHeight) { in computeMinimumDifference() argument
2043 bitmap2, in computeMinimumDifference()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DHelper.java1385 @Nullable Bitmap bitmap2) throws IOException { in assertBitmapsAreSame() argument
1387 assertWithMessage("2nd bitmap is null").that(bitmap2).isNotNull(); in assertBitmapsAreSame()
1388 final boolean same = bitmap1.sameAs(bitmap2); in assertBitmapsAreSame()
1400 final File dump2 = dumpBitmap(bitmap2, dir, filename + "-2.png"); in assertBitmapsAreSame()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java1588 Bitmap bitmap2 = view.getDrawingCache(); in testGetDrawingCache() local
1589 assertNotSame(bitmap1, bitmap2); in testGetDrawingCache()