Home
last modified time | relevance | path

Searched refs:getWindowCount (Results 1 – 25 of 30) sorted by relevance

12

/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DTimelineAsserts.java56 assertThat(timeline.getWindowCount()).isEqualTo(expectedWindowTags.length); in assertWindowTags()
57 for (int i = 0; i < timeline.getWindowCount(); i++) { in assertWindowTags()
68 for (int i = 0; i < timeline.getWindowCount(); i++) { in assertWindowIsDynamic()
83 for (int i = 0; i < timeline.getWindowCount(); i++) { in assertPreviousWindowIndices()
98 for (int i = 0; i < timeline.getWindowCount(); i++) { in assertNextWindowIndices()
123 int windowCount = timeline.getWindowCount(); in assertPeriodCounts()
DFakeMediaSource.java125 return timeline == null || timeline == Timeline.EMPTY || timeline.getWindowCount() == 1 in getInitialTimeline()
132 return timeline == null || timeline == Timeline.EMPTY || timeline.getWindowCount() == 1; in isSingleWindow()
DFakeTimeline.java256 public int getWindowCount() { in getWindowCount() method in FakeTimeline
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DTimeline.java651 public int getWindowCount() {
685 return getWindowCount() == 0; in isEmpty()
691 public abstract int getWindowCount(); in getWindowCount() method in Timeline
752 return isEmpty() ? C.INDEX_UNSET : getWindowCount() - 1; in getLastWindowIndex()
874 Assertions.checkIndex(windowIndex, 0, getWindowCount()); in getPeriodPosition()
954 if (other.getWindowCount() != getWindowCount() || other.getPeriodCount() != getPeriodCount()) { in equals()
961 for (int i = 0; i < getWindowCount(); i++) { in equals()
980 result = 31 * result + getWindowCount(); in hashCode()
981 for (int i = 0; i < getWindowCount(); i++) { in hashCode()
DMediaSourceList.java126 + previousTimeline.getWindowCount()); in addMediaSources()
133 /* windowOffsetUpdate= */ newTimeline.getWindowCount()); in addMediaSources()
222 windowOffset += holder.mediaSource.getTimeline().getWindowCount(); in moveMediaSourceRange()
350 windowOffset += mediaSourceHolder.mediaSource.getTimeline().getWindowCount(); in createTimeline()
389 /* startIndex= */ index, /* windowOffsetUpdate= */ -oldTimeline.getWindowCount()); in removeMediaSourcesInternal()
522 windowCount += timelines[index].getWindowCount(); in PlaylistTimeline()
568 public int getWindowCount() { in getWindowCount() method in MediaSourceList.PlaylistTimeline
DExoPlayerImpl.java562 if (windowIndex < 0 || (!timeline.isEmpty() && windowIndex >= timeline.getWindowCount())) { in seekTo()
990 if (!timeline.isEmpty() && startWindowIndex >= timeline.getWindowCount()) { in setMediaSourcesInternal()
1007 if (timeline.isEmpty() || startWindowIndex >= timeline.getWindowCount()) { in setMediaSourcesInternal()
1058 && currentWindowIndex >= playbackInfo.timeline.getWindowCount(); in removeMediaItemsInternal()
1129 if (!maskingTimeline.isEmpty() && currentWindowIndex >= maskingTimeline.getWindowCount()) { in maskTimelineAndWindowIndex()
1180 } else if (windowIndex >= timeline.getWindowCount()) { in maskWindowIndexAndPositionForSeek()
DPlayer.java440 if (timeline.getWindowCount() == 1) { in onTimelineChanged()
602 if (timeline.getWindowCount() == 1) { in onTimelineChanged()
DPlayerMessage.java203 if (windowIndex < 0 || (!timeline.isEmpty() && windowIndex >= timeline.getWindowCount())) { in setPosition()
/external/exoplayer/tree/extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/
DTimelineQueueNavigator.java98 enableSkipTo = timeline.getWindowCount() > 1; in getSupportedQueueNavigatorActions()
124 || player.getCurrentTimeline().getWindowCount() > maxQueueSize) { in onCurrentWindowIndexChanged()
148 if (0 <= windowIndex && windowIndex < timeline.getWindowCount()) { in onSkipToQueueItem()
180 int queueSize = Math.min(maxQueueSize, timeline.getWindowCount()); in publishFloatingQueueWindow()
DTimelineQueueEditor.java163 onAddQueueItem(player, description, player.getCurrentTimeline().getWindowCount()); in onAddQueueItem()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DForwardingTimeline.java33 public int getWindowCount() { in getWindowCount() method in ForwardingTimeline
34 return timeline.getWindowCount(); in getWindowCount()
DConcatenatingMediaSource.java761 newIndex, previousHolder.firstWindowIndexInChild + previousTimeline.getWindowCount()); in addMediaSourceInternal()
766 correctOffsets(newIndex, /* childIndexUpdate= */ 1, newTimeline.getWindowCount()); in addMediaSourceInternal()
781 timeline.getWindowCount() in updateMediaSourceInternal()
795 correctOffsets(index, /* childIndexUpdate= */ -1, -oldTimeline.getWindowCount()); in removeMediaSourceInternal()
809 windowOffset += holder.mediaSource.getTimeline().getWindowCount(); in moveMediaSourceInternal()
929 windowCount += timelines[index].getWindowCount(); in ConcatenatedTimeline()
975 public int getWindowCount() { in getWindowCount() method in ConcatenatingMediaSource.ConcatenatedTimeline
DLoopingMediaSource.java146 childWindowCount = childTimeline.getWindowCount(); in LoopingTimeline()
155 public int getWindowCount() { in getWindowCount() method in LoopingMediaSource.LoopingTimeline
DSinglePeriodTimeline.java177 public int getWindowCount() { in getWindowCount() method in SinglePeriodTimeline
DMaskingMediaSource.java358 public int getWindowCount() { in getWindowCount() method in MaskingMediaSource.DummyTimeline
/external/exoplayer/tree/extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/
DCastPlayer.java211 Assertions.checkArgument(newIndex >= 0 && newIndex < currentTimeline.getWindowCount()); in moveItem()
322 if (index < currentTimeline.getWindowCount()) { in addMediaItems()
333 && toIndex <= currentTimeline.getWindowCount() in moveMediaItems()
335 && newIndex < currentTimeline.getWindowCount()); in moveMediaItems()
336 newIndex = Math.min(newIndex, currentTimeline.getWindowCount() - (toIndex - fromIndex)); in moveMediaItems()
351 fromIndex >= 0 && toIndex >= fromIndex && toIndex <= currentTimeline.getWindowCount()); in removeMediaItems()
365 removeMediaItems(/* fromIndex= */ 0, /* toIndex= */ currentTimeline.getWindowCount()); in clearMediaItems()
825 if (insertBeforeIndex < currentTimeline.getWindowCount()) { in moveMediaItemsInternal()
DCastTimeline.java119 public int getWindowCount() { in getWindowCount() method in CastTimeline
/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()
161 assertThat(timeline.getFirstWindowIndex(true)).isEqualTo(timeline.getWindowCount() - 1); in playlistChangesAfterPreparation()
521 assertThat(timeline.getWindowCount()).isEqualTo(1); in customCallbackAfterPreparationAddSingle()
541 assertThat(timeline.getWindowCount()).isEqualTo(2); in customCallbackAfterPreparationAddMultiple()
558 assertThat(timeline.getWindowCount()).isEqualTo(1); in customCallbackAfterPreparationAddSingleWithIndex()
579 assertThat(timeline.getWindowCount()).isEqualTo(2); in customCallbackAfterPreparationAddMultipleWithIndex()
598 assertThat(timeline.getWindowCount()).isEqualTo(0); in customCallbackAfterPreparationRemove()
622 assertThat(timeline.getWindowCount()).isEqualTo(2); in customCallbackAfterPreparationMove()
1078 for (int windowIndex = 0; windowIndex < timeline.getWindowCount(); windowIndex++) { in assertCompletedAllMediaPeriodLoads()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DMediaSourceListTest.java66 /* fromIndex= */ 0, /* toIndex= */ timeline.getWindowCount(), shuffleOrder); in emptyMediaSourceList_expectConstantTimelineInstanceEMPTY()
124 assertThat(timeline.getWindowCount()).isEqualTo(2); in setMediaSources_mediaSourceListUnprepared_notUsingLazyPreparation()
141 assertThat(timeline.getWindowCount()).isEqualTo(2); in setMediaSources_mediaSourceListUnprepared_notUsingLazyPreparation()
474 /* windowIndex= */ timeline.getWindowCount() - 1, in assertTimelineUsesFakeShuffleOrder()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ads/
DSinglePeriodAdTimeline.java40 Assertions.checkState(contentTimeline.getWindowCount() == 1); in SinglePeriodAdTimeline()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/
DDefaultPlaybackSessionManager.java374 if (windowIndex >= oldTimeline.getWindowCount()) { in resolveWindowIndexToNewTimeline()
375 return windowIndex < newTimeline.getWindowCount() ? windowIndex : C.INDEX_UNSET; in resolveWindowIndexToNewTimeline()
DAnalyticsCollector.java676 boolean windowIsInTimeline = windowIndex < timeline.getWindowCount(); in generateEventTime()
710 boolean windowIsInTimeline = windowIndex < timeline.getWindowCount();
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DPlayerControlView.java919 int lastWindowIndex = multiWindowTimeBar ? timeline.getWindowCount() - 1 : currentWindowIndex; in updateTimeline()
1045 int windowCount = timeline.getWindowCount(); in seekToTimeBarPosition()
1183 if (timeline.getWindowCount() > MAX_WINDOWS_FOR_MULTI_WINDOW_TIME_BAR) { in canShowMultiWindowTimeBar()
1186 int windowCount = timeline.getWindowCount(); in canShowMultiWindowTimeBar()
/external/exoplayer/tree/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/
DPlayerManager.java336 if (currentPlayer.getCurrentTimeline().getWindowCount() != mediaQueue.size()) { in setCurrentItem()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DEventLogger.java164 int windowCount = eventTime.timeline.getWindowCount(); in onTimelineChanged()

12