/external/exoplayer/tree/extensions/cast/src/test/java/com/google/android/exoplayer2/ext/cast/ |
D | CastPlayerTest.java | 234 List<MediaItem> mediaItems = new ArrayList<>(); in setMediaItems_callsRemoteMediaClient() local 237 mediaItems.add( in setMediaItems_callsRemoteMediaClient() 242 mediaItems.add( in setMediaItems_callsRemoteMediaClient() 248 castPlayer.setMediaItems(mediaItems, /* startWindowIndex= */ 1, /* startPositionMs= */ 2000L); in setMediaItems_callsRemoteMediaClient() 260 List<MediaItem> mediaItems = new ArrayList<>(); in setMediaItems_doNotReset_callsRemoteMediaClient() local 263 mediaItems.add(builder.setSourceUri(sourceUri1).setMimeType(MimeTypes.APPLICATION_MPD).build()); in setMediaItems_doNotReset_callsRemoteMediaClient() 264 mediaItems.add(builder.setSourceUri(sourceUri2).setMimeType(MimeTypes.APPLICATION_MP4).build()); in setMediaItems_doNotReset_callsRemoteMediaClient() 268 castPlayer.setMediaItems(mediaItems, startWindowIndex, startPositionMs); in setMediaItems_doNotReset_callsRemoteMediaClient() 281 List<MediaItem> mediaItems = new ArrayList<>(); in addMediaItems_callsRemoteMediaClient() local 284 mediaItems.add(builder.setSourceUri(sourceUri1).setMimeType(MimeTypes.APPLICATION_MPD).build()); in addMediaItems_callsRemoteMediaClient() [all …]
|
/external/exoplayer/tree/demos/main/src/main/java/com/google/android/exoplayer2/demo/ |
D | IntentUtil.java | 100 List<MediaItem> mediaItems = new ArrayList<>(); in createMediaItemsFromIntent() local 105 mediaItems.add( in createMediaItemsFromIntent() 115 mediaItems.add( in createMediaItemsFromIntent() 119 return mediaItems; in createMediaItemsFromIntent() 123 public static void addToIntent(List<MediaItem> mediaItems, Intent intent) { in addToIntent() argument 124 Assertions.checkArgument(!mediaItems.isEmpty()); in addToIntent() 125 if (mediaItems.size() == 1) { in addToIntent() 127 checkNotNull(mediaItems.get(0).playbackProperties); in addToIntent() 132 for (int i = 0; i < mediaItems.size(); i++) { in addToIntent() 134 checkNotNull(mediaItems.get(i).playbackProperties); in addToIntent()
|
D | SampleChooserActivity.java | 247 IntentUtil.addToIntent(playlistHolder.mediaItems, intent); in onChildClick() 262 getSupportFragmentManager(), playlistHolder.mediaItems.get(0), renderersFactory); in onSampleDownloadButtonClicked() 267 if (playlistHolder.mediaItems.size() > 1) { in getDownloadUnsupportedStringId() 271 checkNotNull(playlistHolder.mediaItems.get(0).playbackProperties); in getDownloadUnsupportedStringId() 453 List<MediaItem> mediaItems = new ArrayList<>(); in readEntry() local 455 mediaItems.addAll(children.get(i).mediaItems); in readEntry() 457 return new PlaylistHolder(title, mediaItems); in readEntry() 596 canDownload && downloadTracker.isDownloaded(playlistHolder.mediaItems.get(0)); in initializeChildView() 609 public final List<MediaItem> mediaItems; field in SampleChooserActivity.PlaylistHolder 611 private PlaylistHolder(String title, List<MediaItem> mediaItems) { in PlaylistHolder() argument [all …]
|
D | PlayerActivity.java | 96 private List<MediaItem> mediaItems; field in PlayerActivity 299 mediaItems = createMediaItems(intent); in initializePlayer() 300 if (mediaItems.isEmpty()) { in initializePlayer() 345 player.setMediaItems(mediaItems, /* resetPosition= */ !haveStartPosition); in initializePlayer() 359 List<MediaItem> mediaItems = in createMediaItems() local 363 for (int i = 0; i < mediaItems.size(); i++) { in createMediaItems() 364 MediaItem mediaItem = mediaItems.get(i); in createMediaItems() 393 return mediaItems; in createMediaItems() 404 mediaItems = Collections.emptyList(); in releasePlayer() 587 if (mediaItems.size() > 1) { in getAdsLoader()
|
/external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/ |
D | ShadowMediaBrowserCompat.java | 42 private final Map<String, MediaItem> mediaItems = new LinkedHashMap<>(); field in ShadowMediaBrowserCompat 98 final MediaItem mediaItem = mediaItems.get(mediaId); in getItem() 116 final MediaItem parentItem = mediaItems.get(parentId); in subscribe() 156 for (MediaItem item : mediaItems.values()) { in search() 195 mediaItems.put(mediaId, mediaItem); in createMediaItem() 200 final MediaItem parentItem = mediaItems.get(parentId); in createMediaItem()
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | StubExoPlayer.java | 160 public void setMediaItems(List<MediaItem> mediaItems) { in setMediaItems() argument 165 public void setMediaItems(List<MediaItem> mediaItems, boolean resetPosition) { in setMediaItems() argument 171 List<MediaItem> mediaItems, int startWindowIndex, long startPositionMs) { in setMediaItems() argument 217 public void addMediaItems(List<MediaItem> mediaItems) { in addMediaItems() argument 222 public void addMediaItems(int index, List<MediaItem> mediaItems) { in addMediaItems() argument
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/ |
D | BasePlayer.java | 48 public void setMediaItems(List<MediaItem> mediaItems, boolean resetPosition) { in setMediaItems() argument 50 mediaItems, /* startWindowIndex= */ C.INDEX_UNSET, /* startPositionMs= */ C.TIME_UNSET); in setMediaItems() 54 public void setMediaItems(List<MediaItem> mediaItems) { in setMediaItems() argument 55 setMediaItems(mediaItems, /* resetPosition= */ true); in setMediaItems()
|
D | Player.java | 818 void setMediaItems(List<MediaItem> mediaItems); in setMediaItems() argument 828 void setMediaItems(List<MediaItem> mediaItems, boolean resetPosition); in setMediaItems() argument 841 void setMediaItems(List<MediaItem> mediaItems, int startWindowIndex, long startPositionMs); in setMediaItems() argument 889 void addMediaItems(List<MediaItem> mediaItems); in addMediaItems() argument 897 void addMediaItems(int index, List<MediaItem> mediaItems); in addMediaItems() argument
|
D | ExoPlayerImpl.java | 335 List<MediaItem> mediaItems, int startWindowIndex, long startPositionMs) { in setMediaItems() argument 336 setMediaSources(createMediaSources(mediaItems), startWindowIndex, startPositionMs); in setMediaItems() 377 public void addMediaItems(List<MediaItem> mediaItems) { in addMediaItems() argument 378 addMediaItems(/* index= */ mediaSourceHolders.size(), mediaItems); in addMediaItems() local 382 public void addMediaItems(int index, List<MediaItem> mediaItems) { in addMediaItems() argument 383 addMediaSources(index, createMediaSources(mediaItems)); in addMediaItems() 861 private List<MediaSource> createMediaSources(List<MediaItem> mediaItems) { in createMediaSources() argument 863 for (int i = 0; i < mediaItems.size(); i++) { in createMediaSources() 864 mediaSources.add(mediaSourceFactory.createMediaSource(mediaItems.get(i))); in createMediaSources()
|
D | SimpleExoPlayer.java | 1298 public void setMediaItems(List<MediaItem> mediaItems) { in setMediaItems() argument 1301 player.setMediaItems(mediaItems); in setMediaItems() 1305 public void setMediaItems(List<MediaItem> mediaItems, boolean resetPosition) { in setMediaItems() argument 1308 player.setMediaItems(mediaItems, resetPosition); in setMediaItems() 1313 List<MediaItem> mediaItems, int startWindowIndex, long startPositionMs) { in setMediaItems() argument 1316 player.setMediaItems(mediaItems, startWindowIndex, startPositionMs); in setMediaItems() 1384 public void addMediaItems(List<MediaItem> mediaItems) { in addMediaItems() argument 1386 player.addMediaItems(mediaItems); in addMediaItems() 1390 public void addMediaItems(int index, List<MediaItem> mediaItems) { in addMediaItems() argument 1392 player.addMediaItems(index, mediaItems); in addMediaItems()
|
/external/exoplayer/tree/extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/ |
D | CastPlayer.java | 308 List<MediaItem> mediaItems, int startWindowIndex, long startPositionMs) { in setMediaItems() argument 310 toMediaQueueItems(mediaItems), startWindowIndex, startPositionMs, repeatMode.value); in setMediaItems() 314 public void addMediaItems(List<MediaItem> mediaItems) { in addMediaItems() argument 315 addMediaItemsInternal(toMediaQueueItems(mediaItems), MediaQueueItem.INVALID_ITEM_ID); in addMediaItems() 319 public void addMediaItems(int index, List<MediaItem> mediaItems) { in addMediaItems() argument 325 addMediaItemsInternal(toMediaQueueItems(mediaItems), uid); in addMediaItems() 989 private MediaQueueItem[] toMediaQueueItems(List<MediaItem> mediaItems) { in toMediaQueueItems() argument 990 MediaQueueItem[] mediaQueueItems = new MediaQueueItem[mediaItems.size()]; in toMediaQueueItems() 991 for (int i = 0; i < mediaItems.size(); i++) { in toMediaQueueItems() 992 mediaQueueItems[i] = mediaItemConverter.toMediaQueueItem(mediaItems.get(i)); in toMediaQueueItems()
|
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/util/ |
D | Util.java | 208 Activity activity, MediaItem... mediaItems) { in maybeRequestReadExternalStoragePermission() argument 212 for (MediaItem mediaItem : mediaItems) { in maybeRequestReadExternalStoragePermission() 235 public static boolean checkCleartextTrafficPermitted(MediaItem... mediaItems) { in checkCleartextTrafficPermitted() argument 240 for (MediaItem mediaItem : mediaItems) { in checkCleartextTrafficPermitted()
|