Lines Matching defs:Thumbnail
44 public class Thumbnail {
45 private static final String TAG = "Thumbnail";
52 // whether this thumbnail is read from file
55 // Camera, VideoCamera, and Panorama share the same thumbnail. Use sLock
59 public Thumbnail(Uri uri, Bitmap bitmap, int orientation) {
83 // We only rotate the thumbnail once even if we get OOM.
96 Log.w(TAG, "Failed to rotate thumbnail", t);
127 public static Thumbnail loadFrom(File file) {
150 Thumbnail thumbnail = createThumbnail(uri, bitmap, 0);
151 if (thumbnail != null) thumbnail.setFromFile(true);
152 return thumbnail;
155 public static Thumbnail getLastThumbnail(ContentResolver resolver) {
162 // If there is only image or video, get its thumbnail. If both exist,
163 // get the thumbnail of the one that is newer.
247 public static Thumbnail createThumbnail(byte[] jpeg, int orientation, int inSampleSize,
249 // Create the thumbnail.
299 private static Thumbnail createThumbnail(Uri uri, Bitmap bitmap, int orientation) {
301 Log.e(TAG, "Failed to create thumbnail from null bitmap");
305 return new Thumbnail(uri, bitmap, orientation);
307 Log.e(TAG, "Failed to construct thumbnail", e);