/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/utils/ |
D | QueueHelper.java | 40 public static List<MediaSessionCompat.QueueItem> getPlayingQueue(String mediaId, in getPlayingQueue() argument 44 String[] hierarchy = MediaIDHelper.getHierarchy(mediaId); in getPlayingQueue() 47 Log.e(TAG, "Could not build a playing queue for this mediaId: " + mediaId); in getPlayingQueue() 64 Log.e(TAG, "Unrecognized category type: " + categoryType + " for mediaId " + mediaId); in getPlayingQueue() 81 String mediaId) { in getMusicIndexOnQueue() argument 84 if (mediaId.equals(item.getDescription().getMediaId())) { in getMusicIndexOnQueue()
|
/frameworks/support/media-compat/api24/android/support/v4/media/session/ |
D | MediaSessionCompatApi24.java | 49 public void onPrepareFromMediaId(String mediaId, Bundle extras); in onPrepareFromMediaId() argument 66 public void onPrepareFromMediaId(String mediaId, Bundle extras) { in onPrepareFromMediaId() argument 67 mCallback.onPrepareFromMediaId(mediaId, extras); in onPrepareFromMediaId()
|
D | MediaControllerCompatApi24.java | 32 public static void prepareFromMediaId(Object controlsObj, String mediaId, Bundle extras) { in prepareFromMediaId() argument 33 ((MediaController.TransportControls) controlsObj).prepareFromMediaId(mediaId, extras); in prepareFromMediaId()
|
/frameworks/base/media/java/android/service/media/ |
D | IMediaBrowserServiceCallbacks.aidl | 25 void onLoadChildren(String mediaId, in ParceledListSlice list); in onLoadChildren() argument 26 void onLoadChildrenWithOptions(String mediaId, in ParceledListSlice list, in Bundle options); in onLoadChildrenWithOptions() argument
|
D | MediaBrowserService.java | 310 public void getMediaItem(final String mediaId, final ResultReceiver receiver, in getMediaItem() argument 318 Log.w(TAG, "getMediaItem for callback that isn't registered id=" + mediaId); in getMediaItem() 321 performLoadItem(mediaId, connection, receiver); in getMediaItem()
|
/frameworks/base/media/java/android/media/ |
D | MediaDescription.java | 111 private MediaDescription(String mediaId, CharSequence title, CharSequence subtitle, in MediaDescription() argument 113 mMediaId = mediaId; in MediaDescription() 265 public Builder setMediaId(@Nullable String mediaId) { in setMediaId() argument 266 mMediaId = mediaId; in setMediaId()
|
/frameworks/support/media-compat/java/android/support/v4/media/ |
D | MediaBrowserCompat.java | 381 public void getItem(final @NonNull String mediaId, @NonNull final ItemCallback cb) { in getItem() argument 382 mImpl.getItem(mediaId, cb); in getItem() 948 void getItem(final @NonNull String mediaId, @NonNull final ItemCallback cb); in getItem() argument 1222 public void getItem(@NonNull final String mediaId, @NonNull final ItemCallback cb) { in getItem() argument 1223 if (TextUtils.isEmpty(mediaId)) { in getItem() 1234 cb.onError(mediaId); in getItem() 1239 ResultReceiver receiver = new ItemReceiver(mediaId, cb, mHandler); in getItem() 1241 mServiceBinderWrapper.getMediaItem(mediaId, receiver, mCallbacksMessenger); in getItem() 1243 Log.i(TAG, "Remote error getting media item: " + mediaId); in getItem() 1247 cb.onError(mediaId); in getItem() [all …]
|
D | MediaDescriptionCompat.java | 187 MediaDescriptionCompat(String mediaId, CharSequence title, CharSequence subtitle, in MediaDescriptionCompat() argument 189 mMediaId = mediaId; in MediaDescriptionCompat() 453 public Builder setMediaId(@Nullable String mediaId) { in setMediaId() argument 454 mMediaId = mediaId; in setMediaId()
|
D | MediaBrowserServiceCompat.java | 822 public void getMediaItem(final String mediaId, final ResultReceiver receiver, in getMediaItem() argument 824 if (TextUtils.isEmpty(mediaId) || receiver == null) { in getMediaItem() 835 Log.w(TAG, "getMediaItem for callback that isn't registered id=" + mediaId); in getMediaItem() 838 performLoadItem(mediaId, connection, receiver); in getMediaItem() 920 void onLoadChildren(String mediaId, List<MediaBrowserCompat.MediaItem> list, Bundle options) in onLoadChildren() argument 956 public void onLoadChildren(String mediaId, List<MediaBrowserCompat.MediaItem> list, in onLoadChildren() argument 959 data.putString(DATA_MEDIA_ITEM_ID, mediaId); in onLoadChildren()
|
/frameworks/support/media-compat/api23/android/support/v4/media/ |
D | MediaBrowserCompatApi23.java | 31 public static void getItem(Object browserObj, String mediaId, Object itemCallbackObj) { in getItem() argument 32 ((MediaBrowser) browserObj).getItem(mediaId, ((MediaBrowser.ItemCallback) itemCallbackObj)); in getItem()
|
/frameworks/support/media-compat/tests/src/android/support/v4/media/session/ |
D | MediaControllerCompatTest.java | 291 final String mediaId = "test-media-id"; in testTransportControlsAndMediaSessionCallback() local 294 controls.playFromMediaId(mediaId, extras); in testTransportControlsAndMediaSessionCallback() 297 assertEquals(mediaId, mCallback.mMediaId); in testTransportControlsAndMediaSessionCallback() 349 controls.prepareFromMediaId(mediaId, extras); in testTransportControlsAndMediaSessionCallback() 352 assertEquals(mediaId, mCallback.mMediaId); in testTransportControlsAndMediaSessionCallback() 616 public void onPlayFromMediaId(String mediaId, Bundle extras) { in onPlayFromMediaId() argument 619 mMediaId = mediaId; in onPlayFromMediaId() 684 public void onPrepareFromMediaId(String mediaId, Bundle extras) { in onPrepareFromMediaId() argument 687 mMediaId = mediaId; in onPrepareFromMediaId() 749 String mediaId = description.getMediaId(); in onRemoveQueueItem() local [all …]
|
/frameworks/base/media/java/android/media/session/ |
D | ISessionCallback.aidl | 33 void onPrepareFromMediaId(String mediaId, in Bundle extras); in onPrepareFromMediaId() argument 37 void onPlayFromMediaId(String mediaId, in Bundle extras); in onPlayFromMediaId() argument
|
D | MediaController.java | 621 public void prepareFromMediaId(String mediaId, Bundle extras) { in prepareFromMediaId() argument 622 if (TextUtils.isEmpty(mediaId)) { in prepareFromMediaId() 627 mSessionBinder.prepareFromMediaId(mediaId, extras); in prepareFromMediaId() 629 Log.wtf(TAG, "Error calling prepare(" + mediaId + ").", e); in prepareFromMediaId() 701 public void playFromMediaId(String mediaId, Bundle extras) { in playFromMediaId() argument 702 if (TextUtils.isEmpty(mediaId)) { in playFromMediaId() 707 mSessionBinder.playFromMediaId(mediaId, extras); in playFromMediaId() 709 Log.wtf(TAG, "Error calling play(" + mediaId + ").", e); in playFromMediaId()
|
D | ISessionController.aidl | 54 void prepareFromMediaId(String mediaId, in Bundle extras); in prepareFromMediaId() argument 58 void playFromMediaId(String mediaId, in Bundle extras); in playFromMediaId() argument
|
D | MediaSession.java | 543 private void dispatchPrepareFromMediaId(String mediaId, Bundle extras) { in dispatchPrepareFromMediaId() argument 544 postToCallback(CallbackMessageHandler.MSG_PREPARE_MEDIA_ID, mediaId, extras); in dispatchPrepareFromMediaId() 559 private void dispatchPlayFromMediaId(String mediaId, Bundle extras) { in dispatchPlayFromMediaId() argument 560 postToCallback(CallbackMessageHandler.MSG_PLAY_MEDIA_ID, mediaId, extras); in dispatchPlayFromMediaId() 858 public void onPrepareFromMediaId(String mediaId, Bundle extras) { in onPrepareFromMediaId() argument 904 public void onPlayFromMediaId(String mediaId, Bundle extras) { in onPlayFromMediaId() argument 1026 public void onPrepareFromMediaId(String mediaId, Bundle extras) { in onPrepareFromMediaId() argument 1029 session.dispatchPrepareFromMediaId(mediaId, extras); in onPrepareFromMediaId() 1058 public void onPlayFromMediaId(String mediaId, Bundle extras) { in onPlayFromMediaId() argument 1061 session.dispatchPlayFromMediaId(mediaId, extras); in onPlayFromMediaId()
|
/frameworks/base/media/java/android/media/browse/ |
D | MediaBrowser.java | 428 public void getItem(final @NonNull String mediaId, @NonNull final ItemCallback cb) { in getItem() argument 429 if (TextUtils.isEmpty(mediaId)) { in getItem() 440 cb.onError(mediaId); in getItem() 450 cb.onError(mediaId); in getItem() 455 cb.onError(mediaId); in getItem() 462 mServiceBinder.getMediaItem(mediaId, receiver, mServiceCallbacks); in getItem() 468 cb.onError(mediaId); in getItem() 955 public void onError(@NonNull String mediaId) { in onError() argument
|
/frameworks/support/media-compat/api21/android/support/v4/media/ |
D | MediaDescriptionCompatApi21.java | 70 public static void setMediaId(Object builderObj, String mediaId) { in setMediaId() argument 71 ((MediaDescription.Builder)builderObj).setMediaId(mediaId); in setMediaId()
|
/frameworks/support/media-compat/api21/android/support/v4/media/session/ |
D | MediaSessionCompatApi21.java | 159 void onPlayFromMediaId(String mediaId, Bundle extras); in onPlayFromMediaId() argument 197 public void onPlayFromMediaId(String mediaId, Bundle extras) { in onPlayFromMediaId() argument 198 mCallback.onPlayFromMediaId(mediaId, extras); in onPlayFromMediaId()
|
D | MediaControllerCompatApi21.java | 173 public static void playFromMediaId(Object controlsObj, String mediaId, Bundle extras) { in playFromMediaId() argument 174 ((MediaController.TransportControls) controlsObj).playFromMediaId(mediaId, extras); in playFromMediaId()
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/ |
D | MediaBrowserServiceSupport.java | 400 public void onPlayFromMediaId(String mediaId, Bundle extras) { in onPlayFromMediaId() argument 401 Log.d(TAG, "playFromMediaId mediaId:" + mediaId + " extras=" + extras); in onPlayFromMediaId() 408 mPlayingQueue = QueueHelper.getPlayingQueue(mediaId, mMusicProvider); in onPlayFromMediaId() 411 MediaIDHelper.extractBrowseCategoryValueFromMediaID(mediaId)); in onPlayFromMediaId() 416 mCurrentIndexOnQueue = QueueHelper.getMusicIndexOnQueue(mPlayingQueue, mediaId); in onPlayFromMediaId() 419 Log.e(TAG, "playFromMediaId: media ID " + mediaId in onPlayFromMediaId()
|
D | Playback.java | 150 String mediaId = item.getDescription().getMediaId(); in play() local 151 boolean mediaHasChanged = !TextUtils.equals(mediaId, mCurrentMediaId); in play() 154 mCurrentMediaId = mediaId; in play()
|
D | BrowseFragment.java | 171 public static BrowseFragment newInstance(String mediaId) { in newInstance() argument 173 args.putString(ARG_MEDIA_ID, mediaId); in newInstance()
|
/frameworks/support/media-compat/java/android/support/v4/media/session/ |
D | MediaControllerCompat.java | 966 public abstract void prepareFromMediaId(String mediaId, Bundle extras); in prepareFromMediaId() argument 1011 public abstract void playFromMediaId(String mediaId, Bundle extras); in playFromMediaId() argument 1571 public void prepareFromMediaId(String mediaId, Bundle extras) { in prepareFromMediaId() argument 1573 mBinder.prepareFromMediaId(mediaId, extras); in prepareFromMediaId() 1607 public void playFromMediaId(String mediaId, Bundle extras) { in playFromMediaId() argument 1609 mBinder.playFromMediaId(mediaId, extras); in playFromMediaId() 2193 public void prepareFromMediaId(String mediaId, Bundle extras) { in prepareFromMediaId() argument 2195 bundle.putString(MediaSessionCompat.ACTION_ARGUMENT_MEDIA_ID, mediaId); in prepareFromMediaId() 2291 public void playFromMediaId(String mediaId, Bundle extras) { in playFromMediaId() argument 2292 MediaControllerCompatApi21.TransportControls.playFromMediaId(mControlsObj, mediaId, in playFromMediaId() [all …]
|
D | MediaSessionCompat.java | 995 public void onPrepareFromMediaId(String mediaId, Bundle extras) { in onPrepareFromMediaId() argument 1033 public void onPlayFromMediaId(String mediaId, Bundle extras) { in onPlayFromMediaId() argument 1304 public void onPlayFromMediaId(String mediaId, Bundle extras) { in onPlayFromMediaId() argument 1305 Callback.this.onPlayFromMediaId(mediaId, extras); in onPlayFromMediaId() 1367 String mediaId = extras.getString(ACTION_ARGUMENT_MEDIA_ID); in onCustomAction() local 1369 Callback.this.onPrepareFromMediaId(mediaId, bundle); in onCustomAction() 1420 public void onPrepareFromMediaId(String mediaId, Bundle extras) { in onPrepareFromMediaId() argument 1421 Callback.this.onPrepareFromMediaId(mediaId, extras); in onPrepareFromMediaId() 2593 public void prepareFromMediaId(String mediaId, Bundle extras) throws RemoteException { in prepareFromMediaId() argument 2594 postToHandler(MessageHandler.MSG_PREPARE_MEDIA_ID, mediaId, extras); in prepareFromMediaId() [all …]
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionRecord.java | 958 public void prepareFromMediaId(String mediaId, Bundle extras) { in prepareFromMediaId() argument 960 mCb.onPrepareFromMediaId(mediaId, extras); in prepareFromMediaId() 990 public void playFromMediaId(String mediaId, Bundle extras) { in playFromMediaId() argument 992 mCb.onPlayFromMediaId(mediaId, extras); in playFromMediaId() 1225 public void prepareFromMediaId(String mediaId, Bundle extras) in prepareFromMediaId() argument 1228 mSessionCb.prepareFromMediaId(mediaId, extras); in prepareFromMediaId() 1250 public void playFromMediaId(String mediaId, Bundle extras) throws RemoteException { in playFromMediaId() argument 1252 mSessionCb.playFromMediaId(mediaId, extras); in playFromMediaId()
|