Searched refs:thumb (Results 1 - 15 of 15) sorted by path

/packages/apps/Camera2/src/com/android/camera/exif/
H A DExifInterface.java1735 byte[] thumb = mData.getCompressedThumbnail();
1736 return BitmapFactory.decodeByteArray(thumb, 0, thumb.length);
1793 * @param thumb a byte array containing a jpeg compressed image.
1796 public boolean setCompressedThumbnail(byte[] thumb) { argument
1798 mData.setCompressedThumbnail(thumb);
1806 * @param thumb a bitmap to compress to a jpeg thumbnail.
1809 public boolean setCompressedThumbnail(Bitmap thumb) { argument
1811 if (!thumb.compress(Bitmap.CompressFormat.JPEG, 90, thumbnail)) {
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DThumbnailLoader.java50 public static final BiConsumer<View, View> ANIM_FADE_IN = (mime, thumb) -> {
53 thumb.setAlpha(0f);
54 thumb.animate().alpha(alpha).start();
56 public static final BiConsumer<View, View> ANIM_NO_OP = (mime, thumb) -> {};
/packages/apps/Gallery/src/com/android/camera/
H A DGalleryPicker.java340 // the thumb bitmaps. (Generating thumbnail bitmaps takes some time.)
708 Bitmap thumb = Bitmap.createBitmap(imageWidth, imageHeight,
710 Canvas tempCanvas = new Canvas(thumb);
717 placeImage(thumb, c, pdpaint, imageWidth, padding, imageHeight,
720 thumb.recycle();
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DExifInterface.java1756 byte[] thumb = mData.getCompressedThumbnail();
1757 return BitmapFactory.decodeByteArray(thumb, 0, thumb.length);
1814 * @param thumb a byte array containing a jpeg compressed image.
1817 public boolean setCompressedThumbnail(byte[] thumb) { argument
1819 mData.setCompressedThumbnail(thumb);
1827 * @param thumb a bitmap to compress to a jpeg thumbnail.
1830 public boolean setCompressedThumbnail(Bitmap thumb) { argument
1832 if (!thumb.compress(Bitmap.CompressFormat.JPEG, 90, thumbnail)) {
/packages/apps/Messaging/src/com/android/messaging/util/exif/
H A DExifInterface.java1756 byte[] thumb = mData.getCompressedThumbnail();
1757 return BitmapFactory.decodeByteArray(thumb, 0, thumb.length);
1814 * @param thumb a byte array containing a jpeg compressed image.
1817 public boolean setCompressedThumbnail(byte[] thumb) { argument
1819 mData.setCompressedThumbnail(thumb);
1827 * @param thumb a bitmap to compress to a jpeg thumbnail.
1830 public boolean setCompressedThumbnail(Bitmap thumb) { argument
1832 if (!thumb.compress(Bitmap.CompressFormat.JPEG, 90, thumbnail)) {
/packages/apps/Settings/src/com/android/settings/
H A DActivityPicker.java393 final Bitmap thumb = Bitmap.createBitmap(mIconWidth, mIconHeight, c);
395 canvas.setBitmap(thumb);
408 icon = new BitmapDrawable(thumb);
413 final Bitmap thumb = Bitmap.createBitmap(mIconWidth, mIconHeight, c);
415 canvas.setBitmap(thumb);
423 icon = new BitmapDrawable(thumb);
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
H A DSavedWallpaperImages.java46 public SavedWallpaperInfo(int dbId, File target, Drawable thumb) { argument
47 super(target, thumb);
87 Bitmap thumb = BitmapFactory.decodeFile(file.getAbsolutePath());
88 if (thumb != null) {
91 new BitmapDrawable(mContext.getResources(), thumb)));
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
H A DDefaultWallpaperInfo.java36 public DefaultWallpaperInfo(Drawable thumb) { argument
37 super(thumb);
144 Bitmap thumb = null;
149 thumb = BitmapFactory.decodeFile(defaultThumbFile.getAbsolutePath());
156 thumb = Bitmap.createBitmap(
158 Canvas c = new Canvas(thumb);
163 if (thumb != null) {
164 defaultWallpaperExists = saveDefaultWallpaperThumb(context, thumb);
168 return new DefaultWallpaperInfo(new BitmapDrawable(res, thumb));
180 Bitmap thumb
[all...]
H A DDrawableThumbWallpaperInfo.java19 DrawableThumbWallpaperInfo(Drawable thumb) { argument
20 mThumb = thumb;
30 public void setThumb(Drawable thumb) { argument
31 if (mView != null && thumb != null) {
32 thumb.setDither(true);
34 image.setImageDrawable(thumb);
H A DFileWallpaperInfo.java28 public FileWallpaperInfo(File target, Drawable thumb) { argument
29 super(thumb);
H A DLiveWallpaperInfo.java109 Drawable thumb = info.loadThumbnail(pm);
112 result.add(new LiveWallpaperInfo(thumb, info, launchIntent));
H A DPickImageInfo.java63 Bitmap thumb = null;
67 thumb = MediaStore.Images.Thumbnails.getThumbnail(context.getContentResolver(),
72 return thumb;
H A DResourceWallpaperInfo.java18 public ResourceWallpaperInfo(Resources res, int resId, Drawable thumb) { argument
19 super(thumb);
H A DUriWallpaperInfo.java60 Bitmap thumb = createThumbnail(
62 a.getSavedImages().writeImage(thumb, imageBytes);
102 protected void onPostExecute(Bitmap thumb) {
103 if (!isCancelled() && thumb != null) {
104 setThumb(new BitmapDrawable(activity.getResources(), thumb));
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
H A DLiveWallpaperListAdapter.java189 Drawable thumb = info.loadThumbnail(packageManager);
190 if (thumb == null) {
217 thumb = new BitmapDrawable(res, thumbnail);
219 wallpaper.thumbnail = thumb;

Completed in 415 milliseconds