Home
last modified time | relevance | path

Searched refs:getThumbnail (Results 1 – 25 of 45) sorted by relevance

12

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DThumbnailCacheTest.java74 Result result = mCache.getThumbnail(URI_1, USER_ID_0, MID_SIZE); in testMiss()
82 Result result = mCache.getThumbnail(URI_0, USER_ID_1, MID_SIZE); in testMiss_DifferentUser()
90 Result result = mCache.getThumbnail(URI_0, USER_ID_0, MID_SIZE); in testHit_Exact()
93 assertSame(MIDSIZE_BITMAP, result.getThumbnail()); in testHit_Exact()
100 Result result = mCache.getThumbnail(URI_0, USER_ID_0, LARGE_SIZE); in testHit_Smaller()
103 assertSame(MIDSIZE_BITMAP, result.getThumbnail()); in testHit_Smaller()
110 Result result = mCache.getThumbnail(URI_0, USER_ID_0, SMALL_SIZE); in testHit_Larger()
113 assertSame(MIDSIZE_BITMAP, result.getThumbnail()); in testHit_Larger()
121 Result result = mCache.getThumbnail(URI_0, USER_ID_0, MID_SIZE); in testHit_Larger_HasBothSize()
124 assertSame(LARGE_BITMAP, result.getThumbnail()); in testHit_Larger_HasBothSize()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DTaskThumbnailViewDeprecated.java228 mThumbnailData = (thumbnailData != null && thumbnailData.getThumbnail() != null) in setThumbnail()
256 if (mThumbnailData != null && mThumbnailData.getThumbnail() != null) { in refresh()
257 Bitmap bm = mThumbnailData.getThumbnail(); in refresh()
316 mThumbnailData.getThumbnail().getWidth(), in getScaledInsets()
317 mThumbnailData.getThumbnail().getHeight()); in getScaledInsets()
515 if (mThumbnailData == null || mThumbnailData.getThumbnail() == null) { in isThumbnailAspectRatioDifferentFromThumbnailData()
520 float thumbnailDataAspect = mThumbnailData.getThumbnail().getWidth() in isThumbnailAspectRatioDifferentFromThumbnailData()
521 / (float) mThumbnailData.getThumbnail().getHeight(); in isThumbnailAspectRatioDifferentFromThumbnailData()
572 mPreviewRect.set(0, 0, mThumbnailData.getThumbnail().getWidth(), in updateThumbnailMatrix()
573 mThumbnailData.getThumbnail().getHeight()); in updateThumbnailMatrix()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskThumbnailCache.java159 if (task.thumbnail != null && task.thumbnail.getThumbnail() != null in updateThumbnailInBackground()
195 if (cachedThumbnail != null && cachedThumbnail.getThumbnail() != null in updateThumbnailInBackground()
206 return thumbnailData.getThumbnail() != null ? thumbnailData in updateThumbnailInBackground()
216 if (newCachedThumbnail != null && newCachedThumbnail.getThumbnail() != null in updateThumbnailInBackground()
DTaskOverlayFactory.java137 mApplicationContext, mTaskContainer.getThumbnailViewDeprecated()::getThumbnail); in TaskOverlay()
189 mImageApi.saveScreenshot(mTaskContainer.getThumbnailViewDeprecated().getThumbnail(), in saveScreenshot()
/packages/apps/Gallery/src/com/android/camera/
DBitmapManager.java138 public Bitmap getThumbnail(ContentResolver cr, long origId, int kind, in getThumbnail() method in BitmapManager
153 return Video.Thumbnails.getThumbnail(cr, origId, t.getId(), in getThumbnail()
156 return Images.Thumbnails.getThumbnail(cr, origId, t.getId(), in getThumbnail()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DImageCategory.java66 public Asset getThumbnail(Context context) { in getThumbnail() method in ImageCategory
100 if (getThumbnail(context) == null && mOverlayIconResId > 0) { in getOverlayIcon()
DPlaceholderCategory.java44 public Asset getThumbnail(Context context) { in getThumbnail() method in PlaceholderCategory
DCategory.java175 public abstract Asset getThumbnail(Context context); in getThumbnail() method in Category
DThirdPartyAppCategory.java121 public Asset getThumbnail(Context unused) { in getThumbnail() method in ThirdPartyAppCategory
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpBitmapFetch.java44 public static Bitmap getThumbnail(MtpDevice device, IngestObjectInfo info) { in getThumbnail() method in MtpBitmapFetch
45 byte[] imageBytes = device.getThumbnail(info.getObjectHandle()); in getThumbnail()
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/
DMostRecentImageSaver.java72 ImageProxy thumbnail = getThumbnail(fullSize.getTimestamp()); in close()
152 private ImageProxy getThumbnail(long timestamp) { in getThumbnail() method in MostRecentImageSaver
/packages/apps/Gallery2/src/com/android/photos/drawables/
DDataUriThumbnailDrawable.java35 thumbnail = exif.getThumbnail(); in getPreferredImageBytes()
/packages/services/Mtp/src/com/android/mtp/
DMtpManager.java179 byte[] getThumbnail(int deviceId, int objectHandle) throws IOException { in getThumbnail() method in MtpManager
183 device.getThumbnail(objectHandle), in getThumbnail()
DPipeManager.java105 stream.write(mManager.getThumbnail( in run()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DThumbnailCache.java73 public Result getThumbnail(Uri uri, UserId userId, Point size) { in getThumbnail() method in ThumbnailCache
267 public @Nullable Bitmap getThumbnail() { in getThumbnail() method in ThumbnailCache.Result
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMtpClient.java418 public byte[] getThumbnail(String deviceName, int objectHandle) { in getThumbnail() method in MtpClient
423 return device.getThumbnail(objectHandle); in getThumbnail()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DIconHelper.java209 final Result result = mThumbnailCache.getThumbnail(uri, userId, mCurrentSize); in loadThumbnail()
212 final Bitmap cachedThumbnail = result.getThumbnail(); in loadThumbnail()
/packages/apps/LegacyCamera/src/com/android/camera/
DThumbnail.java165 bitmap = Images.Thumbnails.getThumbnail(resolver, image.id, in getLastThumbnail()
169 bitmap = Video.Thumbnails.getThumbnail(resolver, video.id, in getLastThumbnail()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DMtpThumbnailTileView.java70 return MtpBitmapFetch.getThumbnail(device, info); in fetchMtpImageDataFromDevice()
/packages/apps/Gallery/src/com/android/camera/gallery/
DVideoObject.java112 return BitmapManager.instance().getThumbnail(mContentResolver, in miniThumbBitmap()
DImage.java156 bitmap = BitmapManager.instance().getThumbnail(mContentResolver, mId, in thumbBitmap()
DBaseImage.java172 b = BitmapManager.instance().getThumbnail(mContentResolver, id, in miniThumbBitmap()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DFileImageRequest.java54 thumbnail = exif.getThumbnail(); in loadBitmapInternal()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/converter/category/
DDefaultCategoryFactory.kt69 thumbAsset = getThumbnail(context), in <lambda>()
/packages/providers/MediaProvider/apex/framework/java/android/provider/
DMediaStore.java2654 static @Nullable Bitmap getThumbnail(@NonNull ContentResolver cr, @NonNull Uri uri, in getThumbnail() method in MediaStore.InternalThumbnails
3061 public static Bitmap getThumbnail(ContentResolver cr, long imageId, int kind, in getThumbnail() method in MediaStore.Images.Thumbnails
3065 return InternalThumbnails.getThumbnail(cr, uri, kind, options); in getThumbnail()
3107 public static Bitmap getThumbnail(ContentResolver cr, long imageId, long groupId, in getThumbnail() method in MediaStore.Images.Thumbnails
3109 return getThumbnail(cr, imageId, kind, options); in getThumbnail()
4330 public static Bitmap getThumbnail(ContentResolver cr, long videoId, int kind, in getThumbnail() method in MediaStore.Video.Thumbnails
4334 return InternalThumbnails.getThumbnail(cr, uri, kind, options); in getThumbnail()
4372 public static Bitmap getThumbnail(ContentResolver cr, long videoId, long groupId, in getThumbnail() method in MediaStore.Video.Thumbnails
4374 return getThumbnail(cr, videoId, kind, options); in getThumbnail()

12