Home
last modified time | relevance | path

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

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBitmapUtils.java40 public static boolean compareBitmaps(Bitmap bmp1, Bitmap bmp2) { in compareBitmaps() argument
41 if (bmp1 == bmp2) { in compareBitmaps()
45 if (bmp1 == null || bmp2 == null) { in compareBitmaps()
49 if ((bmp1.getWidth() != bmp2.getWidth()) || (bmp1.getHeight() != bmp2.getHeight())) { in compareBitmaps()
53 for (int i = 0; i < bmp1.getWidth(); i++) { in compareBitmaps()
54 for (int j = 0; j < bmp1.getHeight(); j++) { in compareBitmaps()
55 if (bmp1.getPixel(i, j) != bmp2.getPixel(i, j)) { in compareBitmaps()