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
194 mImageResource = resource; in setImage()
195 mImageResource.addRef(); in setImage()
213 if (mImageResource instanceof GifImageResource) { in setImage()
216 LogUtil.v(TAG, "setImage size: " + mImageResource.getMediaSize() + in setImage()
217 " width: " + mImageResource.getBitmap().getWidth() + in setImage()
218 " heigh: " + mImageResource.getBitmap().getHeight()); in setImage()
237 if (mImageResource != resource) { in onMediaResourceLoaded()
256 if (mImageResource != null) { in releaseImageResource()
257 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
507 if (mImageResource != resource) { in setImageResource()
510 mImageResource = resource; in setImageResource()
515 if (mImageResource != null) { in releaseImageResource()
516 mImageResource.release(); in releaseImageResource()
518 mImageResource = null; in releaseImageResource()