Searched refs:targetSize (Results 1 - 8 of 8) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DActionImage.java61 int targetSize = MediaItem.getTargetSize(mType);
66 bitmap = BitmapUtils.resizeAndCropCenter(bitmap, targetSize, true);
68 bitmap = BitmapUtils.resizeDownBySideLength(bitmap, targetSize, true);
H A DImageCacheRequest.java37 Path path, int type, int targetSize) {
41 mTargetSize = targetSize;
101 public abstract Bitmap onDecodeOriginal(JobContext jc, int targetSize); argument
36 ImageCacheRequest(GalleryApp application, Path path, int type, int targetSize) argument
H A DDecodeUtils.java100 JobContext jc, String filePath, Options options, int targetSize, int type) {
105 return decodeThumbnail(jc, fd, options, targetSize, type);
115 JobContext jc, FileDescriptor fd, Options options, int targetSize, int type) {
128 // we want to make sure the shorter side >= "targetSize".
129 float scale = (float) targetSize / Math.min(w, h);
140 // For screen nail, we only want to keep the longer side >= targetSize.
141 float scale = (float) targetSize / Math.max(w, h);
153 float scale = (float) targetSize / (type == MediaItem.TYPE_MICROTHUMBNAIL
166 * larger than the <code>targetSize</code>.
169 Options options, int targetSize) {
99 decodeThumbnail( JobContext jc, String filePath, Options options, int targetSize, int type) argument
114 decodeThumbnail( JobContext jc, FileDescriptor fd, Options options, int targetSize, int type) argument
168 decodeIfBigEnough(JobContext jc, byte[] data, Options options, int targetSize) argument
[all...]
H A DUriImage.java193 int targetSize = MediaItem.getTargetSize(mType);
197 mFileDescriptor.getFileDescriptor(), options, targetSize, mType);
204 bitmap = BitmapUtils.resizeAndCropCenter(bitmap, targetSize, true);
206 bitmap = BitmapUtils.resizeDownBySideLength(bitmap, targetSize, true);
H A DLocalImage.java189 int targetSize = MediaItem.getTargetSize(type);
205 jc, thumbData, options, targetSize);
210 return DecodeUtils.decodeThumbnail(jc, mLocalFilePath, options, targetSize, type);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
H A DLevenshteinDistance.java40 final int targetSize = target.length;
41 final int[][] editTab = new int[sourceSize+1][targetSize+1];
42 final int[][] distTab = new int[sourceSize+1][targetSize+1];
49 for (int i = 1; i <= targetSize; ++i) {
/packages/apps/Mms/src/com/android/mms/util/
H A DThumbnailManager.java449 private Bitmap requestDecode(final Uri uri, Options options, int targetSize) { argument
473 options.outWidth, options.outHeight, targetSize);
485 result = resizeDownIfTooBig(result, targetSize, true);
509 // Resize the bitmap if each side is >= targetSize * 2
511 Bitmap bitmap, int targetSize, boolean recycle) {
515 (float) targetSize / srcWidth, (float) targetSize / srcHeight);
510 resizeDownIfTooBig( Bitmap bitmap, int targetSize, boolean recycle) argument
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DPositionController.java1753 public boolean doAnimation(int targetSize, int kind) { argument
1754 if (mCurrentGap == targetSize && kind != ANIM_KIND_CAPTURE) {
1759 mToGap = targetSize;

Completed in 269 milliseconds