Home
last modified time | relevance | path

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

/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
DBitmapUtilTests.java34 assertEquals(100, BitmapUtil.getSmallerExtentFromBytes(createJpegRawData(100, 100))); in testGetSmallerExtentFromBytes1()
39 assertEquals(50, BitmapUtil.getSmallerExtentFromBytes(createJpegRawData(200, 50))); in testGetSmallerExtentFromBytes2()
44 assertEquals(40, BitmapUtil.getSmallerExtentFromBytes(createJpegRawData(40, 150))); in testGetSmallerExtentFromBytes3()
81 assertBitmapSize(128, 64, BitmapUtil.decodeBitmapFromBytes(createJpegRawData(128, 64), 1)); in testDecodeWithSampleSize1()
86 assertBitmapSize(64, 32, BitmapUtil.decodeBitmapFromBytes(createJpegRawData(128, 64), 2)); in testDecodeWithSampleSize2()
91 assertBitmapSize(25, 20, BitmapUtil.decodeBitmapFromBytes(createJpegRawData(50, 40), 2)); in testDecodeWithSampleSize2a()
96 assertBitmapSize(32, 16, BitmapUtil.decodeBitmapFromBytes(createJpegRawData(128, 64), 4)); in testDecodeWithSampleSize4()
105 private byte[] createJpegRawData(int sourceWidth, int sourceHeight) throws IOException { in createJpegRawData() method in BitmapUtilTests