Searched defs:maxNumOfPixels (Results 1 - 2 of 2) sorted by relevance

/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DBitmapUtils.java41 * and maxNumOfPixels.
44 * maxNumOfPixels is used to specify the maximal size in pixels that is
59 int minSideLength, int maxNumOfPixels) {
61 width, height, minSideLength, maxNumOfPixels);
69 int minSideLength, int maxNumOfPixels) {
70 if (maxNumOfPixels == UNCONSTRAINED
73 int lowerBound = (maxNumOfPixels == UNCONSTRAINED) ? 1 :
74 (int) Math.ceil(Math.sqrt((double) (w * h) / maxNumOfPixels));
58 computeSampleSize(int width, int height, int minSideLength, int maxNumOfPixels) argument
68 computeInitialSampleSize(int w, int h, int minSideLength, int maxNumOfPixels) argument
/frameworks/base/media/java/android/media/
H A DThumbnailUtils.java234 * and maxNumOfPixels.
237 * maxNumOfPixels is used to specify the maximal size in pixels that is
252 int minSideLength, int maxNumOfPixels) {
254 maxNumOfPixels);
270 int minSideLength, int maxNumOfPixels) {
274 int lowerBound = (maxNumOfPixels == UNCONSTRAINED) ? 1 :
275 (int) Math.ceil(Math.sqrt(w * h / maxNumOfPixels));
285 if ((maxNumOfPixels == UNCONSTRAINED) &&
303 private static Bitmap makeBitmap(int minSideLength, int maxNumOfPixels, argument
321 options, minSideLength, maxNumOfPixels);
251 computeSampleSize(BitmapFactory.Options options, int minSideLength, int maxNumOfPixels) argument
269 computeInitialSampleSize(BitmapFactory.Options options, int minSideLength, int maxNumOfPixels) argument
[all...]

Completed in 82 milliseconds