Home
last modified time | relevance | path

Searched refs:mediaId (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/utils/
DQueueHelper.java40 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/java/android/support/v4/media/
DMediaBrowserCompat.java298 public void getItem(final @NonNull String mediaId, @NonNull final ItemCallback cb) { in getItem() argument
299 mImpl.getItem(mediaId, cb); in getItem()
741 void getItem(final @NonNull String mediaId, @NonNull final ItemCallback cb); in getItem() argument
1002 public void getItem(@NonNull final String mediaId, @NonNull final ItemCallback cb) { in getItem() argument
1003 if (TextUtils.isEmpty(mediaId)) { in getItem()
1014 cb.onError(mediaId); in getItem()
1019 ResultReceiver receiver = new ItemReceiver(mediaId, cb, mHandler); in getItem()
1021 mServiceBinderWrapper.getMediaItem(mediaId, receiver, mCallbacksMessenger); in getItem()
1027 cb.onError(mediaId); in getItem()
1447 public void getItem(@NonNull final String mediaId, @NonNull final ItemCallback cb) { in getItem() argument
[all …]
DMediaDescriptionCompat.java148 private MediaDescriptionCompat(String mediaId, CharSequence title, CharSequence subtitle, in MediaDescriptionCompat() argument
150 mMediaId = mediaId; in MediaDescriptionCompat()
414 public Builder setMediaId(@Nullable String mediaId) { in setMediaId() argument
415 mMediaId = mediaId; in setMediaId()
DMediaBrowserServiceCompat.java650 public void getMediaItem(final String mediaId, final ResultReceiver receiver, in getMediaItem() argument
652 if (TextUtils.isEmpty(mediaId) || receiver == null) { in getMediaItem()
663 Log.w(TAG, "getMediaItem for callback that isn't registered id=" + mediaId); in getMediaItem()
666 performLoadItem(mediaId, connection, receiver); in getMediaItem()
705 void onLoadChildren(String mediaId, List<MediaBrowserCompat.MediaItem> list, Bundle options) in onLoadChildren() argument
741 public void onLoadChildren(String mediaId, List<MediaBrowserCompat.MediaItem> list, in onLoadChildren() argument
744 data.putString(DATA_MEDIA_ITEM_ID, mediaId); in onLoadChildren()
/frameworks/support/media-compat/api24/android/support/v4/media/session/
DMediaSessionCompatApi24.java47 public void onPrepareFromMediaId(String mediaId, Bundle extras); in onPrepareFromMediaId() argument
64 public void onPrepareFromMediaId(String mediaId, Bundle extras) { in onPrepareFromMediaId() argument
65 mCallback.onPrepareFromMediaId(mediaId, extras); in onPrepareFromMediaId()
DMediaControllerCompatApi24.java30 public static void prepareFromMediaId(Object controlsObj, String mediaId, Bundle extras) { in prepareFromMediaId() argument
31 ((MediaController.TransportControls) controlsObj).prepareFromMediaId(mediaId, extras); in prepareFromMediaId()
/frameworks/base/media/java/android/media/
DMediaDescription.java49 private MediaDescription(String mediaId, CharSequence title, CharSequence subtitle, in MediaDescription() argument
51 mMediaId = mediaId; in MediaDescription()
203 public Builder setMediaId(@Nullable String mediaId) { in setMediaId() argument
204 mMediaId = mediaId; in setMediaId()
DMediaMetadata.java495 String mediaId = getString(METADATA_KEY_MEDIA_ID); in getDescription() local
541 bob.setMediaId(mediaId); in getDescription()
/frameworks/base/media/java/android/service/media/
DIMediaBrowserServiceCallbacks.aidl25 void onLoadChildren(String mediaId, in ParceledListSlice list); in onLoadChildren() argument
26 void onLoadChildrenWithOptions(String mediaId, in ParceledListSlice list, in Bundle options); in onLoadChildrenWithOptions() argument
DMediaBrowserService.java305 public void getMediaItem(final String mediaId, final ResultReceiver receiver, in getMediaItem() argument
307 if (TextUtils.isEmpty(mediaId) || receiver == null) { in getMediaItem()
317 Log.w(TAG, "getMediaItem for callback that isn't registered id=" + mediaId); in getMediaItem()
320 performLoadItem(mediaId, connection, receiver); in getMediaItem()
/frameworks/support/media-compat/api23/android/support/v4/media/
DMediaBrowserCompatApi23.java29 public static void getItem(Object browserObj, String mediaId, Object itemCallbackObj) { in getItem() argument
30 ((MediaBrowser) browserObj).getItem(mediaId, ((MediaBrowser.ItemCallback) itemCallbackObj)); in getItem()
/frameworks/base/media/java/android/media/session/
DISessionCallback.aidl33 void onPrepareFromMediaId(String mediaId, in Bundle extras); in onPrepareFromMediaId() argument
37 void onPlayFromMediaId(String mediaId, in Bundle extras); in onPlayFromMediaId() argument
DMediaController.java621 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()
DMediaSession.java535 private void dispatchPrepareFromMediaId(String mediaId, Bundle extras) { in dispatchPrepareFromMediaId() argument
536 postToCallback(CallbackMessageHandler.MSG_PREPARE_MEDIA_ID, mediaId, extras); in dispatchPrepareFromMediaId()
551 private void dispatchPlayFromMediaId(String mediaId, Bundle extras) { in dispatchPlayFromMediaId() argument
552 postToCallback(CallbackMessageHandler.MSG_PLAY_MEDIA_ID, mediaId, extras); in dispatchPlayFromMediaId()
850 public void onPrepareFromMediaId(String mediaId, Bundle extras) { in onPrepareFromMediaId() argument
896 public void onPlayFromMediaId(String mediaId, Bundle extras) { in onPlayFromMediaId() argument
1018 public void onPrepareFromMediaId(String mediaId, Bundle extras) { in onPrepareFromMediaId() argument
1021 session.dispatchPrepareFromMediaId(mediaId, extras); in onPrepareFromMediaId()
1050 public void onPlayFromMediaId(String mediaId, Bundle extras) { in onPlayFromMediaId() argument
1053 session.dispatchPlayFromMediaId(mediaId, extras); in onPlayFromMediaId()
DISessionController.aidl54 void prepareFromMediaId(String mediaId, in Bundle extras); in prepareFromMediaId() argument
58 void playFromMediaId(String mediaId, in Bundle extras); in playFromMediaId() argument
/frameworks/support/media-compat/java/android/support/v4/media/session/
DMediaControllerCompat.java622 public abstract void prepareFromMediaId(String mediaId, Bundle extras); in prepareFromMediaId() argument
667 public abstract void playFromMediaId(String mediaId, Bundle extras); in playFromMediaId() argument
1099 public void prepareFromMediaId(String mediaId, Bundle extras) { in prepareFromMediaId() argument
1101 mBinder.prepareFromMediaId(mediaId, extras); in prepareFromMediaId()
1135 public void playFromMediaId(String mediaId, Bundle extras) { in playFromMediaId() argument
1137 mBinder.playFromMediaId(mediaId, extras); in playFromMediaId()
1387 public void prepareFromMediaId(String mediaId, Bundle extras) { in prepareFromMediaId() argument
1389 bundle.putString(MediaSessionCompat.ACTION_ARGUMENT_MEDIA_ID, mediaId); in prepareFromMediaId()
1457 public void playFromMediaId(String mediaId, Bundle extras) { in playFromMediaId() argument
1458 MediaControllerCompatApi21.TransportControls.playFromMediaId(mControlsObj, mediaId, in playFromMediaId()
[all …]
DMediaSessionCompat.java647 public void onPrepareFromMediaId(String mediaId, Bundle extras) { in onPrepareFromMediaId() argument
685 public void onPlayFromMediaId(String mediaId, Bundle extras) { in onPlayFromMediaId() argument
792 public void onPlayFromMediaId(String mediaId, Bundle extras) { in onPlayFromMediaId() argument
793 Callback.this.onPlayFromMediaId(mediaId, extras); in onPlayFromMediaId()
855 String mediaId = extras.getString(ACTION_ARGUMENT_MEDIA_ID); in onCustomAction() local
857 Callback.this.onPrepareFromMediaId(mediaId, bundle); in onCustomAction()
888 public void onPrepareFromMediaId(String mediaId, Bundle extras) { in onPrepareFromMediaId() argument
889 Callback.this.onPrepareFromMediaId(mediaId, extras); in onPrepareFromMediaId()
1914 public void prepareFromMediaId(String mediaId, Bundle extras) throws RemoteException { in prepareFromMediaId() argument
1915 postToHandler(MessageHandler.MSG_PREPARE_MEDIA_ID, mediaId, extras); in prepareFromMediaId()
[all …]
/frameworks/support/media-compat/api21/android/support/v4/media/
DMediaDescriptionCompatApi21.java68 public static void setMediaId(Object builderObj, String mediaId) { in setMediaId() argument
69 ((MediaDescription.Builder)builderObj).setMediaId(mediaId); in setMediaId()
/frameworks/base/media/java/android/media/browse/
DMediaBrowser.java413 public void getItem(final @NonNull String mediaId, @NonNull final ItemCallback cb) { in getItem() argument
414 if (TextUtils.isEmpty(mediaId)) { in getItem()
425 cb.onError(mediaId); in getItem()
435 cb.onError(mediaId); in getItem()
440 cb.onError(mediaId); in getItem()
447 mServiceBinder.getMediaItem(mediaId, receiver, mServiceCallbacks); in getItem()
453 cb.onError(mediaId); in getItem()
/frameworks/support/media-compat/api21/android/support/v4/media/session/
DMediaSessionCompatApi21.java139 public void onPlayFromMediaId(String mediaId, Bundle extras); in onPlayFromMediaId() argument
175 public void onPlayFromMediaId(String mediaId, Bundle extras) { in onPlayFromMediaId() argument
176 mCallback.onPlayFromMediaId(mediaId, extras); in onPlayFromMediaId()
DMediaControllerCompatApi21.java159 public static void playFromMediaId(Object controlsObj, String mediaId, Bundle extras) { in playFromMediaId() argument
160 ((MediaController.TransportControls) controlsObj).playFromMediaId(mediaId, extras); in playFromMediaId()
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
DMediaBrowserServiceSupport.java400 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()
DPlayback.java150 String mediaId = item.getDescription().getMediaId(); in play() local
151 boolean mediaHasChanged = !TextUtils.equals(mediaId, mCurrentMediaId); in play()
154 mCurrentMediaId = mediaId; in play()
DBrowseFragment.java167 public static BrowseFragment newInstance(String mediaId) { in newInstance() argument
169 args.putString(ARG_MEDIA_ID, mediaId); in newInstance()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionRecord.java918 public void prepareFromMediaId(String mediaId, Bundle extras) { in prepareFromMediaId() argument
920 mCb.onPrepareFromMediaId(mediaId, extras); in prepareFromMediaId()
950 public void playFromMediaId(String mediaId, Bundle extras) { in playFromMediaId() argument
952 mCb.onPlayFromMediaId(mediaId, extras); in playFromMediaId()
1184 public void prepareFromMediaId(String mediaId, Bundle extras) in prepareFromMediaId() argument
1187 mSessionCb.prepareFromMediaId(mediaId, extras); in prepareFromMediaId()
1209 public void playFromMediaId(String mediaId, Bundle extras) throws RemoteException { in playFromMediaId() argument
1211 mSessionCb.playFromMediaId(mediaId, extras); in playFromMediaId()

12