Home
last modified time | relevance | path

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

/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
DBitmapUtils.java60 int minSideLength, int maxNumOfPixels) { in computeSampleSize() argument
62 width, height, minSideLength, maxNumOfPixels); in computeSampleSize()
70 int minSideLength, int maxNumOfPixels) { in computeInitialSampleSize() argument
72 && minSideLength == UNCONSTRAINED) return 1; in computeInitialSampleSize()
77 if (minSideLength == UNCONSTRAINED) { in computeInitialSampleSize()
80 int sampleSize = Math.min(w / minSideLength, h / minSideLength); in computeInitialSampleSize()
88 int minSideLength) { in computeSampleSizeLarger() argument
89 int initialSize = Math.max(w / minSideLength, h / minSideLength); in computeSampleSizeLarger()
/frameworks/base/media/java/android/media/
DThumbnailUtils.java251 int minSideLength, int maxNumOfPixels) { in computeSampleSize() argument
252 int initialSize = computeInitialSampleSize(options, minSideLength, in computeSampleSize()
269 int minSideLength, int maxNumOfPixels) { in computeInitialSampleSize() argument
275 int upperBound = (minSideLength == UNCONSTRAINED) ? 128 : in computeInitialSampleSize()
276 (int) Math.min(Math.floor(w / minSideLength), in computeInitialSampleSize()
277 Math.floor(h / minSideLength)); in computeInitialSampleSize()
285 (minSideLength == UNCONSTRAINED)) { in computeInitialSampleSize()
287 } else if (minSideLength == UNCONSTRAINED) { in computeInitialSampleSize()
302 private static Bitmap makeBitmap(int minSideLength, int maxNumOfPixels, in makeBitmap() argument
320 options, minSideLength, maxNumOfPixels); in makeBitmap()