summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRay Chen <raychen@google.com>2010-01-26 14:43:35 -0800
committerRay Chen <raychen@google.com>2010-01-29 14:30:05 -0800
commitbf124e7e41f7850ac1b7be808221a462db6f3447 (patch)
treee831e6443bc122c5c8f35c4560517cd09ec7852b /core
parentc88ed5dc5de7b2a7a02f975c83ee12e0fc1df27f (diff)
downloadframeworks_base-bf124e7e41f7850ac1b7be808221a462db6f3447.zip
frameworks_base-bf124e7e41f7850ac1b7be808221a462db6f3447.tar.gz
frameworks_base-bf124e7e41f7850ac1b7be808221a462db6f3447.tar.bz2
Unhide ThumbnailUtils to support Camera unbundling.
http://b/2375978
Diffstat (limited to 'core')
-rw-r--r--core/java/android/provider/MediaStore.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/java/android/provider/MediaStore.java b/core/java/android/provider/MediaStore.java
index 1b938ee..211bc0a 100644
--- a/core/java/android/provider/MediaStore.java
+++ b/core/java/android/provider/MediaStore.java
@@ -28,7 +28,7 @@ import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.media.MiniThumbFile;
-import android.media.ThumbnailUtil;
+import android.media.ThumbnailUtils;
import android.net.Uri;
import android.os.Environment;
import android.os.ParcelFileDescriptor;
@@ -381,15 +381,15 @@ public final class MediaStore {
filePath = c.getString(1);
}
if (isVideo) {
- bitmap = ThumbnailUtil.createVideoThumbnail(filePath);
+ bitmap = ThumbnailUtils.createVideoThumbnail(filePath);
if (kind == MICRO_KIND && bitmap != null) {
- bitmap = ThumbnailUtil.extractMiniThumb(bitmap,
- ThumbnailUtil.MINI_THUMB_TARGET_SIZE,
- ThumbnailUtil.MINI_THUMB_TARGET_SIZE,
- ThumbnailUtil.RECYCLE_INPUT);
+ bitmap = ThumbnailUtils.extractMiniThumb(bitmap,
+ ThumbnailUtils.MINI_THUMB_TARGET_SIZE,
+ ThumbnailUtils.MINI_THUMB_TARGET_SIZE,
+ ThumbnailUtils.RECYCLE_INPUT);
}
} else {
- bitmap = ThumbnailUtil.createImageThumbnail(cr, filePath, uri, origId,
+ bitmap = ThumbnailUtils.createImageThumbnail(cr, filePath, uri, origId,
kind, false);
}
}