Home
last modified time | relevance | path

Searched refs:minSideLength (Results 1 – 9 of 9) 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/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBitmapUtils.java59 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()
/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/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/Camera2/src/com/android/camera/util/
DCameraUtil.java202 int minSideLength, int maxNumOfPixels) { in computeSampleSize() argument
203 int initialSize = computeInitialSampleSize(options, minSideLength, in computeSampleSize()
220 int minSideLength, int maxNumOfPixels) { in computeInitialSampleSize() argument
226 int upperBound = (minSideLength < 0) ? 128 : in computeInitialSampleSize()
227 (int) Math.min(Math.floor(w / minSideLength), in computeInitialSampleSize()
228 Math.floor(h / minSideLength)); in computeInitialSampleSize()
235 if (maxNumOfPixels < 0 && minSideLength < 0) { in computeInitialSampleSize()
237 } else if (minSideLength < 0) { in computeInitialSampleSize()