/packages/apps/Camera/src/com/android/camera/ |
H A D | Util.java | 199 * and maxNumOfPixels. 202 * maxNumOfPixels is used to specify the maximal size in pixels that is 217 int minSideLength, int maxNumOfPixels) { 219 maxNumOfPixels); 235 int minSideLength, int maxNumOfPixels) { 239 int lowerBound = (maxNumOfPixels < 0) ? 1 : 240 (int) Math.ceil(Math.sqrt(w * h / maxNumOfPixels)); 250 if (maxNumOfPixels < 0 && minSideLength < 0) { 259 public static Bitmap makeBitmap(byte[] jpegData, int maxNumOfPixels) { argument 270 options, -1, maxNumOfPixels); 216 computeSampleSize(BitmapFactory.Options options, int minSideLength, int maxNumOfPixels) argument 234 computeInitialSampleSize(BitmapFactory.Options options, int minSideLength, int maxNumOfPixels) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | CameraUtil.java | 192 * maxNumOfPixels. minSideLength is used to specify that minimal width or 193 * height of a bitmap. maxNumOfPixels is used to specify the maximal size in 207 int minSideLength, int maxNumOfPixels) { 209 maxNumOfPixels); 225 int minSideLength, int maxNumOfPixels) { 229 int lowerBound = (maxNumOfPixels < 0) ? 1 : 230 (int) Math.ceil(Math.sqrt(w * h / maxNumOfPixels)); 240 if (maxNumOfPixels < 0 && minSideLength < 0) { 249 public static Bitmap makeBitmap(byte[] jpegData, int maxNumOfPixels) { argument 260 options, -1, maxNumOfPixels); 206 computeSampleSize(BitmapFactory.Options options, int minSideLength, int maxNumOfPixels) argument 224 computeInitialSampleSize(BitmapFactory.Options options, int minSideLength, int maxNumOfPixels) argument [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
H A D | Util.java | 85 * and maxNumOfPixels. 88 * maxNumOfPixels is used to specify the maximal size in pixels that is 103 int minSideLength, int maxNumOfPixels) { 105 maxNumOfPixels); 121 int minSideLength, int maxNumOfPixels) { 125 int lowerBound = (maxNumOfPixels == IImage.UNCONSTRAINED) ? 1 : 126 (int) Math.ceil(Math.sqrt(w * h / maxNumOfPixels)); 136 if ((maxNumOfPixels == IImage.UNCONSTRAINED) && 275 public static Bitmap makeBitmap(int minSideLength, int maxNumOfPixels, argument 284 return makeBitmap(minSideLength, maxNumOfPixels, ur 102 computeSampleSize(BitmapFactory.Options options, int minSideLength, int maxNumOfPixels) argument 120 computeInitialSampleSize(BitmapFactory.Options options, int minSideLength, int maxNumOfPixels) argument 293 makeBitmap(int minSideLength, int maxNumOfPixels, ParcelFileDescriptor pfd, boolean useNative) argument 303 makeBitmap(int minSideLength, int maxNumOfPixels, Uri uri, ContentResolver cr, ParcelFileDescriptor pfd, BitmapFactory.Options options) argument [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 42 * and maxNumOfPixels. 45 * maxNumOfPixels is used to specify the maximal size in pixels that is 60 int minSideLength, int maxNumOfPixels) { 62 width, height, minSideLength, maxNumOfPixels); 70 int minSideLength, int maxNumOfPixels) { 71 if (maxNumOfPixels == UNCONSTRAINED 74 int lowerBound = (maxNumOfPixels == UNCONSTRAINED) ? 1 : 75 (int) FloatMath.ceil(FloatMath.sqrt((float) (w * h) / maxNumOfPixels)); 59 computeSampleSize(int width, int height, int minSideLength, int maxNumOfPixels) argument 69 computeInitialSampleSize(int w, int h, int minSideLength, int maxNumOfPixels) argument
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 42 * and maxNumOfPixels. 45 * maxNumOfPixels is used to specify the maximal size in pixels that is 60 int minSideLength, int maxNumOfPixels) { 62 width, height, minSideLength, maxNumOfPixels); 70 int minSideLength, int maxNumOfPixels) { 71 if (maxNumOfPixels == UNCONSTRAINED 74 int lowerBound = (maxNumOfPixels == UNCONSTRAINED) ? 1 : 75 (int) FloatMath.ceil(FloatMath.sqrt((float) (w * h) / maxNumOfPixels)); 59 computeSampleSize(int width, int height, int minSideLength, int maxNumOfPixels) argument 69 computeInitialSampleSize(int w, int h, int minSideLength, int maxNumOfPixels) argument
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | Util.java | 158 * and maxNumOfPixels. 161 * maxNumOfPixels is used to specify the maximal size in pixels that is 176 int minSideLength, int maxNumOfPixels) { 178 maxNumOfPixels); 194 int minSideLength, int maxNumOfPixels) { 198 int lowerBound = (maxNumOfPixels < 0) ? 1 : 199 (int) Math.ceil(Math.sqrt(w * h / maxNumOfPixels)); 209 if (maxNumOfPixels < 0 && minSideLength < 0) { 218 public static Bitmap makeBitmap(byte[] jpegData, int maxNumOfPixels) { argument 229 options, -1, maxNumOfPixels); 175 computeSampleSize(BitmapFactory.Options options, int minSideLength, int maxNumOfPixels) argument 193 computeInitialSampleSize(BitmapFactory.Options options, int minSideLength, int maxNumOfPixels) argument [all...] |