diff options
author | Joe Onorato <joeo@google.com> | 2014-07-22 23:21:12 -0700 |
---|---|---|
committer | Yao Chen <yaochen@google.com> | 2014-07-23 17:56:57 -0700 |
commit | 69b078599b8d8bc3e8f94d6cab881145f4e2c129 (patch) | |
tree | a5e05fdfe4dd495b414a1e6f1f829ae1011f57f7 /api | |
parent | 77bfc8f22892227ebc42afd282bd044742956be2 (diff) | |
download | frameworks_base-69b078599b8d8bc3e8f94d6cab881145f4e2c129.zip frameworks_base-69b078599b8d8bc3e8f94d6cab881145f4e2c129.tar.gz frameworks_base-69b078599b8d8bc3e8f94d6cab881145f4e2c129.tar.bz2 |
Allow apps to be slow at loading children and thumbnails by making those functions allowed to be asynchronous.
Change-Id: Ibcaee3f0f8d9ba14f1b002df9c6d4594c6278045
Diffstat (limited to 'api')
-rw-r--r-- | api/current.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/api/current.txt b/api/current.txt index 164a325..e57120c 100644 --- a/api/current.txt +++ b/api/current.txt @@ -16235,8 +16235,8 @@ package android.media.browse { method public void notifyChildrenChanged(android.net.Uri); method public android.os.IBinder onBind(android.content.Intent); method public abstract android.media.browse.MediaBrowserService.BrowserRoot onGetRoot(java.lang.String, int, android.os.Bundle); - method public abstract android.graphics.Bitmap onGetThumbnail(android.net.Uri, int, int); - method public abstract java.util.List<android.media.browse.MediaBrowserItem> onLoadChildren(android.net.Uri); + method protected abstract void onLoadChildren(android.net.Uri, android.media.browse.MediaBrowserService.Result<java.util.List<android.media.browse.MediaBrowserItem>>); + method protected abstract void onLoadThumbnail(android.net.Uri, int, int, android.media.browse.MediaBrowserService.Result<android.graphics.Bitmap>); method public void setSessionToken(android.media.session.MediaSession.Token); field public static final java.lang.String SERVICE_ACTION = "android.media.browse.MediaBrowserService"; } @@ -16247,6 +16247,11 @@ package android.media.browse { method public android.net.Uri getRootUri(); } + public class MediaBrowserService.Result { + method public void detach(); + method public void sendResult(T); + } + } package android.media.effect { |