Home
last modified time | relevance | path

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

/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
DBitmapUtilTests.java49 assertEquals(1, BitmapUtil.findOptimalSampleSize(512, 512)); in testFindOptimalSampleSizeExact()
53 assertEquals(1, BitmapUtil.findOptimalSampleSize(512, 1024)); in testFindOptimalSampleSizeBigger()
57 assertEquals(2, BitmapUtil.findOptimalSampleSize(512, 256)); in testFindOptimalSampleSizeSmaller1()
61 assertEquals(2, BitmapUtil.findOptimalSampleSize(512, 230)); in testFindOptimalSampleSizeSmaller2()
65 assertEquals(4, BitmapUtil.findOptimalSampleSize(512, 129)); in testFindOptimalSampleSizeSmaller3()
69 assertEquals(4, BitmapUtil.findOptimalSampleSize(512, 128)); in testFindOptimalSampleSizeSmaller4()
73 assertEquals(1, BitmapUtil.findOptimalSampleSize(-1, 128)); in testFindOptimalSampleSizeUnknownOriginal()
77 assertEquals(1, BitmapUtil.findOptimalSampleSize(128, -1)); in testFindOptimalSampleSizeUnknownTarget()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DBitmapUtil.java58 public static int findOptimalSampleSize(int originalSmallerExtent, int targetExtent) { in findOptimalSampleSize() method in BitmapUtil
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DContactPhotoManager.java1016 BitmapUtil.findOptimalSampleSize(holder.originalSmallerExtent, requestedExtent); in inflateBitmap()