Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DMockMediaLibraryService2.java150 String mediaId) { in onGetItem() argument
151 if (MEDIA_ID_GET_ITEM.equals(mediaId)) { in onGetItem()
152 return createMediaItem(mediaId); in onGetItem()
226 private MediaItem2 createMediaItem(String mediaId) { in createMediaItem() argument
229 .setMediaId(mediaId) in createMediaItem()
232 .putString(MediaMetadata2.METADATA_KEY_MEDIA_ID, mediaId) in createMediaItem()
DMediaSession2_PermissionTest.java266 final String mediaId = "testPlayFromMediaId"; in testPlayFromMediaId() local
269 createController(mSession.getToken()).playFromMediaId(mediaId, null); in testPlayFromMediaId()
273 assertEquals(mediaId, mCallback.mMediaId); in testPlayFromMediaId()
278 createController(mSession.getToken()).playFromMediaId(mediaId, null); in testPlayFromMediaId()
323 final String mediaId = "testPrepareFromMediaId"; in testPrepareFromMediaId() local
326 createController(mSession.getToken()).prepareFromMediaId(mediaId, null); in testPrepareFromMediaId()
330 assertEquals(mediaId, mCallback.mMediaId); in testPrepareFromMediaId()
335 createController(mSession.getToken()).prepareFromMediaId(mediaId, null); in testPrepareFromMediaId()
474 String mediaId, Bundle extras) { in onPlayFromMediaId() argument
477 mMediaId = mediaId; in onPlayFromMediaId()
[all …]
DMediaControllerTest.java210 final String mediaId = "test-media-id"; in testTransportControlsAndMediaSessionCallback() local
213 controls.playFromMediaId(mediaId, extras); in testTransportControlsAndMediaSessionCallback()
216 assertEquals(mediaId, mCallback.mMediaId); in testTransportControlsAndMediaSessionCallback()
273 controls.prepareFromMediaId(mediaId, extras); in testTransportControlsAndMediaSessionCallback()
276 assertEquals(mediaId, mCallback.mMediaId); in testTransportControlsAndMediaSessionCallback()
511 public void onPlayFromMediaId(String mediaId, Bundle extras) { in onPlayFromMediaId() argument
514 mMediaId = mediaId; in onPlayFromMediaId()
586 public void onPrepareFromMediaId(String mediaId, Bundle extras) { in onPrepareFromMediaId() argument
589 mMediaId = mediaId; in onPrepareFromMediaId()
DMediaBrowser2Test.java130 final String mediaId = MockMediaLibraryService2.MEDIA_ID_GET_ITEM; in testGetItem() local
136 assertEquals(mediaId, mediaIdOut); in testGetItem()
138 assertEquals(mediaId, result.getMediaId()); in testGetItem()
145 browser.getItem(mediaId); in testGetItem()
151 final String mediaId = "random_media_id"; in testGetItemNullResult() local
157 assertEquals(mediaId, mediaIdOut); in testGetItemNullResult()
165 browser.getItem(mediaId); in testGetItemNullResult()
609 public void onGetItemDone(MediaBrowser2 browser, String mediaId, MediaItem2 result) { in onGetItemDone() argument
610 super.onGetItemDone(browser, mediaId, result); in onGetItemDone()
612 ((BrowserCallback) mCallbackProxy).onGetItemDone(browser, mediaId, result); in onGetItemDone()
DTestUtils.java137 String mediaId = Thread.currentThread().getStackTrace()[1].getMethodName(); in createMetadata() local
139 .putString(MediaMetadata2.METADATA_KEY_MEDIA_ID, mediaId).build(); in createMetadata()
DMediaController2Test.java726 String mediaId, Bundle extras) { in testPlayFromMediaId()
728 assertEquals(request, mediaId); in testPlayFromMediaId()
804 String mediaId, Bundle extras) { in testPrepareFromMediaId()
806 assertEquals(request, mediaId); in testPrepareFromMediaId()
826 final String mediaId = "media_id"; in testSetRating() local
834 assertEquals(mediaId, mediaIdOut); in testSetRating()
845 controller.setRating(mediaId, rating); in testSetRating()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/data/
DVideoProvider.java32 public static Movie getMovieById(String mediaId) { in getMovieById() argument
33 return sMovieListById.get(mediaId); in getMovieById()