Home
last modified time | relevance | path

Searched refs:getMediaId (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
DMediaBrowserSupport.java49 mediaController.getTransportControls().playFromMediaId(item.getMediaId(), null); in onMediaItemSelected()
58 .replace(R.id.container, BrowseFragment.newInstance(item.getMediaId())) in onMediaItemSelected()
DMediaBrowserServiceSupport.java348 track.getDescription().getMediaId(), MEDIA_ID_MUSICS_BY_GENRE, genre); in loadChildrenImpl()
586 queueItem.getDescription().getMediaId()); in updateMetadata()
592 + " mediaId from queueItem=" + queueItem.getDescription().getMediaId() in updateMetadata()
594 + " mediaId from track=" + track.getDescription().getMediaId() in updateMetadata()
628 queueItem.getDescription().getMediaId()); in updateMetadata()
718 + item.getDescription().getMediaId()); in getCurrentPlayingMusic()
721 .extractMusicIDFromMediaID(item.getDescription().getMediaId())); in getCurrentPlayingMusic()
DPlayback.java150 String mediaId = item.getDescription().getMediaId(); in play()
163 MediaIDHelper.extractMusicIDFromMediaID(item.getDescription().getMediaId())); in play()
/frameworks/support/media/src/main/java/androidx/media/
DMediaItem2.java82 if (metadata != null && !TextUtils.equals(mediaId, metadata.getMediaId())) { in MediaItem2()
182 if (metadata != null && !TextUtils.equals(mId, metadata.getMediaId())) { in setMetadata()
198 public /*@NonNull*/ String getMediaId() { in getMediaId() method in MediaItem2
DMediaUtils2.java65 .setMediaId(item2.getMediaId()) in createMediaItem()
69 .setMediaId(item2.getMediaId()) in createMediaItem()
104 if (item == null || item.getMediaId() == null) { in createMediaItem2()
110 .setMediaId(item.getMediaId()) in createMediaItem2()
149 metadata2Builder.putString(METADATA_KEY_MEDIA_ID, descCompat.getMediaId()); in createMediaMetadata2()
DDataSourceDesc.java94 public @Nullable String getMediaId() { in getMediaId() method in DataSourceDesc
/frameworks/support/media/api21/android/support/v4/media/
DMediaDescriptionCompatApi21.java29 public static String getMediaId(Object descriptionObj) { in getMediaId() method in MediaDescriptionCompatApi21
30 return ((MediaDescription) descriptionObj).getMediaId(); in getMediaId()
/frameworks/support/media/version-compat-tests/previous/client/src/androidTest/java/android/support/mediacompat/client/
DMediaItemTest.java51 assertEquals(MEDIA_ID, mediaItem.getMediaId()); in testBrowsableMediaItem()
80 assertEquals(MEDIA_ID, mediaItem.getMediaId()); in testPlayableMediaItem()
DMediaBrowserCompatTest.java273 assertEquals(MEDIA_ID_CHILDREN[0], mItemCallback.mLastMediaItem.getMediaId()); in testReconnection()
285 assertEquals(MEDIA_ID_CHILDREN[0], mItemCallback.mLastMediaItem.getMediaId()); in testReconnection()
324 mSubscriptionCallback.mLastChildMediaItems.get(i).getMediaId()); in testSubscribe()
371 mSubscriptionCallback.mLastChildMediaItems.get(i).getMediaId()); in testSubscribeWithOptions()
556 assertEquals(MEDIA_ID_CHILDREN[0], mItemCallback.mLastMediaItem.getMediaId()); in testGetItem()
574 assertEquals(MEDIA_ID_CHILDREN_DELAYED, mItemCallback.mLastMediaItem.getMediaId()); in testGetItemDelayed()
636 assertNotNull(item.getMediaId()); in testSearch()
637 assertTrue(item.getMediaId().contains(SEARCH_QUERY)); in testSearch()
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/android/support/mediacompat/client/
DMediaItemTest.java51 assertEquals(MEDIA_ID, mediaItem.getMediaId()); in testBrowsableMediaItem()
80 assertEquals(MEDIA_ID, mediaItem.getMediaId()); in testPlayableMediaItem()
DMediaBrowserCompatTest.java280 assertEquals(MEDIA_ID_CHILDREN[0], mItemCallback.mLastMediaItem.getMediaId()); in testReconnection()
292 assertEquals(MEDIA_ID_CHILDREN[0], mItemCallback.mLastMediaItem.getMediaId()); in testReconnection()
331 mSubscriptionCallback.mLastChildMediaItems.get(i).getMediaId()); in testSubscribe()
378 mSubscriptionCallback.mLastChildMediaItems.get(i).getMediaId()); in testSubscribeWithOptions()
434 assertEquals(mediaId, mSubscriptionCallback.mLastChildMediaItems.get(0).getMediaId()); in testSubscribeWithOptionsIncludingCompatParcelables()
605 assertEquals(MEDIA_ID_CHILDREN[0], mItemCallback.mLastMediaItem.getMediaId()); in testGetItem()
623 assertEquals(MEDIA_ID_CHILDREN_DELAYED, mItemCallback.mLastMediaItem.getMediaId()); in testGetItemDelayed()
685 assertNotNull(item.getMediaId()); in testSearch()
686 assertTrue(item.getMediaId().contains(SEARCH_QUERY)); in testSearch()
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/androidx/media/test/client/
DMediaController2Test_copied.java316 assertEquals(list.get(i).getMediaId(), mMockAgent.mPlaylist.get(i).getMediaId()); in testSetPlaylist()
337 assertEquals(testList.get(i).getMediaId(), playlist.get(i).getMediaId()); in testGetPlaylist()
372 assertEquals(testMetadata.getMediaId(), mMockAgent.mMetadata.getMediaId()); in testUpdatePlaylistMetadata()
386 assertEquals(testMetadata.getMediaId(), metadata.getMediaId()); in testGetPlaylistMetadata()
406 assertEquals(metadataFromCallback.get().getMediaId(), in testGetPlaylistMetadata()
407 controller.getPlaylistMetadata().getMediaId()); in testGetPlaylistMetadata()
438 assertEquals(item.getMediaId(), metadata.getMediaId()); in testControllerCallback_onPlaylistMetadataChanged()
563 assertEquals(testMediaItem.getMediaId(), mMockAgent.mItem.getMediaId()); in testAddPlaylistItem()
593 assertEquals(testMediaItem.getMediaId(), mMockAgent.mItem.getMediaId()); in testReplacePlaylistItem()
/frameworks/support/media/src/androidTest/java/androidx/media/
DMediaController2Test.java304 assertEquals(list.get(i).getMediaId(), mMockAgent.mPlaylist.get(i).getMediaId()); in testSetPlaylist()
325 assertEquals(testList.get(i).getMediaId(), playlist.get(i).getMediaId()); in testGetPlaylist()
360 assertEquals(testMetadata.getMediaId(), mMockAgent.mMetadata.getMediaId()); in testUpdatePlaylistMetadata()
374 assertEquals(testMetadata.getMediaId(), metadata.getMediaId()); in testGetPlaylistMetadata()
394 assertEquals(metadataFromCallback.get().getMediaId(), in testGetPlaylistMetadata()
395 controller.getPlaylistMetadata().getMediaId()); in testGetPlaylistMetadata()
426 assertEquals(item.getMediaId(), metadata.getMediaId()); in testControllerCallback_onPlaylistMetadataChanged()
548 assertEquals(testMediaItem.getMediaId(), mMockAgent.mItem.getMediaId()); in testAddPlaylistItem()
578 assertEquals(testMediaItem.getMediaId(), mMockAgent.mItem.getMediaId()); in testReplacePlaylistItem()
DMediaBrowser2Test.java149 assertEquals(mediaId, result.getMediaId()); in testGetItem()
209 .getMediaId(), in testGetChildren()
210 result.get(relativeIndex).getMediaId()); in testGetChildren()
303 MockMediaLibraryService2.SEARCH_RESULT.get(originalIndex).getMediaId(), in testSearch()
304 result.get(relativeIndex).getMediaId()); in testSearch()
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/utils/
DQueueHelper.java84 if (mediaId.equals(item.getDescription().getMediaId())) { in getMusicIndexOnQueue()
113 track.getDescription().getMediaId(), categories); in convertToQueue()
/frameworks/av/packages/MediaComponents/src/com/android/media/
DMediaItem2Impl.java59 if (metadata != null && !TextUtils.equals(mediaId, metadata.getMediaId())) { in MediaItem2Impl()
161 if (metadata != null && !TextUtils.equals(mId, metadata.getMediaId())) { in setMetadata_impl()
/frameworks/base/media/java/android/media/
DMediaItem2.java134 public @NonNull String getMediaId() { in getMediaId() method in MediaItem2
DMediaDescription.java138 public @Nullable String getMediaId() { in getMediaId() method in MediaDescription
DMediaMetadata2.java555 public @Nullable String getMediaId() { in getMediaId() method in MediaMetadata2
DDataSourceDesc.java89 public String getMediaId() { in getMediaId() method in DataSourceDesc
/frameworks/support/media/src/main/java/android/support/v4/media/
DMediaDescriptionCompat.java216 public String getMediaId() { in getMediaId() method in MediaDescriptionCompat
374 bob.setMediaId(MediaDescriptionCompatApi21.getMediaId(descriptionObj)); in fromMediaDescription()
/frameworks/support/media/version-compat-tests/previous/service/src/androidTest/java/android/support/mediacompat/service/
DMediaSessionCompatCallbackTest.java251 assertEquals(TEST_MEDIA_ID_1, item.getDescription().getMediaId()); in testQueueItem()
361 assertEquals(TEST_MEDIA_ID_1, mCallback.mQueueDescription.getMediaId()); in testAddRemoveQueueItems()
374 assertEquals(TEST_MEDIA_ID_2, mCallback.mQueueDescription.getMediaId()); in testAddRemoveQueueItems()
382 assertEquals(TEST_MEDIA_ID_1, mCallback.mQueueDescription.getMediaId()); in testAddRemoveQueueItems()
1073 String mediaId = description.getMediaId(); in onRemoveQueueItem()
1075 if (mediaId.equals(mQueue.get(i).getDescription().getMediaId())) { in onRemoveQueueItem()
/frameworks/support/media/version-compat-tests/current/service/src/androidTest/java/android/support/mediacompat/service/
DMediaSessionCompatCallbackTest.java253 assertEquals(TEST_MEDIA_ID_1, item.getDescription().getMediaId()); in testQueueItem()
363 assertEquals(TEST_MEDIA_ID_1, mCallback.mQueueDescription.getMediaId()); in testAddRemoveQueueItems()
376 assertEquals(TEST_MEDIA_ID_2, mCallback.mQueueDescription.getMediaId()); in testAddRemoveQueueItems()
384 assertEquals(TEST_MEDIA_ID_1, mCallback.mQueueDescription.getMediaId()); in testAddRemoveQueueItems()
1148 String mediaId = description.getMediaId(); in onRemoveQueueItem()
1150 if (mediaId.equals(mQueue.get(i).getDescription().getMediaId())) { in onRemoveQueueItem()
/frameworks/base/media/java/android/media/browse/
DMediaBrowser.java776 if (TextUtils.isEmpty(description.getMediaId())) { in MediaItem()
858 public @Nullable String getMediaId() { in getMediaId() method in MediaBrowser.MediaItem
859 return mDescription.getMediaId(); in getMediaId()
/frameworks/av/packages/MediaComponents/tests/src/com/android/media/
DSessionPlaylistAgentTest.java119 if (item.getMediaId().contains("WITHOUT_DSD")) { in onDataSourceMissing()
124 .setMediaId(item.getMediaId()) in onDataSourceMissing()

123