Home
last modified time | relevance | path

Searched refs:imageResource (Results 1 – 9 of 9) sorted by relevance

/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DPoolableImageCache.java68 final ImageResource imageResource) { in addResourceToCache() argument
69 mReusablePoolAccessor.onResourceEnterCache(imageResource); in addResourceToCache()
70 return super.addResourceToCache(key, imageResource); in addResourceToCache()
213 if (getPoolKey(imageResource) != INVALID_POOL_KEY) { in onResourceEnterCache()
214 addResourceToPool(imageResource); in onResourceEnterCache()
225 removeResourceFromPool(imageResource); in onResourceLeaveCache()
231 final int poolKey = getPoolKey(imageResource); in addResourceToPool()
238 imageList.addLast(imageResource); in addResourceToPool()
244 final int poolKey = getPoolKey(imageResource); in removeResourceFromPool()
248 imageList.remove(imageResource); in removeResourceFromPool()
[all …]
H A DAvatarRequest.java80 ImageResource imageResource = super.loadMediaInternal(chainedTasks); in loadMediaInternal() local
81 bitmap = imageResource.getBitmap(); in loadMediaInternal()
82 orientation = imageResource.mOrientation; in loadMediaInternal()
/aosp12/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
H A DImageRequestTest.java59 final ImageResource imageResource = imageRequest.loadMediaBlocking(null); in testLoadImageUnspecifiedSize() local
67 assertNotNull(imageResource); in testLoadImageUnspecifiedSize()
68 assertNotNull(imageResource.getBitmap()); in testLoadImageUnspecifiedSize()
71 final int bitmapWidth = imageResource.getBitmap().getWidth(); in testLoadImageUnspecifiedSize()
72 final int bitmapHeight = imageResource.getBitmap().getHeight(); in testLoadImageUnspecifiedSize()
90 final ImageResource imageResource = imageRequest.loadMediaBlocking(null); in testLoadImageWithDownsampling() local
97 assertNotNull(imageResource); in testLoadImageWithDownsampling()
98 assertNotNull(imageResource.getBitmap()); in testLoadImageWithDownsampling()
101 final int bitmapWidth = imageResource.getBitmap().getWidth(); in testLoadImageWithDownsampling()
102 final int bitmapHeight = imageResource.getBitmap().getHeight(); in testLoadImageWithDownsampling()
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/photoviewer/
H A DBuglePhotoBitmapLoader.java69 final ImageResource imageResource = in loadInBackground() local
71 if (imageResource != null) { in loadInBackground()
72 setImageResource(imageResource); in loadInBackground()
/aosp12/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DCameraPicker.java44 public static void setImageResourceId(int imageResource) { in setImageResourceId() argument
45 mImageResource = imageResource; in setImageResourceId()
/aosp12/packages/apps/Messaging/src/com/android/messaging/widget/
H A DBaseWidgetFactory.java180 final ImageResource imageResource =
182 if (imageResource != null) {
183 setAvatarResource(imageResource);
H A DWidgetConversationService.java452 final ImageResource imageResource = in getAttachmentBitmap() local
454 if (imageResource != null && imageResource.getBitmap() != null) { in getAttachmentBitmap()
455 setImageResource(imageResource); in getAttachmentBitmap()
456 return Bitmap.createBitmap(imageResource.getBitmap()); in getAttachmentBitmap()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DCommonControllerOverlay.java311 int imageResource = R.drawable.ic_vidcontrol_reload; in updateViews() local
314 imageResource = R.drawable.ic_vidcontrol_play; in updateViews()
317 imageResource = R.drawable.ic_vidcontrol_pause; in updateViews()
321 mPlayPauseReplayView.setImageResource(imageResource); in updateViews()
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DBugleNotifications.java746 final ImageResource imageResource = in sendNotification() local
748 if (imageResource != null) { in sendNotification()
752 Bitmap imageResourceBitmap = imageResource.getBitmap(); in sendNotification()
761 imageResource.release(); in sendNotification()