Home
last modified time | relevance | path

Searched refs:getIndexOfPeriod (Results 1 – 21 of 21) sorted by relevance

/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/
DSinglePeriodTimelineTest.java130 assertThat(timeline.getIndexOfPeriod(uid)).isEqualTo(0); in getIndexOfPeriod_returnsPeriod()
131 assertThat(timeline.getIndexOfPeriod(/* uid= */ null)).isEqualTo(C.INDEX_UNSET); in getIndexOfPeriod_returnsPeriod()
132 assertThat(timeline.getIndexOfPeriod(/* uid= */ new Object())).isEqualTo(C.INDEX_UNSET); in getIndexOfPeriod_returnsPeriod()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DForwardingTimeline.java75 public int getIndexOfPeriod(Object uid) { in getIndexOfPeriod() method in ForwardingTimeline
76 return timeline.getIndexOfPeriod(uid); in getIndexOfPeriod()
DMaskingMediaSource.java237 int maskingPeriodIndex = timeline.getIndexOfPeriod(maskingPeriod.id.periodUid); in setPreparePositionOverrideToUnpreparedMaskingPeriod()
333 public int getIndexOfPeriod(Object uid) { in getIndexOfPeriod() method in MaskingMediaSource.MaskingTimeline
334 return timeline.getIndexOfPeriod( in getIndexOfPeriod()
400 public int getIndexOfPeriod(Object uid) { in getIndexOfPeriod() method in MaskingMediaSource.DummyTimeline
DSinglePeriodTimeline.java227 public int getIndexOfPeriod(Object uid) { in getIndexOfPeriod() method in SinglePeriodTimeline
DMergingMediaSource.java149 int periodIndex = timelines[0].getIndexOfPeriod(id.periodUid); in createPeriod()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DMediaPeriodQueue.java437 int oldFrontPeriodIndex = timeline.getIndexOfPeriod(oldFrontPeriodUid); in resolvePeriodIndexToWindowSequenceNumber()
456 int indexOfHolderInTimeline = timeline.getIndexOfPeriod(mediaPeriodHolder.uid); in resolvePeriodIndexToWindowSequenceNumber()
503 int currentPeriodIndex = timeline.getIndexOfPeriod(lastValidPeriodHolder.uid); in updateForPlaybackModeChange()
517 int nextPeriodHolderPeriodIndex = timeline.getIndexOfPeriod(nextMediaPeriodHolder.uid); in updateForPlaybackModeChange()
570 int currentPeriodIndex = timeline.getIndexOfPeriod(mediaPeriodInfo.id.periodUid); in getFollowingMediaPeriodInfo()
792 int periodIndex = timeline.getIndexOfPeriod(id.periodUid); in isLastInWindow()
798 int periodIndex = timeline.getIndexOfPeriod(id.periodUid); in isLastInTimeline()
DAbstractConcatenatedTimeline.java238 public final int getIndexOfPeriod(Object uid) { in getIndexOfPeriod() method in AbstractConcatenatedTimeline
248 int periodIndexInChild = getTimelineByChildIndex(childIndex).getIndexOfPeriod(periodUid); in getIndexOfPeriod()
DTimeline.java671 public int getIndexOfPeriod(Object uid) {
901 return getPeriod(getIndexOfPeriod(periodUid), period, /* setIds= */ true); in getPeriodByUid()
935 public abstract int getIndexOfPeriod(Object uid); in getIndexOfPeriod() method in Timeline
DExoPlayerImplInternal.java1367 playbackInfo.timeline.getIndexOfPeriod(playbackInfo.periodId.periodUid); in maybeTriggerPendingMessages()
2187 } else if (timeline.getIndexOfPeriod(newPeriodUid) == C.INDEX_UNSET) {
2326 /* periodIndex= */ newTimeline.getIndexOfPeriod(periodPosition.first),
2335 int index = newTimeline.getIndexOfPeriod(pendingMessageInfo.resolvedPeriodUid);
2356 /* periodIndex= */ newTimeline.getIndexOfPeriod(periodPosition.first),
2420 int periodIndex = timeline.getIndexOfPeriod(periodPosition.first);
2481 int oldPeriodIndex = oldTimeline.getIndexOfPeriod(oldPeriodUid);
2492 newPeriodIndex = newTimeline.getIndexOfPeriod(oldTimeline.getUidOfPeriod(oldPeriodIndex));
DExoPlayerImpl.java716 return playbackInfo.timeline.getIndexOfPeriod(playbackInfo.periodId.periodUid); in getCurrentPeriodIndex()
1144 if (maskingTimeline.getIndexOfPeriod(periodUid) != C.INDEX_UNSET) { in maskTimelineAndWindowIndex()
1147 maskingPeriodIndex = maskingTimeline.getIndexOfPeriod(periodUid); in maskTimelineAndWindowIndex()
1191 maskingPeriodIndex = timeline.getIndexOfPeriod(periodUidAndPosition.first); in maskWindowIndexAndPositionForSeek()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/
DDefaultPlaybackSessionManager.java297 int newPeriodIndex = newTimeline.getIndexOfPeriod(adMediaPeriodId.periodUid);
347 int eventPeriodIndex = eventTime.timeline.getIndexOfPeriod(eventTime.mediaPeriodId.periodUid);
348 int adPeriodIndex = eventTime.timeline.getIndexOfPeriod(adMediaPeriodId.periodUid);
382 int newPeriodIndex = newTimeline.getIndexOfPeriod(periodUid); in resolveWindowIndexToNewTimeline()
DAnalyticsCollector.java817 int periodIndex = timeline.getIndexOfPeriod(mediaPeriodId.periodUid);
968 int newPeriodIndex = newTimeline.getIndexOfPeriod(info.mediaPeriodId.periodUid);
/external/exoplayer/tree/extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/
DCastPlayer.java191 || currentTimeline.getIndexOfPeriod(periodId) != C.INDEX_UNSET) { in addItems()
201 if (currentTimeline.getIndexOfPeriod(periodId) != C.INDEX_UNSET) { in removeItem()
212 int fromIndex = currentTimeline.getIndexOfPeriod(periodId); in moveItem()
231 return mediaStatus != null && currentTimeline.getIndexOfPeriod(periodId) != C.INDEX_UNSET in getItem()
662 currentWindowIndex = currentTimeline.getIndexOfPeriod(currentItem.getItemId()); in updateInternalStateAndNotifyIfChanged()
DCastTimeline.java156 public int getIndexOfPeriod(Object uid) { in getIndexOfPeriod() method in CastTimeline
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DTimelineAsserts.java147 assertThat(timeline.getIndexOfPeriod(periodUid)).isEqualTo(i); in assertPeriodCounts()
DFakeTimeline.java318 public int getIndexOfPeriod(Object uid) { in getIndexOfPeriod() method in FakeTimeline
DFakeMediaSource.java156 int periodIndex = Util.castNonNull(timeline).getIndexOfPeriod(id.periodUid); in createPeriod()
DMediaSourceTestRunner.java332 int periodIndex = timeline.getIndexOfPeriod(mediaPeriodId.periodUid); in assertCompletedMediaPeriodLoads()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DEventLogger.java547 ", period=" + eventTime.timeline.getIndexOfPeriod(eventTime.mediaPeriodId.periodUid); in getEventTimeString()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/offline/
DDownloadHelperTest.java505 int periodIndex = TEST_TIMELINE.getIndexOfPeriod(id.periodUid); in createPeriod()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/
DDashMediaSource.java1277 public int getIndexOfPeriod(Object uid) { in getIndexOfPeriod() method in DashMediaSource.DashTimeline