HomeSort by relevance Sort by last modified time
    Searched refs:mediaId (Results 1 - 25 of 48) sorted by null

1 2

  /frameworks/support/v4/api23/android/support/v4/media/
MediaBrowserCompatApi23.java 29 public static void getItem(Object browserObj, String mediaId, Object itemCallbackObj) {
30 ((MediaBrowser) browserObj).getItem(mediaId, ((MediaBrowser.ItemCallback) itemCallbackObj));
  /frameworks/support/v4/api24/android/support/v4/media/session/
MediaControllerCompatApi24.java 30 public static void prepareFromMediaId(Object controlsObj, String mediaId, Bundle extras) {
31 ((MediaController.TransportControls) controlsObj).prepareFromMediaId(mediaId, extras);
MediaSessionCompatApi24.java 47 public void onPrepareFromMediaId(String mediaId, Bundle extras);
64 public void onPrepareFromMediaId(String mediaId, Bundle extras) {
65 mCallback.onPrepareFromMediaId(mediaId, extras);
  /packages/apps/Messaging/src/com/android/messaging/datamodel/media/
VideoThumbnailRequest.java 60 final Long mediaId = mDescriptor.getMediaStoreId();
62 if (mediaId != null) {
64 bitmap = Thumbnails.getThumbnail(cr, mediaId, Thumbnails.MICRO_KIND, null);
  /developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/
QueueHelper.java 39 public static List<MediaSession.QueueItem> getPlayingQueue(String mediaId,
43 String[] hierarchy = MediaIDHelper.getHierarchy(mediaId);
46 LogHelper.e(TAG, "Could not build a playing queue for this mediaId: ", mediaId);
63 LogHelper.e(TAG, "Unrecognized category type: ", categoryType, " for mediaId ", mediaId);
80 String mediaId) {
83 if (mediaId.equals(item.getDescription().getMediaId())) {
109 // We create a hierarchy-aware mediaID, so we know what the queue is about by looking
  /developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/
QueueHelper.java 39 public static List<MediaSession.QueueItem> getPlayingQueue(String mediaId,
43 String[] hierarchy = MediaIDHelper.getHierarchy(mediaId);
46 LogHelper.e(TAG, "Could not build a playing queue for this mediaId: ", mediaId);
63 LogHelper.e(TAG, "Unrecognized category type: ", categoryType, " for mediaId ", mediaId);
80 String mediaId) {
83 if (mediaId.equals(item.getDescription().getMediaId())) {
109 // We create a hierarchy-aware mediaID, so we know what the queue is about by looking
  /development/samples/Support4Demos/src/com/example/android/supportv4/media/utils/
QueueHelper.java 40 public static List<MediaSessionCompat.QueueItem> getPlayingQueue(String mediaId,
44 String[] hierarchy = MediaIDHelper.getHierarchy(mediaId);
47 Log.e(TAG, "Could not build a playing queue for this mediaId: " + mediaId);
64 Log.e(TAG, "Unrecognized category type: " + categoryType + " for mediaId " + mediaId);
81 String mediaId) {
84 if (mediaId.equals(item.getDescription().getMediaId())) {
110 // We create a hierarchy-aware mediaID, so we know what the queue is about by looking
  /development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
QueueHelper.java 39 public static List<MediaSession.QueueItem> getPlayingQueue(String mediaId,
43 String[] hierarchy = MediaIDHelper.getHierarchy(mediaId);
46 LogHelper.e(TAG, "Could not build a playing queue for this mediaId: ", mediaId);
63 LogHelper.e(TAG, "Unrecognized category type: ", categoryType, " for mediaId ", mediaId);
80 String mediaId) {
83 if (mediaId.equals(item.getDescription().getMediaId())) {
109 // We create a hierarchy-aware mediaID, so we know what the queue is about by looking
  /frameworks/base/media/java/android/media/session/
ISessionCallback.aidl 33 void onPrepareFromMediaId(String mediaId, in Bundle extras);
37 void onPlayFromMediaId(String mediaId, in Bundle extras);
ISessionController.aidl 54 void prepareFromMediaId(String mediaId, in Bundle extras);
58 void playFromMediaId(String mediaId, in Bundle extras);
MediaController.java 617 * @param mediaId The id of the requested media.
621 public void prepareFromMediaId(String mediaId, Bundle extras) {
622 if (TextUtils.isEmpty(mediaId)) {
627 mSessionBinder.prepareFromMediaId(mediaId, extras);
629 Log.wtf(TAG, "Error calling prepare(" + mediaId + ").", e);
697 * @param mediaId The id of the requested media.
701 public void playFromMediaId(String mediaId, Bundle extras) {
702 if (TextUtils.isEmpty(mediaId)) {
707 mSessionBinder.playFromMediaId(mediaId, extras);
709 Log.wtf(TAG, "Error calling play(" + mediaId + ").", e)
    [all...]
MediaSession.java 535 private void dispatchPrepareFromMediaId(String mediaId, Bundle extras) {
536 postToCallback(CallbackMessageHandler.MSG_PREPARE_MEDIA_ID, mediaId, extras);
551 private void dispatchPlayFromMediaId(String mediaId, Bundle extras) {
552 postToCallback(CallbackMessageHandler.MSG_PLAY_MEDIA_ID, mediaId, extras);
842 * Override to handle requests to prepare for playing a specific mediaId that was provided
850 public void onPrepareFromMediaId(String mediaId, Bundle extras) {
    [all...]
  /frameworks/base/media/java/android/media/
MediaDescription.java 49 private MediaDescription(String mediaId, CharSequence title, CharSequence subtitle,
51 mMediaId = mediaId;
200 * @param mediaId The unique id for the item or null.
203 public Builder setMediaId(@Nullable String mediaId) {
204 mMediaId = mediaId;
  /cts/tests/leanbackjank/app/src/android/leanbackjank/app/data/
VideoProvider.java 32 public static Movie getMovieById(String mediaId) {
33 return sMovieListById.get(mediaId);
  /cts/tests/tests/media/src/android/media/cts/
MediaControllerTest.java 168 final String mediaId = "test-media-id";
171 controls.playFromMediaId(mediaId, extras);
174 assertEquals(mediaId, mCallback.mMediaId);
224 controls.prepareFromMediaId(mediaId, extras);
227 assertEquals(mediaId, mCallback.mMediaId);
386 public void onPlayFromMediaId(String mediaId, Bundle extras) {
389 mMediaId = mediaId;
454 public void onPrepareFromMediaId(String mediaId, Bundle extras) {
457 mMediaId = mediaId;
  /frameworks/support/v4/java/android/support/v4/media/
MediaBrowserCompat.java 295 * @param mediaId The id of the item to retrieve.
298 public void getItem(final @NonNull String mediaId, @NonNull final ItemCallback cb) {
299 mImpl.getItem(mediaId, cb);
711 void getItem(final @NonNull String mediaId, @NonNull final ItemCallback cb);
    [all...]
MediaDescriptionCompat.java 86 private MediaDescriptionCompat(String mediaId, CharSequence title, CharSequence subtitle,
88 mMediaId = mediaId;
349 * @param mediaId The unique id for the item or null.
352 public Builder setMediaId(@Nullable String mediaId) {
353 mMediaId = mediaId;
  /frameworks/support/v4/api21/android/support/v4/media/
MediaDescriptionCompatApi21.java 68 public static void setMediaId(Object builderObj, String mediaId) {
69 ((MediaDescription.Builder)builderObj).setMediaId(mediaId);
  /packages/apps/Music/src/com/android/music/
MediaPickerActivity.java 106 long mediaId;
109 mediaId = mCursor.getLong(mCursor.getColumnIndexOrThrow(
113 mediaId = mCursor.getLong(mCursor.getColumnIndexOrThrow(
117 setResult(RESULT_OK, new Intent().setData(ContentUris.withAppendedId(uri, mediaId)));
  /frameworks/support/v4/api21/android/support/v4/media/session/
MediaSessionCompatApi21.java 139 public void onPlayFromMediaId(String mediaId, Bundle extras);
175 public void onPlayFromMediaId(String mediaId, Bundle extras) {
176 mCallback.onPlayFromMediaId(mediaId, extras);
  /frameworks/support/v4/java/android/support/v4/media/session/
MediaControllerCompat.java 598 * @param mediaId The id of the requested media.
602 public abstract void prepareFromMediaId(String mediaId, Bundle extras);
643 * @param mediaId The uri of the requested media.
647 public abstract void playFromMediaId(String mediaId, Bundle extras);
    [all...]
  /frameworks/base/media/java/android/media/browse/
MediaBrowser.java 410 * @param mediaId The id of the item to retrieve.
413 public void getItem(final @NonNull String mediaId, @NonNull final ItemCallback cb) {
414 if (TextUtils.isEmpty(mediaId)) {
415 throw new IllegalArgumentException("mediaId is empty.");
425 cb.onError(mediaId);
435 cb.onError(mediaId);
440 cb.onError(mediaId);
447 mServiceBinder.getMediaItem(mediaId, receiver, mServiceCallbacks);
453 cb.onError(mediaId);
    [all...]
  /developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
MusicService.java 302 // can set a hierarchy-aware mediaID. We will need to know the media hierarchy
359 public void onPlayFromMediaId(String mediaId, Bundle extras) {
360 LogHelper.d(TAG, "playFromMediaId mediaId:", mediaId, " extras=", extras);
362 // The mediaId used here is not the unique musicId. This one comes from the
363 // MediaBrowser, and is actually a "hierarchy-aware mediaID": a concatenation of
367 mPlayingQueue = QueueHelper.getPlayingQueue(mediaId, mMusicProvider);
370 MediaIDHelper.extractBrowseCategoryValueFromMediaID(mediaId));
375 mCurrentIndexOnQueue = QueueHelper.getMusicIndexOnQueue(mPlayingQueue, mediaId);
378 LogHelper.e(TAG, "playFromMediaId: media ID ", mediaId,
    [all...]
  /developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
MusicService.java 302 // can set a hierarchy-aware mediaID. We will need to know the media hierarchy
359 public void onPlayFromMediaId(String mediaId, Bundle extras) {
360 LogHelper.d(TAG, "playFromMediaId mediaId:", mediaId, " extras=", extras);
362 // The mediaId used here is not the unique musicId. This one comes from the
363 // MediaBrowser, and is actually a "hierarchy-aware mediaID": a concatenation of
367 mPlayingQueue = QueueHelper.getPlayingQueue(mediaId, mMusicProvider);
370 MediaIDHelper.extractBrowseCategoryValueFromMediaID(mediaId));
375 mCurrentIndexOnQueue = QueueHelper.getMusicIndexOnQueue(mPlayingQueue, mediaId);
378 LogHelper.e(TAG, "playFromMediaId: media ID ", mediaId,
    [all...]
  /development/samples/Support4Demos/src/com/example/android/supportv4/media/
MediaBrowserServiceSupport.java 306 // can set a hierarchy-aware mediaID. We will need to know the media hierarchy
363 public void onPlayFromMediaId(String mediaId, Bundle extras) {
364 Log.d(TAG, "playFromMediaId mediaId:" + mediaId + " extras=" + extras);
366 // The mediaId used here is not the unique musicId. This one comes from the
367 // MediaBrowser, and is actually a "hierarchy-aware mediaID": a concatenation of
371 mPlayingQueue = QueueHelper.getPlayingQueue(mediaId, mMusicProvider);
374 MediaIDHelper.extractBrowseCategoryValueFromMediaID(mediaId));
379 mCurrentIndexOnQueue = QueueHelper.getMusicIndexOnQueue(mPlayingQueue, mediaId);
382 Log.e(TAG, "playFromMediaId: media ID " + mediaId
    [all...]

Completed in 3409 milliseconds

1 2