Home
last modified time | relevance | path

Searched refs:shuffleOrder (Results 1 – 12 of 12) sorted by relevance

/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/
DShuffleOrderTest.java60 ShuffleOrder shuffleOrder = new DefaultShuffleOrder(shuffledIndices, RANDOM_SEED); in defaultShuffleOrderSideloaded() local
61 assertThat(shuffleOrder.getFirstIndex()).isEqualTo(2); in defaultShuffleOrderSideloaded()
62 assertThat(shuffleOrder.getLastIndex()).isEqualTo(3); in defaultShuffleOrderSideloaded()
64 assertThat(shuffleOrder.getNextIndex(shuffledIndices[i])).isEqualTo(shuffledIndices[i + 1]); in defaultShuffleOrderSideloaded()
66 assertThat(shuffleOrder.getNextIndex(3)).isEqualTo(C.INDEX_UNSET); in defaultShuffleOrderSideloaded()
68 assertThat(shuffleOrder.getPreviousIndex(shuffledIndices[i])) in defaultShuffleOrderSideloaded()
71 assertThat(shuffleOrder.getPreviousIndex(2)).isEqualTo(C.INDEX_UNSET); in defaultShuffleOrderSideloaded()
99 ShuffleOrder shuffleOrder = new UnshuffledShuffleOrder(5); in unshuffledShuffleOrderIsUnshuffled() local
100 assertThat(shuffleOrder.getFirstIndex()).isEqualTo(0); in unshuffledShuffleOrderIsUnshuffled()
101 assertThat(shuffleOrder.getLastIndex()).isEqualTo(4); in unshuffledShuffleOrderIsUnshuffled()
[all …]
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DMediaSourceListTest.java56 ShuffleOrder.DefaultShuffleOrder shuffleOrder = in emptyMediaSourceList_expectConstantTimelineInstanceEMPTY() local
60 Timeline timeline = mediaSourceList.setMediaSources(fakeHolders, shuffleOrder); in emptyMediaSourceList_expectConstantTimelineInstanceEMPTY()
66 /* fromIndex= */ 0, /* toIndex= */ timeline.getWindowCount(), shuffleOrder); in emptyMediaSourceList_expectConstantTimelineInstanceEMPTY()
69 timeline = mediaSourceList.setMediaSources(fakeHolders, shuffleOrder); in emptyMediaSourceList_expectConstantTimelineInstanceEMPTY()
72 timeline = mediaSourceList.clear(shuffleOrder); in emptyMediaSourceList_expectConstantTimelineInstanceEMPTY()
115 ShuffleOrder.DefaultShuffleOrder shuffleOrder = in setMediaSources_mediaSourceListUnprepared_notUsingLazyPreparation() local
122 Timeline timeline = mediaSourceList.setMediaSources(mediaSources, shuffleOrder); in setMediaSources_mediaSourceListUnprepared_notUsingLazyPreparation()
138 timeline = mediaSourceList.setMediaSources(moreMediaSources, shuffleOrder); in setMediaSources_mediaSourceListUnprepared_notUsingLazyPreparation()
157 ShuffleOrder.DefaultShuffleOrder shuffleOrder = in setMediaSources_mediaSourceListPrepared_notUsingLazyPreparation() local
166 mediaSourceList.setMediaSources(mediaSources, shuffleOrder); in setMediaSources_mediaSourceListPrepared_notUsingLazyPreparation()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DConcatenatingMediaSource.java78 private ShuffleOrder shuffleOrder; field in ConcatenatingMediaSource
106 boolean isAtomic, ShuffleOrder shuffleOrder, MediaSource... mediaSources) { in ConcatenatingMediaSource() argument
107 this(isAtomic, /* useLazyPreparation= */ false, shuffleOrder, mediaSources); in ConcatenatingMediaSource()
124 ShuffleOrder shuffleOrder, in ConcatenatingMediaSource() argument
129 this.shuffleOrder = shuffleOrder.getLength() > 0 ? shuffleOrder.cloneAndClear() : shuffleOrder; in ConcatenatingMediaSource()
144 ShuffleOrder shuffleOrder = in getInitialTimeline() local
145 this.shuffleOrder.getLength() != mediaSourcesPublic.size() in getInitialTimeline()
146 ? this.shuffleOrder in getInitialTimeline()
150 : this.shuffleOrder; in getInitialTimeline()
151 return new ConcatenatedTimeline(mediaSourcesPublic, shuffleOrder, isAtomic); in getInitialTimeline()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DMediaSourceList.java76 private ShuffleOrder shuffleOrder; field in MediaSourceList
84 shuffleOrder = new DefaultShuffleOrder(0); in MediaSourceList()
101 List<MediaSourceHolder> holders, ShuffleOrder shuffleOrder) { in setMediaSources() argument
103 return addMediaSources(/* index= */ this.mediaSourceHolders.size(), holders, shuffleOrder); in setMediaSources()
116 int index, List<MediaSourceHolder> holders, ShuffleOrder shuffleOrder) { in addMediaSources() argument
118 this.shuffleOrder = shuffleOrder; in addMediaSources()
166 int fromIndex, int toIndex, ShuffleOrder shuffleOrder) { in removeMediaSourceRange() argument
168 this.shuffleOrder = shuffleOrder; in removeMediaSourceRange()
185 public final Timeline moveMediaSource(int currentIndex, int newIndex, ShuffleOrder shuffleOrder) { in moveMediaSource() argument
186 return moveMediaSourceRange(currentIndex, currentIndex + 1, newIndex, shuffleOrder); in moveMediaSource()
[all …]
DAbstractConcatenatedTimeline.java26 private final ShuffleOrder shuffleOrder; field in AbstractConcatenatedTimeline
70 public AbstractConcatenatedTimeline(boolean isAtomic, ShuffleOrder shuffleOrder) { in AbstractConcatenatedTimeline() argument
72 this.shuffleOrder = shuffleOrder; in AbstractConcatenatedTimeline()
73 this.childCount = shuffleOrder.getLength(); in AbstractConcatenatedTimeline()
158 int lastChildIndex = shuffleModeEnabled ? shuffleOrder.getLastIndex() : childCount - 1; in getLastWindowIndex()
179 int firstChildIndex = shuffleModeEnabled ? shuffleOrder.getFirstIndex() : 0; in getFirstWindowIndex()
316 ? shuffleOrder.getNextIndex(childIndex) in getNextChildIndex()
322 ? shuffleOrder.getPreviousIndex(childIndex) in getPreviousChildIndex()
DExoPlayerImpl.java88 private ShuffleOrder shuffleOrder; field in ExoPlayerImpl
137 shuffleOrder = new ShuffleOrder.DefaultShuffleOrder(/* length= */ 0); in ExoPlayerImpl()
412 internalPlayer.addMediaSources(index, holders, shuffleOrder); in addMediaSources()
443 internalPlayer.moveMediaSources(fromIndex, toIndex, newFromIndex, shuffleOrder); in moveMediaItems()
462 public void setShuffleOrder(ShuffleOrder shuffleOrder) { in setShuffleOrder() argument
466 this.shuffleOrder = shuffleOrder; in setShuffleOrder()
467 internalPlayer.setShuffleOrder(shuffleOrder); in setShuffleOrder()
1016 holders, startWindowIndex, C.msToUs(startPositionMs), shuffleOrder); in setMediaSourcesInternal()
1035 shuffleOrder = in addMediaSourceHolders()
1036 shuffleOrder.cloneAndInsert( in addMediaSourceHolders()
[all …]
DExoPlayerImplInternal.java246 ShuffleOrder shuffleOrder) { in setMediaSources() argument
250 new MediaSourceListUpdateMessage(mediaSources, shuffleOrder, windowIndex, positionUs)) in setMediaSources()
255 int index, List<MediaSourceList.MediaSourceHolder> mediaSources, ShuffleOrder shuffleOrder) { in addMediaSources() argument
263 shuffleOrder, in addMediaSources()
269 public void removeMediaSources(int fromIndex, int toIndex, ShuffleOrder shuffleOrder) { in removeMediaSources() argument
271 .obtainMessage(MSG_REMOVE_MEDIA_SOURCES, fromIndex, toIndex, shuffleOrder) in removeMediaSources()
276 int fromIndex, int toIndex, int newFromIndex, ShuffleOrder shuffleOrder) { in moveMediaSources() argument
278 new MoveMediaItemsMessage(fromIndex, toIndex, newFromIndex, shuffleOrder); in moveMediaSources()
282 public void setShuffleOrder(ShuffleOrder shuffleOrder) { in setShuffleOrder() argument
283 handler.obtainMessage(MSG_SET_SHUFFLE_ORDER, shuffleOrder).sendToTarget(); in setShuffleOrder()
[all …]
DExoPlayer.java505 void setShuffleOrder(ShuffleOrder shuffleOrder); in setShuffleOrder() argument
DSimpleExoPlayer.java1462 public void setShuffleOrder(ShuffleOrder shuffleOrder) { in setShuffleOrder() argument
1464 player.setShuffleOrder(shuffleOrder); in setShuffleOrder()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DAction.java513 private final ShuffleOrder shuffleOrder; field in Action.SetShuffleOrder
519 public SetShuffleOrder(String tag, ShuffleOrder shuffleOrder) { in SetShuffleOrder() argument
521 this.shuffleOrder = shuffleOrder; in SetShuffleOrder()
527 player.setShuffleOrder(shuffleOrder); in doActionImpl()
DActionSchedule.java443 public Builder setShuffleOrder(ShuffleOrder shuffleOrder) { in setShuffleOrder() argument
444 return apply(new SetShuffleOrder(tag, shuffleOrder)); in setShuffleOrder()
DStubExoPlayer.java292 public void setShuffleOrder(ShuffleOrder shuffleOrder) { in setShuffleOrder() argument