Home
last modified time | relevance | path

Searched refs:MediaRequest (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DMediaResourceManager.java94 void onMediaResourceLoaded(MediaRequest<T> request, T resource, boolean cached); in onMediaResourceLoaded()
95 void onMediaResourceLoadError(MediaRequest<T> request, Exception exception); in onMediaResourceLoadError()
127 final MediaRequest<T> mediaRequest) { in requestMediaResourceAsync()
137 final MediaRequest<T> mediaRequest) { in requestMediaResourceSync()
160 final MediaRequest<T> mediaRequest) in processMediaRequestInternal()
162 final List<MediaRequest<T>> chainedRequests = new ArrayList<>(); in processMediaRequestInternal()
169 final MediaRequest<T> decodeRequest = (MediaRequest<T>) cachedResource in processMediaRequestInternal()
187 final MediaRequest<T> mediaRequest) { in loadMediaFromCache()
188 if (mediaRequest.getRequestType() != MediaRequest.REQUEST_LOAD_MEDIA) { in loadMediaFromCache()
203 final MediaRequest<T> mediaRequest, final List<MediaRequest<T>> chainedRequests) in loadMediaFromRequest()
[all …]
DDecodedImageResource.java157 MediaRequest<? extends RefCountedMediaResource> getMediaEncodingRequest( in getMediaEncodingRequest()
158 final MediaRequest<? extends RefCountedMediaResource> originalRequest) { in getMediaEncodingRequest()
164 return new EncodeImageRequest((MediaRequest<ImageResource>) originalRequest); in getMediaEncodingRequest()
170 private class EncodeImageRequest implements MediaRequest<ImageResource> {
171 private final MediaRequest<ImageResource> mOriginalImageRequest;
173 public EncodeImageRequest(MediaRequest<ImageResource> originalImageRequest) { in EncodeImageRequest()
186 public ImageResource loadMediaBlocking(List<MediaRequest<ImageResource>> chainedRequests) in loadMediaBlocking()
DAsyncMediaRequestWrapper.java32 createWith(final MediaRequest<T> wrappedRequest, in createWith()
37 private final MediaRequest<T> mWrappedRequest;
40 final MediaRequest<T> wrappedRequest) { in AsyncMediaRequestWrapper()
61 public T loadMediaBlocking(List<MediaRequest<T>> chainedTask) throws Exception { in loadMediaBlocking()
DRefCountedMediaResource.java152 MediaRequest<? extends RefCountedMediaResource> getMediaDecodingRequest( in getMediaDecodingRequest()
153 final MediaRequest<? extends RefCountedMediaResource> originalRequest) { in getMediaDecodingRequest()
157 MediaRequest<? extends RefCountedMediaResource> getMediaEncodingRequest( in getMediaEncodingRequest()
158 final MediaRequest<? extends RefCountedMediaResource> originalRequest) { in getMediaEncodingRequest()
DEncodedImageResource.java103 MediaRequest<? extends RefCountedMediaResource> getMediaDecodingRequest( in getMediaDecodingRequest()
104 final MediaRequest<? extends RefCountedMediaResource> originalRequest) { in getMediaDecodingRequest()
114 private class DecodeImageRequest implements MediaRequest<ImageResource> {
127 public ImageResource loadMediaBlocking(List<MediaRequest<ImageResource>> chainedTask) in loadMediaBlocking()
DBindableMediaRequest.java29 implements MediaRequest<T>, MediaResourceLoadListener<T> {
41 public void onMediaResourceLoaded(final MediaRequest<T> request, final T resource, in onMediaResourceLoaded()
53 public void onMediaResourceLoadError(final MediaRequest<T> request, final Exception exception) { in onMediaResourceLoadError()
DUriImageRequest.java39 protected ImageResource loadMediaInternal(List<MediaRequest<ImageResource>> chainedTasks) in loadMediaInternal()
45 final MediaRequest<ImageResource> chainedTask = (MediaRequest<ImageResource>) in loadMediaInternal()
DImageRequest.java43 implements MediaRequest<ImageResource> {
77 return MediaRequest.REQUEST_LOAD_MEDIA; in getRequestType()
103 public final ImageResource loadMediaBlocking(List<MediaRequest<ImageResource>> chainedTask) in loadMediaBlocking()
110 protected ImageResource loadMediaInternal(List<MediaRequest<ImageResource>> chainedTask) in loadMediaInternal()
DMediaRequest.java28 public interface MediaRequest<T extends RefCountedMediaResource> { interface
45 T loadMediaBlocking(List<MediaRequest<T>> chainedTask) throws Exception; in loadMediaBlocking()
DMediaRequestDescriptor.java27 public abstract MediaRequest<T> buildSyncMediaRequest(Context context); in buildSyncMediaRequest()
35 final MediaRequest<T> syncRequest = buildSyncMediaRequest(context); in buildAsyncMediaRequest()
DVCardRequest.java62 public class VCardRequest implements MediaRequest<VCardResource> {
83 public VCardResource loadMediaBlocking(List<MediaRequest<VCardResource>> chainedTask) in loadMediaBlocking()
321 return MediaRequest.REQUEST_LOAD_MEDIA; in getRequestType()
DCompositeImageRequest.java55 protected ImageResource loadMediaInternal(List<MediaRequest<ImageResource>> chainedTask) { in loadMediaInternal()
63 final MediaRequest<ImageResource> request = in loadMediaInternal()
DVCardRequestDescriptor.java32 public MediaRequest<VCardResource> buildSyncMediaRequest(Context context) { in buildSyncMediaRequest()
DVideoThumbnailRequestDescriptor.java34 public MediaRequest<ImageResource> buildSyncMediaRequest(Context context) { in buildSyncMediaRequest()
DMessagePartVideoThumbnailRequestDescriptor.java35 public MediaRequest<ImageResource> buildSyncMediaRequest(final Context context) { in buildSyncMediaRequest()
DCompositeImageRequestDescriptor.java58 public MediaRequest<ImageResource> buildSyncMediaRequest(final Context context) { in buildSyncMediaRequest()
DFileImageRequestDescriptor.java65 public MediaRequest<ImageResource> buildSyncMediaRequest(final Context context) { in buildSyncMediaRequest()
DAvatarRequestDescriptor.java52 public MediaRequest<ImageResource> buildSyncMediaRequest(final Context context) { in buildSyncMediaRequest()
/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()
61 return MediaRequest.REQUEST_LOAD_MEDIA; in getRequestType()
DMediaResourceManagerTest.java153 public void onMediaResourceLoaded(final MediaRequest<FakeImageResource> request, in createAssertListener()
168 final MediaRequest<FakeImageResource> request, final Exception exception) { in createAssertListener()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactRecipientPhotoManager.java29 import com.android.messaging.datamodel.media.MediaRequest;
73 public void onMediaResourceLoaded(final MediaRequest<ImageResource> request, in populatePhotoBytesAsync()
80 public void onMediaResourceLoadError(final MediaRequest<ImageResource> request, in populatePhotoBytesAsync()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DVCardContactItemData.java26 import com.android.messaging.datamodel.media.MediaRequest;
168 public void onMediaResourceLoaded(final MediaRequest<VCardResource> request, in onMediaResourceLoaded()
179 public void onMediaResourceLoadError(final MediaRequest<VCardResource> request, in onMediaResourceLoadError()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAsyncImageView.java41 import com.android.messaging.datamodel.media.MediaRequest;
235 public void onMediaResourceLoaded(final MediaRequest<ImageResource> request, in onMediaResourceLoaded()
244 final MediaRequest<ImageResource> request, final Exception exception) { in onMediaResourceLoadError()
/packages/apps/Messaging/src/com/android/messaging/ui/photoviewer/
DBuglePhotoBitmapLoader.java29 import com.android.messaging.datamodel.media.MediaRequest;
67 final MediaRequest<ImageResource> imageRequest = in loadInBackground()
/packages/apps/Messaging/src/com/android/messaging/widget/
DBaseWidgetFactory.java38 import com.android.messaging.datamodel.media.MediaRequest;
178 final MediaRequest<ImageResource> imageRequest =

12