1 // Copyright 2014 Google Inc. All Rights Reserved. 2 3 package android.service.media; 4 5 import android.service.media.IMediaBrowserServiceCallbacks; 6 import android.os.Bundle; 7 import android.os.ResultReceiver; 8 9 /** 10 * Media API allows clients to browse through hierarchy of a user’s media collection, 11 * playback a specific media entry and interact with the now playing queue. 12 * @hide 13 */ 14 oneway interface IMediaBrowserService { connect(String pkg, in Bundle rootHints, IMediaBrowserServiceCallbacks callbacks)15 void connect(String pkg, in Bundle rootHints, IMediaBrowserServiceCallbacks callbacks); disconnect(IMediaBrowserServiceCallbacks callbacks)16 void disconnect(IMediaBrowserServiceCallbacks callbacks); 17 addSubscriptionDeprecated(String uri, IMediaBrowserServiceCallbacks callbacks)18 void addSubscriptionDeprecated(String uri, IMediaBrowserServiceCallbacks callbacks); removeSubscriptionDeprecated(String uri, IMediaBrowserServiceCallbacks callbacks)19 void removeSubscriptionDeprecated(String uri, IMediaBrowserServiceCallbacks callbacks); 20 getMediaItem(String uri, in ResultReceiver cb, IMediaBrowserServiceCallbacks callbacks)21 void getMediaItem(String uri, in ResultReceiver cb, IMediaBrowserServiceCallbacks callbacks); addSubscription(String uri, in IBinder token, in Bundle options, IMediaBrowserServiceCallbacks callbacks)22 void addSubscription(String uri, in IBinder token, in Bundle options, 23 IMediaBrowserServiceCallbacks callbacks); removeSubscription(String uri, in IBinder token, IMediaBrowserServiceCallbacks callbacks)24 void removeSubscription(String uri, in IBinder token, IMediaBrowserServiceCallbacks callbacks); 25 } 26