Home
last modified time | relevance | path

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

/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
DBitmapUtilTests.java81 assertBitmapSize(128, 64, BitmapUtil.decodeBitmapFromBytes(createJpegRawData(128, 64), 1)); in testDecodeWithSampleSize1()
82 assertBitmapSize(128, 64, BitmapUtil.decodeBitmapFromBytes(createPngRawData(128, 64), 1)); in testDecodeWithSampleSize1()
86 assertBitmapSize(64, 32, BitmapUtil.decodeBitmapFromBytes(createJpegRawData(128, 64), 2)); in testDecodeWithSampleSize2()
87 assertBitmapSize(64, 32, BitmapUtil.decodeBitmapFromBytes(createPngRawData(128, 64), 2)); in testDecodeWithSampleSize2()
91 assertBitmapSize(25, 20, BitmapUtil.decodeBitmapFromBytes(createJpegRawData(50, 40), 2)); in testDecodeWithSampleSize2a()
92 assertBitmapSize(25, 20, BitmapUtil.decodeBitmapFromBytes(createPngRawData(50, 40), 2)); in testDecodeWithSampleSize2a()
96 assertBitmapSize(32, 16, BitmapUtil.decodeBitmapFromBytes(createJpegRawData(128, 64), 4)); in testDecodeWithSampleSize4()
97 assertBitmapSize(32, 16, BitmapUtil.decodeBitmapFromBytes(createPngRawData(128, 64), 4)); in testDecodeWithSampleSize4()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DBitmapUtil.java81 public static Bitmap decodeBitmapFromBytes(byte[] bytes, int sampleSize) { in decodeBitmapFromBytes() method in BitmapUtil
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DContactPhotoManager.java1034 Bitmap bitmap = BitmapUtil.decodeBitmapFromBytes(bytes, sampleSize); in inflateBitmap()