Home
last modified time | relevance | path

Searched refs:FakeImageResource (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
DFakeImageRequest.java22 public class FakeImageRequest implements MediaRequest<FakeImageResource> {
38 public FakeImageResource loadMediaBlocking(List<MediaRequest<FakeImageResource>> chainedTask) in loadMediaBlocking()
43 return new FakeImageResource(mSize, mKey); in loadMediaBlocking()
54 public MediaCache<FakeImageResource> getMediaCache() { in getMediaCache()
55 return (MediaCache<FakeImageResource>) MediaCacheManager.get().getOrCreateMediaCacheById( in getMediaCache()
65 public MediaRequestDescriptor<FakeImageResource> getDescriptor() { in getDescriptor()
DMediaResourceManagerTest.java32 private FakeImageResource mImageResource;
33 private BindableMediaRequest<FakeImageResource> mImageRequest;
52 final FakeImageResource loadedResource = mImageResource; in testLoadFromCache()
121 final FakeImageResource resource = mediaResourceManager.requestMediaResourceSync(request); in testLoadImageSynchronously()
149 private MediaResourceLoadListener<FakeImageResource> createAssertListener( in createAssertListener()
151 return new MediaResourceLoadListener<FakeImageResource>() { in createAssertListener()
153 public void onMediaResourceLoaded(final MediaRequest<FakeImageResource> request, in createAssertListener()
154 final FakeImageResource resource, final boolean isCached) { in createAssertListener()
168 final MediaRequest<FakeImageResource> request, final Exception exception) { in createAssertListener()
DFakeMediaCacheManager.java28 return new MediaCache<FakeImageResource>(3, FAKE_IMAGE_CACHE, "FakeImageCache"); in createMediaCacheById()
31 return new MediaCache<FakeImageResource>(10, FAKE_BATCH_IMAGE_CACHE, in createMediaCacheById()
DFakeImageResource.java18 public class FakeImageResource extends RefCountedMediaResource { class
24 public FakeImageResource(final int size, final String imageId) { in FakeImageResource() method in FakeImageResource