Searched refs:minSideLength (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
D | BitmapUtils.java | 59 int minSideLength, int maxNumOfPixels) { in computeSampleSize() argument 61 width, height, minSideLength, maxNumOfPixels); in computeSampleSize() 69 int minSideLength, int maxNumOfPixels) { in computeInitialSampleSize() argument 71 && minSideLength == UNCONSTRAINED) return 1; in computeInitialSampleSize() 76 if (minSideLength == UNCONSTRAINED) { in computeInitialSampleSize() 79 int sampleSize = Math.min(w / minSideLength, h / minSideLength); in computeInitialSampleSize() 87 int minSideLength) { in computeSampleSizeLarger() argument 88 int initialSize = Math.max(w / minSideLength, h / minSideLength); in computeSampleSizeLarger()
|
/frameworks/base/media/java/android/media/ |
D | ThumbnailUtils.java | 256 int minSideLength, int maxNumOfPixels) { in computeSampleSize() argument 257 int initialSize = computeInitialSampleSize(options, minSideLength, in computeSampleSize() 274 int minSideLength, int maxNumOfPixels) { in computeInitialSampleSize() argument 280 int upperBound = (minSideLength == UNCONSTRAINED) ? 128 : in computeInitialSampleSize() 281 (int) Math.min(Math.floor(w / minSideLength), in computeInitialSampleSize() 282 Math.floor(h / minSideLength)); in computeInitialSampleSize() 290 (minSideLength == UNCONSTRAINED)) { in computeInitialSampleSize() 292 } else if (minSideLength == UNCONSTRAINED) { in computeInitialSampleSize() 307 private static Bitmap makeBitmap(int minSideLength, int maxNumOfPixels, in makeBitmap() argument 325 options, minSideLength, maxNumOfPixels); in makeBitmap()
|