Home
last modified time | relevance | path

Searched refs:periodDurationUs (Results 1 – 17 of 17) sorted by relevance

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DSinglePeriodTimeline.java33 private final long periodDurationUs; field in SinglePeriodTimeline
102 long periodDurationUs, in SinglePeriodTimeline() argument
115 periodDurationUs, in SinglePeriodTimeline()
153 long periodDurationUs, in SinglePeriodTimeline() argument
165 this.periodDurationUs = periodDurationUs; in SinglePeriodTimeline()
223 return period.set(/* id= */ null, uid, 0, periodDurationUs, -windowPositionInPeriodUs); in getPeriod()
DMaskingMediaSource.java245 long periodDurationUs = timeline.getPeriod(maskingPeriodIndex, period).durationUs; in setPreparePositionOverrideToUnpreparedMaskingPeriod() local
246 if (periodDurationUs != C.TIME_UNSET) { in setPreparePositionOverrideToUnpreparedMaskingPeriod()
248 if (preparePositionOverrideUs >= periodDurationUs) { in setPreparePositionOverrideToUnpreparedMaskingPeriod()
249 preparePositionOverrideUs = Math.max(0, periodDurationUs - 1); in setPreparePositionOverrideToUnpreparedMaskingPeriod()
DClippingMediaSource.java369 long periodDurationUs = in getPeriod() local
372 period.id, period.uid, /* windowIndex= */ 0, periodDurationUs, positionInClippedWindowUs); in getPeriod()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/
DDefaultDashChunkSource.java172 long periodDurationUs = manifest.getPeriodDurationUs(periodIndex); in DefaultDashChunkSource() local
181 periodDurationUs, in DefaultDashChunkSource()
213 long periodDurationUs = manifest.getPeriodDurationUs(periodIndex);
218 representationHolders[i].copyWithNewRepresentation(periodDurationUs, representation);
324 long periodDurationUs = representationHolder.periodDurationUs;
325 boolean periodEnded = periodDurationUs != C.TIME_UNSET;
360 if (periodEnded && representationHolder.getSegmentStartTimeUs(segmentNum) >= periodDurationUs) {
368 if (periodDurationUs != C.TIME_UNSET) {
371 >= periodDurationUs) {
539 long periodDurationUs = representationHolder.periodDurationUs;
[all …]
DDashSegmentIndex.java39 long getSegmentNum(long timeUs, long periodDurationUs); in getSegmentNum() argument
57 long getDurationUs(long segmentNum, long periodDurationUs); in getDurationUs() argument
85 int getSegmentCount(long periodDurationUs); in getSegmentCount() argument
DDashWrappingSegmentIndex.java45 public int getSegmentCount(long periodDurationUs) { in getSegmentCount() argument
55 public long getDurationUs(long segmentNum, long periodDurationUs) { in getDurationUs() argument
66 public long getSegmentNum(long timeUs, long periodDurationUs) { in getSegmentNum() argument
DDashMediaSource.java1301 long periodDurationUs = manifest.getPeriodDurationUs(periodIndex); in getAdjustedWindowDefaultStartPositionUs() local
1303 && defaultStartPositionInPeriodUs >= periodDurationUs) { in getAdjustedWindowDefaultStartPositionUs()
1304 defaultStartPositionInPeriodUs -= periodDurationUs; in getAdjustedWindowDefaultStartPositionUs()
1306 periodDurationUs = manifest.getPeriodDurationUs(periodIndex); in getAdjustedWindowDefaultStartPositionUs()
1319 if (snapIndex == null || snapIndex.getSegmentCount(periodDurationUs) == 0) { in getAdjustedWindowDefaultStartPositionUs()
1323 long segmentNum = snapIndex.getSegmentNum(defaultStartPositionInPeriodUs, periodDurationUs); in getAdjustedWindowDefaultStartPositionUs()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/
DSegmentBase.java149 public long getSegmentNum(long timeUs, long periodDurationUs) { in getSegmentNum() argument
151 final long segmentCount = getSegmentCount(periodDurationUs); in getSegmentNum()
183 public final long getSegmentDurationUs(long sequenceNumber, long periodDurationUs) { in getSegmentDurationUs() argument
188 int segmentCount = getSegmentCount(periodDurationUs); in getSegmentDurationUs()
191 ? (periodDurationUs - getSegmentTimeUs(sequenceNumber)) in getSegmentDurationUs()
225 public abstract int getSegmentCount(long periodDurationUs); in getSegmentCount() argument
275 public int getSegmentCount(long periodDurationUs) { in getSegmentCount() argument
363 public int getSegmentCount(long periodDurationUs) { in getSegmentCount() argument
368 } else if (periodDurationUs != C.TIME_UNSET) { in getSegmentCount()
370 return (int) Util.ceilDivide(periodDurationUs, durationUs); in getSegmentCount()
DSingleSegmentIndex.java35 public long getSegmentNum(long timeUs, long periodDurationUs) { in getSegmentNum() argument
45 public long getDurationUs(long segmentNum, long periodDurationUs) { in getDurationUs() argument
46 return periodDurationUs; in getDurationUs()
60 public int getSegmentCount(long periodDurationUs) { in getSegmentCount() argument
DRepresentation.java322 public long getSegmentNum(long timeUs, long periodDurationUs) { in getSegmentNum() argument
323 return segmentBase.getSegmentNum(timeUs, periodDurationUs); in getSegmentNum()
332 public long getDurationUs(long segmentIndex, long periodDurationUs) { in getDurationUs() argument
333 return segmentBase.getSegmentDurationUs(segmentIndex, periodDurationUs); in getDurationUs()
342 public int getSegmentCount(long periodDurationUs) { in getSegmentCount() argument
343 return segmentBase.getSegmentCount(periodDurationUs); in getSegmentCount()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ads/
DAdPlaybackState.java326 public int getAdGroupIndexForPositionUs(long positionUs, long periodDurationUs) { in getAdGroupIndexForPositionUs() argument
330 while (index >= 0 && isPositionBeforeAdGroup(positionUs, periodDurationUs, index)) { in getAdGroupIndexForPositionUs()
347 public int getAdGroupIndexAfterPositionUs(long positionUs, long periodDurationUs) { in getAdGroupIndexAfterPositionUs() argument
349 || (periodDurationUs != C.TIME_UNSET && positionUs >= periodDurationUs)) { in getAdGroupIndexAfterPositionUs()
481 long positionUs, long periodDurationUs, int adGroupIndex) { in isPositionBeforeAdGroup() argument
488 return periodDurationUs == C.TIME_UNSET || positionUs < periodDurationUs; in isPositionBeforeAdGroup()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/offline/
DDashDownloader.java112 long periodDurationUs = manifest.getPeriodDurationUs(i); in getSegments() local
119 periodDurationUs, in getSegments()
131 long periodDurationUs, in addSegmentsForAdaptationSet() argument
152 int segmentCount = index.getSegmentCount(periodDurationUs); in addSegmentsForAdaptationSet()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeTimeline.java295 long periodDurationUs = in getPeriod() local
302 periodDurationUs += windowDefinition.windowOffsetInFirstPeriodUs; in getPeriod()
306 positionInWindowUs = periodDurationUs * windowPeriodIndex; in getPeriod()
312 periodDurationUs, in getPeriod()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DTimeline.java884 long periodDurationUs = getPeriod(periodIndex, period, /* setIds= */ true).getDurationUs(); in getPeriodPosition() local
885 while (periodDurationUs != C.TIME_UNSET && periodPositionUs >= periodDurationUs in getPeriodPosition()
887 periodPositionUs -= periodDurationUs; in getPeriodPosition()
888 periodDurationUs = getPeriod(++periodIndex, period, /* setIds= */ true).getDurationUs(); in getPeriodPosition()
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/
DHlsMediaSource.java484 long periodDurationUs = in onPrimaryPlaylistRefreshed() local
506 periodDurationUs, in onPrimaryPlaylistRefreshed()
/external/exoplayer/tree/library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/
DSsMediaSource.java703 long periodDurationUs = manifest.isLive ? C.TIME_UNSET : 0; in processManifest() local
706 periodDurationUs, in processManifest()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DExoPlayerTest.java2990 long periodDurationUs = 5 * C.MICROS_PER_SECOND; in periodTransitionReportsCorrectBufferedPosition() local
2991 long windowDurationUs = periodCount * periodDurationUs; in periodTransitionReportsCorrectBufferedPosition()