Home
last modified time | relevance | path

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

/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DPoolableImageCache.java68 final ImageResource imageResource) { in addResourceToCache() argument
69 mReusablePoolAccessor.onResourceEnterCache(imageResource); in addResourceToCache()
70 return super.addResourceToCache(key, imageResource); in addResourceToCache()
212 void onResourceEnterCache(final ImageResource imageResource) { in onResourceEnterCache() argument
213 if (getPoolKey(imageResource) != INVALID_POOL_KEY) { in onResourceEnterCache()
214 addResourceToPool(imageResource); in onResourceEnterCache()
223 void onResourceLeaveCache(final ImageResource imageResource) { in onResourceLeaveCache() argument
224 if (getPoolKey(imageResource) != INVALID_POOL_KEY) { in onResourceLeaveCache()
225 removeResourceFromPool(imageResource); in onResourceLeaveCache()
229 private void addResourceToPool(final ImageResource imageResource) { in addResourceToPool() argument
[all …]
DAvatarRequest.java80 ImageResource imageResource = super.loadMediaInternal(chainedTasks); in loadMediaInternal() local
81 bitmap = imageResource.getBitmap(); in loadMediaInternal()
82 orientation = imageResource.mOrientation; in loadMediaInternal()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
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()
/packages/apps/Messaging/src/com/android/messaging/ui/photoviewer/
DBuglePhotoBitmapLoader.java69 final ImageResource imageResource = in loadInBackground() local
71 if (imageResource != null) { in loadInBackground()
72 setImageResource(imageResource); in loadInBackground()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
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()
/packages/apps/Messaging/src/com/android/messaging/widget/
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()
DBaseWidgetFactory.java180 final ImageResource imageResource =
182 if (imageResource != null) {
183 setAvatarResource(imageResource);
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DCameraPicker.java44 public static void setImageResourceId(int imageResource) { in setImageResourceId() argument
45 mImageResource = imageResource; in setImageResourceId()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
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()