/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | ImageCompare.java | 48 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() 60 final int width = bitmap1.getWidth(); in psnr() 61 final int height = bitmap1.getHeight(); in psnr() 67 int pixel1 = bitmap1.getPixel(x, y); in psnr()
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/util/ |
D | BitmapAsserter.java | 49 public void assertBitmapsAreSimilar(Bitmap bitmap1, Bitmap bitmap2, BitmapComparer comparer, in assertBitmapsAreSimilar() argument 52 int width = bitmap1.getWidth(); in assertBitmapsAreSimilar() 53 int height = bitmap1.getHeight(); in assertBitmapsAreSimilar() 61 bitmap1.getPixels(pixels1, 0, width, 0, 0, width, height); in assertBitmapsAreSimilar() 66 BitmapDumper.dumpBitmaps(bitmap1, bitmap2, testName, mClassName, mDifferenceVisualizer); in assertBitmapsAreSimilar()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
D | BitmapAsserter.java | 49 public void assertBitmapsAreSimilar(Bitmap bitmap1, Bitmap bitmap2, BitmapComparer comparer, in assertBitmapsAreSimilar() argument 52 int width = bitmap1.getWidth(); in assertBitmapsAreSimilar() 53 int height = bitmap1.getHeight(); in assertBitmapsAreSimilar() 61 bitmap1.getPixels(pixels1, 0, width, 0, 0, width, height); in assertBitmapsAreSimilar() 66 BitmapDumper.dumpBitmaps(bitmap1, bitmap2, testName, mClassName, mDifferenceVisualizer); in assertBitmapsAreSimilar()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapTest.java | 1687 Bitmap bitmap1 = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testSameAs_simpleSuccess() local 1689 bitmap1.eraseColor(Color.BLACK); in testSameAs_simpleSuccess() 1691 assertTrue(bitmap1.sameAs(bitmap2)); in testSameAs_simpleSuccess() 1692 assertTrue(bitmap2.sameAs(bitmap1)); in testSameAs_simpleSuccess() 1697 Bitmap bitmap1 = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testSameAs_simpleFail() local 1699 bitmap1.eraseColor(Color.BLACK); in testSameAs_simpleFail() 1702 assertFalse(bitmap1.sameAs(bitmap2)); in testSameAs_simpleFail() 1703 assertFalse(bitmap2.sameAs(bitmap1)); in testSameAs_simpleFail() 1708 Bitmap bitmap1 = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testSameAs_reconfigure() local 1711 bitmap1.eraseColor(Color.BLACK); in testSameAs_reconfigure() [all …]
|
D | BitmapColorSpaceTest.java | 353 Bitmap bitmap1 = null; in reuse() local 355 bitmap1 = BitmapFactory.decodeStream(in, null, opts); in reuse() 356 ColorSpace cs = bitmap1.getColorSpace(); in reuse() 364 opts.inBitmap = bitmap1; in reuse() 367 assertSame(bitmap1, bitmap2); in reuse()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | DecodeAccuracyTestBase.java | 1775 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() 1787 final double[][] pixels1 = convertRgbToCieLab(bitmap1); in computeDifference() 1799 greatestDifferenceIndex % bitmap1.getWidth(), in computeDifference() 1800 greatestDifferenceIndex / bitmap1.getHeight())); in computeDifference() 2011 Bitmap bitmap1, Bitmap bitmap2, Pair<Double, Double>[] borderCrops) { in computeMinimumDifference() argument 2014 Difference minDiff = computeDifference(bitmap1, bitmap2); in computeMinimumDifference() 2020 Difference d = computeDifference(bitmap1, bitmap2s); in computeMinimumDifference() [all …]
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | FadeTest.java | 255 private static double[] getMeans(Bitmap bitmap1, Bitmap bitmap2, int xStart, int yStart) { in getMeans() argument 260 avg0 += getIntensity(bitmap1.getPixel(xStart + x, yStart + y)); in getMeans() 274 private static double[] getVariances(Bitmap bitmap1, Bitmap bitmap2, double mean0, double mean1, in getVariances() argument 281 double v0 = getIntensity(bitmap1.getPixel(xStart + x, yStart + y)) - mean0; in getVariances()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | TextAppearanceSpanTest.java | 486 final Bitmap bitmap1 = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565); in assertTypefaceSame() local 488 final Canvas canvas1 = new Canvas(bitmap1); in assertTypefaceSame() 515 assertTrue(bitmap0.sameAs(bitmap1)); in assertTypefaceSame()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | Helper.java | 1288 public static void assertBitmapsAreSame(@NonNull String filename, @Nullable Bitmap bitmap1, in assertBitmapsAreSame() argument 1290 assertWithMessage("1st bitmap is null").that(bitmap1).isNotNull(); in assertBitmapsAreSame() 1292 final boolean same = bitmap1.sameAs(bitmap2); in assertBitmapsAreSame() 1303 final File dump1 = dumpBitmap(bitmap1, dir, filename + "-1.png"); in assertBitmapsAreSame()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | MultiViewTest.java | 953 Bitmap bitmap1 = mTextureView[viewIdx1].getBitmap(); in testTextureImageWriterReaderOperation() local 955 BitmapUtils.compareBitmap(bitmap0, bitmap1); in testTextureImageWriterReaderOperation()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewTest.java | 1570 Bitmap bitmap1 = view.getDrawingCache(); in testGetDrawingCache() local 1571 assertNotNull(bitmap1); in testGetDrawingCache() 1572 assertEquals(view.getWidth(), bitmap1.getWidth()); in testGetDrawingCache() 1573 assertEquals(view.getHeight(), bitmap1.getHeight()); in testGetDrawingCache() 1581 assertNotSame(bitmap1, bitmap2); in testGetDrawingCache()
|