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.java238 * and maxNumOfPixels.
241 * maxNumOfPixels is used to specify the maximal size in pixels that is
256 int minSideLength, int maxNumOfPixels) {
258 maxNumOfPixels);
274 int minSideLength, int maxNumOfPixels) {
278 int lowerBound = (maxNumOfPixels == UNCONSTRAINED) ? 1 :
279 (int) Math.ceil(Math.sqrt(w * h / maxNumOfPixels));
289 if ((maxNumOfPixels == UNCONSTRAINED) &&
307 private static Bitmap makeBitmap(int minSideLength, int maxNumOfPixels, argument
325 options, minSideLength, maxNumOfPixels);
255 computeSampleSize(BitmapFactory.Options options, int minSideLength, int maxNumOfPixels) argument
273 computeInitialSampleSize(BitmapFactory.Options options, int minSideLength, int maxNumOfPixels) argument
[all...]

Completed in 653 milliseconds