Home
last modified time | relevance | path

Searched refs:bitmap2 (Results 1 – 6 of 6) 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.java55 public void assertBitmapsAreSimilar(Bitmap bitmap1, Bitmap bitmap2, BitmapComparer comparer, in assertBitmapsAreSimilar() argument
61 if (width != bitmap2.getWidth() || height != bitmap2.getHeight()) { in assertBitmapsAreSimilar()
68 bitmap2.getPixels(pixels2, 0, width, 0, 0, width, height); in assertBitmapsAreSimilar()
72 BitmapDumper.dumpBitmaps(bitmap1, bitmap2, testName, mClassName, mDifferenceVisualizer); in assertBitmapsAreSimilar()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapTest.java1203 Bitmap bitmap2 = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testSameAs_simpleSuccess() local
1205 bitmap2.eraseColor(Color.BLACK); in testSameAs_simpleSuccess()
1206 assertTrue(bitmap1.sameAs(bitmap2)); in testSameAs_simpleSuccess()
1207 assertTrue(bitmap2.sameAs(bitmap1)); in testSameAs_simpleSuccess()
1213 Bitmap bitmap2 = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testSameAs_simpleFail() local
1215 bitmap2.eraseColor(Color.BLACK); in testSameAs_simpleFail()
1216 bitmap2.setPixel(20, 10, Color.WHITE); in testSameAs_simpleFail()
1217 assertFalse(bitmap1.sameAs(bitmap2)); in testSameAs_simpleFail()
1218 assertFalse(bitmap2.sameAs(bitmap1)); in testSameAs_simpleFail()
1224 Bitmap bitmap2 = Bitmap.createBitmap(150, 150, Config.ARGB_8888); in testSameAs_reconfigure() local
[all …]
DBitmapColorSpaceTest.java254 Bitmap bitmap2 = BitmapFactory.decodeStream(in, null, opts); in reuse() local
255 assertSame(bitmap1, bitmap2); in reuse()
256 ColorSpace cs = bitmap2.getColorSpace(); in reuse()
/cts/tests/tests/media/src/android/media/cts/
DDecodeAccuracyTestBase.java1718 public static Difference computeDifference(Bitmap bitmap1, Bitmap bitmap2) { in computeDifference() argument
1719 if (bitmap1 == null || bitmap2 == null) { in computeDifference()
1722 if (bitmap1.equals(bitmap2) || bitmap1.sameAs(bitmap2)) { in computeDifference()
1725 … if (bitmap1.getHeight() != bitmap2.getHeight() || bitmap1.getWidth() != bitmap2.getWidth()) { in computeDifference()
1731 final double[][] pixels2 = convertRgbToCieLab(bitmap2); in computeDifference()
1954 Bitmap bitmap1, Bitmap bitmap2, Pair<Double, Double>[] borderCrops) { in computeMinimumDifference() argument
1957 Difference minDiff = computeDifference(bitmap1, bitmap2); in computeMinimumDifference()
1962 Bitmap bitmap2s = shrinkAndScaleBilinear(bitmap2, borderCrop.first, borderCrop.second); in computeMinimumDifference()
1978 Bitmap bitmap1, Bitmap bitmap2, int trueWidth, int trueHeight) { in computeMinimumDifference() argument
1986 bitmap2, in computeMinimumDifference()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java1381 Bitmap bitmap2 = view.getDrawingCache(); in testGetDrawingCache() local
1382 assertNotSame(bitmap1, bitmap2); in testGetDrawingCache()