/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() 68 int pixel2 = bitmap2.getPixel(x, y); in psnr()
|
/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 55 if (width != bitmap2.getWidth() || height != bitmap2.getHeight()) { in assertBitmapsAreSimilar() 62 bitmap2.getPixels(pixels2, 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 | 1213 Bitmap bitmap2 = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testSameAs_simpleSuccess() local 1215 bitmap2.eraseColor(Color.BLACK); in testSameAs_simpleSuccess() 1216 assertTrue(bitmap1.sameAs(bitmap2)); in testSameAs_simpleSuccess() 1217 assertTrue(bitmap2.sameAs(bitmap1)); in testSameAs_simpleSuccess() 1223 Bitmap bitmap2 = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testSameAs_simpleFail() local 1225 bitmap2.eraseColor(Color.BLACK); in testSameAs_simpleFail() 1226 bitmap2.setPixel(20, 10, Color.WHITE); in testSameAs_simpleFail() 1227 assertFalse(bitmap1.sameAs(bitmap2)); in testSameAs_simpleFail() 1228 assertFalse(bitmap2.sameAs(bitmap1)); in testSameAs_simpleFail() 1234 Bitmap bitmap2 = Bitmap.createBitmap(150, 150, Config.ARGB_8888); in testSameAs_reconfigure() local [all …]
|
D | BitmapColorSpaceTest.java | 258 Bitmap bitmap2 = BitmapFactory.decodeStream(in, null, opts); in reuse() local 259 assertSame(bitmap1, bitmap2); in reuse() 260 ColorSpace cs = bitmap2.getColorSpace(); in reuse()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | FadeTest.java | 254 private static double[] getMeans(Bitmap bitmap1, Bitmap bitmap2, int xStart, int yStart) { in getMeans() argument 260 avg1 += getIntensity(bitmap2.getPixel(xStart + x, yStart + y)); in getMeans() 273 private static double[] getVariances(Bitmap bitmap1, Bitmap bitmap2, double mean0, double mean1, in getVariances() argument 281 double v1 = getIntensity(bitmap2.getPixel(xStart + x, yStart + y)) - mean1; in getVariances()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | DecodeAccuracyTestBase.java | 1776 public static Difference computeDifference(Bitmap bitmap1, Bitmap bitmap2) { in computeDifference() argument 1777 if (bitmap1 == null || bitmap2 == null) { in computeDifference() 1780 if (bitmap1.equals(bitmap2) || bitmap1.sameAs(bitmap2)) { in computeDifference() 1783 … if (bitmap1.getHeight() != bitmap2.getHeight() || bitmap1.getWidth() != bitmap2.getWidth()) { in computeDifference() 1789 final double[][] pixels2 = convertRgbToCieLab(bitmap2); in computeDifference() 2012 Bitmap bitmap1, Bitmap bitmap2, Pair<Double, Double>[] borderCrops) { in computeMinimumDifference() argument 2015 Difference minDiff = computeDifference(bitmap1, bitmap2); in computeMinimumDifference() 2020 Bitmap bitmap2s = shrinkAndScaleBilinear(bitmap2, borderCrop.first, borderCrop.second); in computeMinimumDifference() 2036 Bitmap bitmap1, Bitmap bitmap2, int trueWidth, int trueHeight) { in computeMinimumDifference() argument 2044 bitmap2, in computeMinimumDifference()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | Helper.java | 1164 @Nullable Bitmap bitmap2) throws IOException { in assertBitmapsAreSame() argument 1166 assertWithMessage("2nd bitmap is null").that(bitmap2).isNotNull(); in assertBitmapsAreSame() 1167 final boolean same = bitmap1.sameAs(bitmap2); in assertBitmapsAreSame() 1181 final File dump2 = dumpBitmap(bitmap2, dir, filename + "-2.png"); in assertBitmapsAreSame()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewTest.java | 1448 Bitmap bitmap2 = view.getDrawingCache(); in testGetDrawingCache() local 1449 assertNotSame(bitmap1, bitmap2); in testGetDrawingCache()
|