Home
last modified time | relevance | path

Searched refs:loadedResource (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DMediaResourceManager.java144 Assert.isTrue(loadResult.loadedResource.getRefCount() > 0); in requestMediaResourceSync()
145 return loadResult.loadedResource; in requestMediaResourceSync()
163 T loadedResource = null; in processMediaRequestInternal() local
173 loadedResource = loadMediaFromRequest(decodeRequest, chainedRequests); in processMediaRequestInternal()
176 loadedResource = cachedResource; in processMediaRequestInternal()
180 loadedResource = loadMediaFromRequest(mediaRequest, chainedRequests); in processMediaRequestInternal()
182 return new MediaLoadingResult<>(loadedResource, cachedResource != null /* fromCache */, in processMediaRequestInternal()
261 Assert.isTrue(result.loadedResource.getRefCount() > 0); in scheduleAsyncMediaRequest()
265 bindableRequest, result.loadedResource, result.fromCache); in scheduleAsyncMediaRequest()
268 result.loadedResource.release(); in scheduleAsyncMediaRequest()
[all …]
DImageRequest.java106 final ImageResource loadedResource = loadMediaInternal(chainedTask); in loadMediaBlocking() local
107 return postProcessOnBitmapResourceLoaded(loadedResource); in loadMediaBlocking()
218 private ImageResource postProcessOnBitmapResourceLoaded(final ImageResource loadedResource) { in postProcessOnBitmapResourceLoaded() argument
219 if (mDescriptor.cropToCircle && loadedResource instanceof DecodedImageResource) { in postProcessOnBitmapResourceLoaded()
222 final Bitmap sourceBitmap = loadedResource.getBitmap(); in postProcessOnBitmapResourceLoaded()
232 loadedResource.getOrientation()); in postProcessOnBitmapResourceLoaded()
234 return loadedResource; in postProcessOnBitmapResourceLoaded()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
DMediaResourceManagerTest.java52 final FakeImageResource loadedResource = mImageResource; in testLoadFromCache() local
56 assertEquals(loadedResource, mImageResource); in testLoadFromCache()