Home
last modified time | relevance | path

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

/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.java155 int sampleSize = Math.max(bounds.width() / width, bounds.height() / height); in decodeBitmap() local
156 sampleSize = Math.min(sampleSize, in decodeBitmap()
160 options.inSampleSize = Math.max(sampleSize, 1); in decodeBitmap()
/packages/apps/Mms/src/com/android/mms/ui/
DUriImage.java243 int sampleSize = 1; in getResizedImageData() local
253 options.inSampleSize = sampleSize; in getResizedImageData()
258 "may try with larger sampleSize. Curr sampleSize=" + sampleSize); in getResizedImageData()
259 sampleSize *= 2; // works best as a power of two in getResizedImageData()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBitmapUtils.java79 int sampleSize = Math.min(w / minSideLength, h / minSideLength); in computeInitialSampleSize() local
80 return Math.max(sampleSize, lowerBound); in computeInitialSampleSize()
/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()