Searched refs:assertBitmapSize (Results 1 – 1 of 1) sorted by relevance
/packages/apps/Contacts/tests/src/com/android/contacts/util/ |
D | BitmapUtilTests.java | 79 assertBitmapSize(128, 64, BitmapUtil.decodeBitmapFromBytes(createJpegRawData(128, 64), 1)); in testDecodeWithSampleSize1() 80 assertBitmapSize(128, 64, BitmapUtil.decodeBitmapFromBytes(createPngRawData(128, 64), 1)); in testDecodeWithSampleSize1() 84 assertBitmapSize(64, 32, BitmapUtil.decodeBitmapFromBytes(createJpegRawData(128, 64), 2)); in testDecodeWithSampleSize2() 85 assertBitmapSize(64, 32, BitmapUtil.decodeBitmapFromBytes(createPngRawData(128, 64), 2)); in testDecodeWithSampleSize2() 89 assertBitmapSize(25, 20, BitmapUtil.decodeBitmapFromBytes(createJpegRawData(50, 40), 2)); in testDecodeWithSampleSize2a() 90 assertBitmapSize(25, 20, BitmapUtil.decodeBitmapFromBytes(createPngRawData(50, 40), 2)); in testDecodeWithSampleSize2a() 94 assertBitmapSize(32, 16, BitmapUtil.decodeBitmapFromBytes(createJpegRawData(128, 64), 4)); in testDecodeWithSampleSize4() 95 assertBitmapSize(32, 16, BitmapUtil.decodeBitmapFromBytes(createPngRawData(128, 64), 4)); in testDecodeWithSampleSize4() 98 private void assertBitmapSize(int expectedWidth, int expectedHeight, Bitmap bitmap) { in assertBitmapSize() method in BitmapUtilTests
|