Home
last modified time | relevance | path

Searched refs:mImageResource (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
DMediaResourceManagerTest.java32 private FakeImageResource mImageResource; field in MediaResourceManagerTest
51 assertEquals("image1", mImageResource.getImageId()); in testLoadFromCache()
52 final FakeImageResource loadedResource = mImageResource; in testLoadFromCache()
56 assertEquals(loadedResource, mImageResource); in testLoadFromCache()
67 assertEquals("image1", mImageResource.getImageId()); in testCacheEviction()
71 assertEquals("image2", mImageResource.getImageId()); in testCacheEviction()
75 assertEquals("image3", mImageResource.getImageId()); in testCacheEviction()
79 assertEquals("image1", mImageResource.getImageId()); in testCacheEviction()
90 assertEquals("image1", mImageResource.getImageId()); in testReclaimMemoryFromMediaCache()
96 assertEquals(0, mImageResource.getRefCount()); in testReclaimMemoryFromMediaCache()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/photoviewer/
DBuglePhotoBitmapLoader.java40 private ImageResource mImageResource; field in BuglePhotoBitmapLoader
74 result.drawable = mImageResource.getDrawable(context.getResources()); in loadInBackground()
121 if (takeContentChanged() || (mImageResource == null)) { in onStartLoading()
172 if (mImageResource != resource) { in setImageResource()
175 mImageResource = resource; in setImageResource()
187 if (mImageResource != null) { in releaseImageResource()
188 mImageResource.release(); in releaseImageResource()
190 mImageResource = null; in releaseImageResource()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAsyncImageView.java86 protected ImageResource mImageResource; field in AsyncImageView
192 mImageResource = resource; in setImage()
193 mImageResource.addRef(); in setImage()
211 if (mImageResource instanceof GifImageResource) { in setImage()
214 LogUtil.v(TAG, "setImage size: " + mImageResource.getMediaSize() + in setImage()
215 " width: " + mImageResource.getBitmap().getWidth() + in setImage()
216 " heigh: " + mImageResource.getBitmap().getHeight()); in setImage()
235 if (mImageResource != resource) { in onMediaResourceLoaded()
254 if (mImageResource != null) { in releaseImageResource()
255 mImageResource.release(); in releaseImageResource()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DCameraPicker.java31 private static int mImageResource; field in CameraPicker
39 setImageResource(mImageResource); in CameraPicker()
45 mImageResource = imageResource; in setImageResourceId()
/packages/apps/Messaging/src/com/android/messaging/widget/
DWidgetConversationService.java74 private ImageResource mImageResource; field in WidgetConversationService.WidgetConversationFactory
506 if (mImageResource != resource) { in setImageResource()
509 mImageResource = resource; in setImageResource()
514 if (mImageResource != null) { in releaseImageResource()
515 mImageResource.release(); in releaseImageResource()
517 mImageResource = null; in releaseImageResource()