Home
last modified time | relevance | path

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

/packages/apps/Gallery/src/com/android/camera/
DUtil.java103 int minSideLength, int maxNumOfPixels) { in computeSampleSize() argument
104 int initialSize = computeInitialSampleSize(options, minSideLength, in computeSampleSize()
121 int minSideLength, int maxNumOfPixels) { in computeInitialSampleSize() argument
127 int upperBound = (minSideLength == IImage.UNCONSTRAINED) ? 128 : in computeInitialSampleSize()
128 (int) Math.min(Math.floor(w / minSideLength), in computeInitialSampleSize()
129 Math.floor(h / minSideLength)); in computeInitialSampleSize()
137 (minSideLength == IImage.UNCONSTRAINED)) { in computeInitialSampleSize()
139 } else if (minSideLength == IImage.UNCONSTRAINED) { in computeInitialSampleSize()
275 public static Bitmap makeBitmap(int minSideLength, int maxNumOfPixels, in makeBitmap() argument
284 return makeBitmap(minSideLength, maxNumOfPixels, uri, cr, input, in makeBitmap()
[all …]
/packages/apps/Launcher3/WallpaperPicker/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()
/packages/apps/Gallery2/gallerycommon/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()
/packages/apps/Gallery/src/com/android/camera/gallery/
DUriImage.java79 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels) { in fullSizeBitmap() argument
80 return fullSizeBitmap(minSideLength, maxNumberOfPixels, in fullSizeBitmap()
84 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels, in fullSizeBitmap() argument
86 return fullSizeBitmap(minSideLength, maxNumberOfPixels, in fullSizeBitmap()
90 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels, in fullSizeBitmap() argument
94 Bitmap b = Util.makeBitmap(minSideLength, maxNumberOfPixels, in fullSizeBitmap()
DBaseImage.java87 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels) { in fullSizeBitmap() argument
88 return fullSizeBitmap(minSideLength, maxNumberOfPixels, in fullSizeBitmap()
92 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels, in fullSizeBitmap() argument
97 Bitmap b = Util.makeBitmap(minSideLength, maxNumberOfPixels, in fullSizeBitmap()
DIImage.java38 public abstract Bitmap fullSizeBitmap(int minSideLength, in fullSizeBitmap() argument
40 public abstract Bitmap fullSizeBitmap(int minSideLength, in fullSizeBitmap() argument
DVideoObject.java65 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels, in fullSizeBitmap() argument
/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java176 int minSideLength, int maxNumOfPixels) { in computeSampleSize() argument
177 int initialSize = computeInitialSampleSize(options, minSideLength, in computeSampleSize()
194 int minSideLength, int maxNumOfPixels) { in computeInitialSampleSize() argument
200 int upperBound = (minSideLength < 0) ? 128 : in computeInitialSampleSize()
201 (int) Math.min(Math.floor(w / minSideLength), in computeInitialSampleSize()
202 Math.floor(h / minSideLength)); in computeInitialSampleSize()
209 if (maxNumOfPixels < 0 && minSideLength < 0) { in computeInitialSampleSize()
211 } else if (minSideLength < 0) { in computeInitialSampleSize()
/packages/apps/Camera/src/com/android/camera/
DUtil.java217 int minSideLength, int maxNumOfPixels) { in computeSampleSize() argument
218 int initialSize = computeInitialSampleSize(options, minSideLength, in computeSampleSize()
235 int minSideLength, int maxNumOfPixels) { in computeInitialSampleSize() argument
241 int upperBound = (minSideLength < 0) ? 128 : in computeInitialSampleSize()
242 (int) Math.min(Math.floor(w / minSideLength), in computeInitialSampleSize()
243 Math.floor(h / minSideLength)); in computeInitialSampleSize()
250 if (maxNumOfPixels < 0 && minSideLength < 0) { in computeInitialSampleSize()
252 } else if (minSideLength < 0) { in computeInitialSampleSize()
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java206 int minSideLength, int maxNumOfPixels) { in computeSampleSize() argument
207 int initialSize = computeInitialSampleSize(options, minSideLength, in computeSampleSize()
224 int minSideLength, int maxNumOfPixels) { in computeInitialSampleSize() argument
230 int upperBound = (minSideLength < 0) ? 128 : in computeInitialSampleSize()
231 (int) Math.min(Math.floor(w / minSideLength), in computeInitialSampleSize()
232 Math.floor(h / minSideLength)); in computeInitialSampleSize()
239 if (maxNumOfPixels < 0 && minSideLength < 0) { in computeInitialSampleSize()
241 } else if (minSideLength < 0) { in computeInitialSampleSize()
/packages/apps/Gallery/tests/src/com/android/camera/gallery/
DMockImage.java27 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels) { in fullSizeBitmap() argument
31 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels, in fullSizeBitmap() argument
36 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels, in fullSizeBitmap() argument
/packages/apps/Mms/src/com/android/mms/util/
DThumbnailManager.java501 int minSideLength) { in computeSampleSizeLarger() argument
502 int initialSize = Math.max(w / minSideLength, h / minSideLength); in computeSampleSizeLarger()