/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ |
D | MergingMediaSource.java | 70 private final MediaSource[] mediaSources; field in MergingMediaSource 86 public MergingMediaSource(MediaSource... mediaSources) { in MergingMediaSource() argument 87 this(/* adjustPeriodTimeOffsets= */ false, mediaSources); in MergingMediaSource() 97 public MergingMediaSource(boolean adjustPeriodTimeOffsets, MediaSource... mediaSources) { in MergingMediaSource() argument 98 this(adjustPeriodTimeOffsets, new DefaultCompositeSequenceableLoaderFactory(), mediaSources); in MergingMediaSource() 114 MediaSource... mediaSources) { in MergingMediaSource() argument 116 this.mediaSources = mediaSources; in MergingMediaSource() 118 pendingTimelineSources = new ArrayList<>(Arrays.asList(mediaSources)); in MergingMediaSource() 120 timelines = new Timeline[mediaSources.length]; in MergingMediaSource() 127 return mediaSources.length > 0 ? mediaSources[0].getTag() : null; in getTag() [all …]
|
D | ConcatenatingMediaSource.java | 84 public ConcatenatingMediaSource(MediaSource... mediaSources) { in ConcatenatingMediaSource() argument 85 this(/* isAtomic= */ false, mediaSources); in ConcatenatingMediaSource() 94 public ConcatenatingMediaSource(boolean isAtomic, MediaSource... mediaSources) { in ConcatenatingMediaSource() argument 95 this(isAtomic, new DefaultShuffleOrder(0), mediaSources); in ConcatenatingMediaSource() 106 boolean isAtomic, ShuffleOrder shuffleOrder, MediaSource... mediaSources) { in ConcatenatingMediaSource() argument 107 this(isAtomic, /* useLazyPreparation= */ false, shuffleOrder, mediaSources); in ConcatenatingMediaSource() 125 MediaSource... mediaSources) { in ConcatenatingMediaSource() argument 126 for (MediaSource mediaSource : mediaSources) { in ConcatenatingMediaSource() 139 addMediaSources(Arrays.asList(mediaSources)); in ConcatenatingMediaSource() 218 public synchronized void addMediaSources(Collection<MediaSource> mediaSources) { in addMediaSources() argument [all …]
|
D | DefaultMediaSourceFactory.java | 266 MediaSource[] mediaSources = new MediaSource[subtitles.size() + 1]; in createMediaSource() local 267 mediaSources[0] = mediaSource; in createMediaSource() 278 mediaSources[i + 1] = in createMediaSource() 282 mediaSource = new MergingMediaSource(mediaSources); in createMediaSource()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/ |
D | MergingMediaSourceTest.java | 69 FakeMediaSource[] mediaSources = new FakeMediaSource[2]; in mergingMediaSourcePeriodCreation() local 70 for (int i = 0; i < mediaSources.length; i++) { in mergingMediaSourcePeriodCreation() 71 mediaSources[i] = new FakeMediaSource(new FakeTimeline(/* windowCount= */ 2)); in mergingMediaSourcePeriodCreation() 73 MergingMediaSource mediaSource = new MergingMediaSource(mediaSources); in mergingMediaSourcePeriodCreation() 78 for (FakeMediaSource element : mediaSources) { in mergingMediaSourcePeriodCreation() 92 FakeMediaSource[] mediaSources = new FakeMediaSource[timelines.length]; in testMergingMediaSourcePrepare() local 94 mediaSources[i] = new FakeMediaSource(timelines[i]); in testMergingMediaSourcePrepare() 96 MergingMediaSource mergingMediaSource = new MergingMediaSource(mediaSources); in testMergingMediaSourcePrepare() 103 for (FakeMediaSource mediaSource : mediaSources) { in testMergingMediaSourcePrepare()
|
D | ConcatenatingMediaSourceTest.java | 325 MediaSource[] mediaSources = createMediaSources(3); in emptyTimelineMediaSource() local 326 mediaSource.addMediaSource(1, mediaSources[0]); in emptyTimelineMediaSource() 328 mediaSource.addMediaSource(4, mediaSources[1]); in emptyTimelineMediaSource() 330 mediaSource.addMediaSource(6, mediaSources[2]); in emptyTimelineMediaSource() 398 MediaSource[] mediaSources = {validSource, null}; in illegalArguments() local 400 mediaSource.addMediaSources(Arrays.asList(mediaSources)); in illegalArguments()
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | ExoPlayerTestRunner.java | 78 private List<MediaSource> mediaSources; field in ExoPlayerTestRunner.Builder 92 mediaSources = new ArrayList<>(); in Builder() 110 assertThat(mediaSources).isEmpty(); in setTimeline() 125 assertThat(mediaSources).isEmpty(); in setManifest() 154 public Builder setMediaSources(MediaSource... mediaSources) { in setMediaSources() argument 158 this.mediaSources = Arrays.asList(mediaSources); in setMediaSources() 187 assertThat(mediaSources).isEmpty(); in skipSettingMediaSources() 321 if (mediaSources.isEmpty() && !skipSettingMediaSources) { in build() 325 mediaSources.add(new FakeMediaSource(timeline, supportedFormats)); in build() 332 mediaSources, in build() [all …]
|
D | Action.java | 179 private final MediaSource[] mediaSources; field in Action.SetMediaItems 188 String tag, int windowIndex, long positionMs, MediaSource... mediaSources) { in SetMediaItems() argument 192 this.mediaSources = mediaSources; in SetMediaItems() 198 player.setMediaSources(Arrays.asList(mediaSources), windowIndex, positionMs); in doActionImpl() 205 private final MediaSource[] mediaSources; field in Action.AddMediaItems 211 public AddMediaItems(String tag, MediaSource... mediaSources) { in AddMediaItems() argument 213 this.mediaSources = mediaSources; in AddMediaItems() 219 player.addMediaSources(Arrays.asList(mediaSources)); in doActionImpl() 227 private final MediaSource[] mediaSources; field in Action.SetMediaItemsResetPosition 235 String tag, boolean resetPosition, MediaSource... mediaSources) { in SetMediaItemsResetPosition() argument [all …]
|
D | StubExoPlayer.java | 191 public void setMediaSources(List<MediaSource> mediaSources) { in setMediaSources() argument 196 public void setMediaSources(List<MediaSource> mediaSources, boolean resetPosition) { in setMediaSources() argument 202 List<MediaSource> mediaSources, int startWindowIndex, long startPositionMs) { in setMediaSources() argument 237 public void addMediaSources(List<MediaSource> mediaSources) { in addMediaSources() argument 242 public void addMediaSources(int index, List<MediaSource> mediaSources) { in addMediaSources() argument
|
D | ActionSchedule.java | 363 public Builder setMediaSources(MediaSource... mediaSources) { in setMediaSources() argument 366 tag, /* windowIndex= */ C.INDEX_UNSET, /* positionMs= */ C.TIME_UNSET, mediaSources)); in setMediaSources() 374 public Builder addMediaSources(MediaSource... mediaSources) { in addMediaSources() argument 375 return apply(new Action.AddMediaItems(tag, mediaSources)); in addMediaSources()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/ |
D | MediaSourceListTest.java | 119 List<MediaSourceList.MediaSourceHolder> mediaSources = in setMediaSources_mediaSourceListUnprepared_notUsingLazyPreparation() local 122 Timeline timeline = mediaSourceList.setMediaSources(mediaSources, shuffleOrder); in setMediaSources_mediaSourceListUnprepared_notUsingLazyPreparation() 128 for (int i = 0; i < mediaSources.size(); i++) { in setMediaSources_mediaSourceListUnprepared_notUsingLazyPreparation() 129 MediaSourceList.MediaSourceHolder mediaSourceHolder = mediaSources.get(i); in setMediaSources_mediaSourceListUnprepared_notUsingLazyPreparation() 137 moreMediaSources.add(mediaSources.get(1)); in setMediaSources_mediaSourceListUnprepared_notUsingLazyPreparation() 149 assertThat(mediaSources.get(0).isRemoved).isTrue(); in setMediaSources_mediaSourceListUnprepared_notUsingLazyPreparation() 152 assertThat(mediaSources.get(1).isRemoved).isFalse(); in setMediaSources_mediaSourceListUnprepared_notUsingLazyPreparation() 161 List<MediaSourceList.MediaSourceHolder> mediaSources = in setMediaSources_mediaSourceListPrepared_notUsingLazyPreparation() local 166 mediaSourceList.setMediaSources(mediaSources, shuffleOrder); in setMediaSources_mediaSourceListPrepared_notUsingLazyPreparation() 179 moreMediaSources.add(mediaSources.get(1)); in setMediaSources_mediaSourceListPrepared_notUsingLazyPreparation() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/ |
D | ExoPlayerImpl.java | 356 public void setMediaSources(List<MediaSource> mediaSources) { in setMediaSources() argument 357 setMediaSources(mediaSources, /* resetPosition= */ true); in setMediaSources() 361 public void setMediaSources(List<MediaSource> mediaSources, boolean resetPosition) { in setMediaSources() argument 363 mediaSources, in setMediaSources() 371 List<MediaSource> mediaSources, int startWindowIndex, long startPositionMs) { in setMediaSources() argument 373 mediaSources, startWindowIndex, startPositionMs, /* resetToDefaultPosition= */ false); in setMediaSources() 397 public void addMediaSources(List<MediaSource> mediaSources) { in addMediaSources() argument 398 addMediaSources(/* index= */ mediaSourceHolders.size(), mediaSources); in addMediaSources() local 402 public void addMediaSources(int index, List<MediaSource> mediaSources) { in addMediaSources() argument 404 validateMediaSources(mediaSources, /* mediaSourceReplacement= */ false); in addMediaSources() [all …]
|
D | ExoPlayer.java | 419 void setMediaSources(List<MediaSource> mediaSources); in setMediaSources() argument 429 void setMediaSources(List<MediaSource> mediaSources, boolean resetPosition); in setMediaSources() argument 442 void setMediaSources(List<MediaSource> mediaSources, int startWindowIndex, long startPositionMs); in setMediaSources() argument 490 void addMediaSources(List<MediaSource> mediaSources); in addMediaSources() argument 498 void addMediaSources(int index, List<MediaSource> mediaSources); in addMediaSources() argument
|
D | SimpleExoPlayer.java | 1341 public void setMediaSources(List<MediaSource> mediaSources) { in setMediaSources() argument 1344 player.setMediaSources(mediaSources); in setMediaSources() 1348 public void setMediaSources(List<MediaSource> mediaSources, boolean resetPosition) { in setMediaSources() argument 1351 player.setMediaSources(mediaSources, resetPosition); in setMediaSources() 1356 List<MediaSource> mediaSources, int startWindowIndex, long startPositionMs) { in setMediaSources() argument 1359 player.setMediaSources(mediaSources, startWindowIndex, startPositionMs); in setMediaSources() 1420 public void addMediaSources(List<MediaSource> mediaSources) { in addMediaSources() argument 1422 player.addMediaSources(mediaSources); in addMediaSources() 1426 public void addMediaSources(int index, List<MediaSource> mediaSources) { in addMediaSources() argument 1428 player.addMediaSources(index, mediaSources); in addMediaSources()
|
D | ExoPlayerImplInternal.java | 243 List<MediaSourceList.MediaSourceHolder> mediaSources, in setMediaSources() argument 250 new MediaSourceListUpdateMessage(mediaSources, shuffleOrder, windowIndex, positionUs)) in setMediaSources() 255 int index, List<MediaSourceList.MediaSourceHolder> mediaSources, ShuffleOrder shuffleOrder) { in addMediaSources() argument 262 mediaSources, in addMediaSources()
|