Home
last modified time | relevance | path

Searched refs:getLastWindowIndex (Results 1 – 6 of 6) sorted by relevance

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DForwardingTimeline.java50 public int getLastWindowIndex(boolean shuffleModeEnabled) { in getLastWindowIndex() method in ForwardingTimeline
51 return timeline.getLastWindowIndex(shuffleModeEnabled); in getLastWindowIndex()
DLoopingMediaSource.java224 return childPreviousWindowIndex == C.INDEX_UNSET ? getLastWindowIndex(shuffleModeEnabled) in getPreviousWindowIndex()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DAbstractConcatenatedTimeline.java140 + getTimelineByChildIndex(previousChildIndex).getLastWindowIndex(shuffleModeEnabled); in getPreviousWindowIndex()
144 return getLastWindowIndex(shuffleModeEnabled); in getPreviousWindowIndex()
150 public int getLastWindowIndex(boolean shuffleModeEnabled) { in getLastWindowIndex() method in AbstractConcatenatedTimeline
167 + getTimelineByChildIndex(lastChildIndex).getLastWindowIndex(shuffleModeEnabled); in getLastWindowIndex()
DTimeline.java706 return windowIndex == getLastWindowIndex(shuffleModeEnabled) ? C.INDEX_UNSET in getNextWindowIndex()
711 return windowIndex == getLastWindowIndex(shuffleModeEnabled) in getNextWindowIndex()
737 ? getLastWindowIndex(shuffleModeEnabled) : windowIndex - 1; in getPreviousWindowIndex()
751 public int getLastWindowIndex(boolean shuffleModeEnabled) { in getLastWindowIndex() method in Timeline
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/
DConcatenatingMediaSourceTest.java152 assertThat(timeline.getLastWindowIndex(false)).isEqualTo(timeline.getWindowCount() - 1); in playlistChangesAfterPreparation()
162 assertThat(timeline.getLastWindowIndex(true)).isEqualTo(0); in playlistChangesAfterPreparation()
351 assertThat(timeline.getLastWindowIndex(false)).isEqualTo(2); in emptyTimelineMediaSource()
353 assertThat(timeline.getLastWindowIndex(true)).isEqualTo(0); in emptyTimelineMediaSource()
747 assertThat(timeline.getLastWindowIndex(/* shuffleModeEnabled= */ false)).isEqualTo(2); in atomicTimelineWindowOrder()
748 assertThat(timeline.getLastWindowIndex(/* shuffleModeEnabled= */ true)).isEqualTo(2); in atomicTimelineWindowOrder()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DTimelineAsserts.java43 assertThat(timeline.getLastWindowIndex(shuffled)).isEqualTo(C.INDEX_UNSET); in assertEmpty()