Home
last modified time | relevance | path

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

/packages/apps/Contacts/src/com/android/contacts/util/
DBitmapUtil.java57 int sampleSize = 1; in findOptimalSampleSize() local
59 sampleSize <<= 1; in findOptimalSampleSize()
63 return sampleSize; in findOptimalSampleSize()
69 public static Bitmap decodeBitmapFromBytes(byte[] bytes, int sampleSize) { in decodeBitmapFromBytes() argument
71 if (sampleSize <= 1) { in decodeBitmapFromBytes()
75 options.inSampleSize = sampleSize; in decodeBitmapFromBytes()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/common/
DUtilsTest.java104 int sampleSize = testData[i + 4]; in testComputeSampleSize() local
106 if (result != sampleSize) { in testComputeSampleSize()
108 + maxPixels + ", sampleSize = " + sampleSize + ", result = " in testComputeSampleSize()
111 assertTrue(sampleSize == result); in testComputeSampleSize()
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
DBitmapUtils.java120 int sampleSize = Math.max(bounds.width() / width, bounds.height() / height); in decodeBitmap() local
121 sampleSize = Math.min(sampleSize, in decodeBitmap()
125 options.inSampleSize = Math.max(sampleSize, 1); in decodeBitmap()
/packages/apps/Mms/src/com/android/mms/ui/
DUriImage.java279 int sampleSize = 1; in getResizedImageData() local
289 options.inSampleSize = sampleSize; in getResizedImageData()
298 "may try with larger sampleSize. Curr sampleSize=" + sampleSize); in getResizedImageData()
299 sampleSize *= 2; // works best as a power of two in getResizedImageData()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBitmapUtils.java80 int sampleSize = Math.min(w / minSideLength, h / minSideLength); in computeInitialSampleSize() local
81 return Math.max(sampleSize, lowerBound); in computeInitialSampleSize()
/packages/apps/Contacts/src/com/android/contacts/
DContactPhotoManager.java603 final int sampleSize = in inflateBitmap() local
610 if (sampleSize == holder.decodedSampleSize) { in inflateBitmap()
622 Bitmap bitmap = BitmapUtil.decodeBitmapFromBytes(bytes, sampleSize); in inflateBitmap()
637 canvas.drawText(bitmap.getWidth() + "/" + sampleSize, 0, 15, paint); in inflateBitmap()
640 holder.decodedSampleSize = sampleSize; in inflateBitmap()
/packages/apps/Music/src/com/android/music/
DMusicUtils.java938 int sampleSize = 1; in getArtworkQuick() local
949 sampleSize <<= 1; in getArtworkQuick()
954 sBitmapOptionsCache.inSampleSize = sampleSize; in getArtworkQuick()