Home
last modified time | relevance | path

Searched refs:durationUs (Results 1 – 25 of 66) sorted by relevance

123

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DSilenceMediaSource.java39 private long durationUs; field in SilenceMediaSource.Factory
48 public Factory setDurationUs(long durationUs) { in setDurationUs() argument
49 this.durationUs = durationUs; in setDurationUs()
68 return new SilenceMediaSource(durationUs, tag); in createMediaSource()
85 private final long durationUs; field in SilenceMediaSource
93 public SilenceMediaSource(long durationUs) { in SilenceMediaSource() argument
94 this(durationUs, /* tag= */ null); in SilenceMediaSource()
97 private SilenceMediaSource(long durationUs, @Nullable Object tag) { in SilenceMediaSource() argument
98 Assertions.checkArgument(durationUs >= 0); in SilenceMediaSource()
99 this.durationUs = durationUs; in SilenceMediaSource()
[all …]
DSingleSampleMediaSource.java148 public SingleSampleMediaSource createMediaSource(Uri uri, Format format, long durationUs) { in createMediaSource() argument
153 durationUs, in createMediaSource()
167 long durationUs, in createMediaSource() argument
170 SingleSampleMediaSource mediaSource = createMediaSource(uri, format, durationUs); in createMediaSource()
182 private final long durationUs; field in SingleSampleMediaSource
201 Uri uri, DataSource.Factory dataSourceFactory, Format format, long durationUs) { in SingleSampleMediaSource() argument
206 durationUs, in SingleSampleMediaSource()
224 long durationUs, in SingleSampleMediaSource() argument
230 durationUs, in SingleSampleMediaSource()
257 long durationUs, in SingleSampleMediaSource() argument
[all …]
DClippingMediaSource.java126 public ClippingMediaSource(MediaSource mediaSource, long durationUs) { in ClippingMediaSource() argument
130 /* endPositionUs= */ durationUs, in ClippingMediaSource()
302 private final long durationUs; field in ClippingMediaSource.ClippingTimeline
325 long resolvedEndUs = endUs == C.TIME_END_OF_SOURCE ? window.durationUs : Math.max(0, endUs); in ClippingTimeline()
326 if (window.durationUs != C.TIME_UNSET) { in ClippingTimeline()
327 if (resolvedEndUs > window.durationUs) { in ClippingTimeline()
328 resolvedEndUs = window.durationUs; in ClippingTimeline()
336 durationUs = resolvedEndUs == C.TIME_UNSET ? C.TIME_UNSET : (resolvedEndUs - startUs); in ClippingTimeline()
340 || (window.durationUs != C.TIME_UNSET && resolvedEndUs == window.durationUs)); in ClippingTimeline()
347 window.durationUs = durationUs; in getWindow()
[all …]
DSinglePeriodTimeline.java52 long durationUs, boolean isSeekable, boolean isDynamic, boolean isLive) { in SinglePeriodTimeline() argument
53 this(durationUs, isSeekable, isDynamic, isLive, /* manifest= */ null, /* tag= */ null); in SinglePeriodTimeline()
67 long durationUs, in SinglePeriodTimeline() argument
74 durationUs, in SinglePeriodTimeline()
75 durationUs, in SinglePeriodTimeline()
DProgressiveMediaSource.java294 public void onSourceInfoRefreshed(long durationUs, boolean isSeekable, boolean isLive) { in onSourceInfoRefreshed() argument
296 durationUs = durationUs == C.TIME_UNSET ? timelineDurationUs : durationUs; in onSourceInfoRefreshed()
298 && timelineDurationUs == durationUs in onSourceInfoRefreshed()
304 timelineDurationUs = durationUs; in onSourceInfoRefreshed()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp3/
DXingSeeker.java60 long durationUs = Util.scaleLargeTimestamp(frameCount, samplesPerFrame * C.MICROS_PER_SECOND, in create() local
64 return new XingSeeker(position, mpegAudioHeader.frameSize, durationUs); in create()
81 position, mpegAudioHeader.frameSize, durationUs, dataSize, tableOfContents); in create()
86 private final long durationUs; field in XingSeeker
97 private XingSeeker(long dataStartPosition, int xingFrameSize, long durationUs) { in XingSeeker() argument
101 durationUs, in XingSeeker()
109 long durationUs, in XingSeeker() argument
114 this.durationUs = durationUs; in XingSeeker()
130 timeUs = Util.constrainValue(timeUs, 0, durationUs); in getSeekPoints()
131 double percent = (timeUs * 100d) / durationUs; in getSeekPoints()
[all …]
DIndexSeeker.java34 private long durationUs; field in IndexSeeker
36 public IndexSeeker(long durationUs, long dataStartPosition, long dataEndPosition) { in IndexSeeker() argument
37 this.durationUs = durationUs; in IndexSeeker()
65 return durationUs; in getDurationUs()
109 /* package */ void setDurationUs(long durationUs) { in setDurationUs() argument
110 this.durationUs = durationUs; in setDurationUs()
DVbriSeeker.java56 long durationUs = Util.scaleLargeTimestamp(numFrames, in create() local
68 timesUs[index] = (index * durationUs) / entryCount; in create()
94 return new VbriSeeker(timesUs, positions, durationUs, /* dataEndPosition= */ position); in create()
99 private final long durationUs; field in VbriSeeker
102 private VbriSeeker(long[] timesUs, long[] positions, long durationUs, long dataEndPosition) { in VbriSeeker() argument
105 this.durationUs = durationUs; in VbriSeeker()
133 return durationUs; in getDurationUs()
DMlltSeeker.java53 private final long durationUs; field in MlltSeeker
60 durationUs = C.msToUs(referenceTimesMs[referenceTimesMs.length - 1]); in MlltSeeker()
70 timeUs = Util.constrainValue(timeUs, 0, durationUs); in getSeekPoints()
87 return durationUs; in getDurationUs()
/external/exoplayer/tree/extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/
DCastTimeline.java37 public final long durationUs; field in CastTimeline.ItemData
59 public ItemData(long durationUs, long defaultPositionUs, boolean isLive) { in ItemData() argument
60 this.durationUs = durationUs; in ItemData()
73 public ItemData copyWithNewValues(long durationUs, long defaultPositionUs, boolean isLive) { in copyWithNewValues() argument
74 if (durationUs == this.durationUs in copyWithNewValues()
79 return new ItemData(durationUs, defaultPositionUs, isLive); in copyWithNewValues()
110 durationsUs[i] = data.durationUs; in CastTimeline()
125 long durationUs = durationsUs[windowIndex]; in getWindow() local
126 boolean isDynamic = durationUs == C.TIME_UNSET; in getWindow()
138 durationUs, in getWindow()
DCastTimelineTracker.java79 long durationUs = CastUtils.getStreamDurationUs(mediaInfo); in updateItemData() local
80 if (durationUs == C.TIME_UNSET) { in updateItemData()
81 durationUs = previousData.durationUs; in updateItemData()
90 itemIdToData.put(itemId, previousData.copyWithNewValues(durationUs, defaultPositionUs, isLive)); in updateItemData()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DMediaPeriodInfo.java50 public final long durationUs; field in MediaPeriodInfo
69 long durationUs, in MediaPeriodInfo() argument
77 this.durationUs = durationUs; in MediaPeriodInfo()
95 durationUs, in copyWithStartPositionUs()
113 durationUs, in copyWithRequestedContentPositionUs()
131 && durationUs == that.durationUs in equals()
145 result = 31 * result + (int) durationUs; in hashCode()
DTimeline.java204 public long durationUs; field in Timeline.Window
229 long durationUs, in set() argument
243 this.durationUs = durationUs; in set()
275 return C.usToMs(durationUs); in getDurationMs()
282 return durationUs; in getDurationUs()
331 && durationUs == that.durationUs in equals()
353 result = 31 * result + (int) (durationUs ^ (durationUs >>> 32)); in hashCode()
393 public long durationUs; field in Timeline.Period
422 long durationUs, in set() argument
424 return set(id, uid, windowIndex, durationUs, positionInWindowUs, AdPlaybackState.NONE); in set()
[all …]
DMediaPeriodQueue.java108 && loading.info.durationUs != C.TIME_UNSET in shouldLoadNextMediaPeriod()
152 : (loading.getRendererOffset() + loading.info.durationUs - info.startPositionUs); in enqueueNextMediaPeriodHolder()
323 if (!areDurationsCompatible(oldPeriodInfo.durationUs, newPeriodInfo.durationUs)) { in updateQueuedPeriods()
327 newPeriodInfo.durationUs == C.TIME_UNSET in updateQueuedPeriods()
329 : periodHolder.toRendererTime(newPeriodInfo.durationUs); in updateQueuedPeriods()
359 long durationUs = in getUpdatedMediaPeriodInfo() local
370 durationUs, in getUpdatedMediaPeriodInfo()
568 mediaPeriodHolder.getRendererOffset() + mediaPeriodInfo.durationUs - rendererPositionUs; in getFollowingMediaPeriodInfo()
675 /* startPositionUs= */ mediaPeriodInfo.durationUs, in getFollowingMediaPeriodInfo()
676 /* requestedContentPositionUs= */ mediaPeriodInfo.durationUs, in getFollowingMediaPeriodInfo()
[all …]
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeTimeline.java48 public final long durationUs; field in FakeTimeline.TimelineWindowDefinition
92 public TimelineWindowDefinition(boolean isSeekable, boolean isDynamic, long durationUs) { in TimelineWindowDefinition() argument
93 this(1, 0, isSeekable, isDynamic, durationUs); in TimelineWindowDefinition()
107 boolean isDynamic, long durationUs) { in TimelineWindowDefinition() argument
108 this(periodCount, id, isSeekable, isDynamic, durationUs, AdPlaybackState.NONE); in TimelineWindowDefinition()
127 long durationUs, in TimelineWindowDefinition() argument
136 durationUs, in TimelineWindowDefinition()
165 long durationUs, in TimelineWindowDefinition() argument
169 Assertions.checkArgument(durationUs != C.TIME_UNSET || periodCount == 1); in TimelineWindowDefinition()
176 this.durationUs = durationUs; in TimelineWindowDefinition()
[all …]
DFakeExtractorOutput.java104 long durationUs = seekMap.getDurationUs(); in seekMap() local
105 if (durationUs != C.TIME_UNSET) { in seekMap()
106 seekPoints = seekMap.getSeekPoints(durationUs); in seekMap()
171 long durationUs = seekMap.getDurationUs(); in dump() local
172 long midPointUs = durationUs / 2; in dump()
174 dumper.add("getPosition(" + durationUs + ")", seekMap.getSeekPoints(durationUs)); in dump()
DFakeAdaptiveMediaPeriod.java48 private final long durationUs; field in FakeAdaptiveMediaPeriod
59 long durationUs, in FakeAdaptiveMediaPeriod() argument
65 this.durationUs = durationUs; in FakeAdaptiveMediaPeriod()
147 chunkSourceFactory.createChunkSource(trackSelection, durationUs, transferListener); in createSampleStream()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/
DSeekMap.java30 private final long durationUs; field in SeekMap.Unseekable
37 public Unseekable(long durationUs) { in Unseekable() argument
38 this(durationUs, 0); in Unseekable()
46 public Unseekable(long durationUs, long startPosition) { in Unseekable() argument
47 this.durationUs = durationUs; in Unseekable()
59 return durationUs; in getDurationUs()
DChunkIndex.java51 private final long durationUs; field in ChunkIndex
66 durationUs = durationsUs[length - 1] + timesUs[length - 1]; in ChunkIndex()
68 durationUs = 0; in ChunkIndex()
91 return durationUs; in getDurationUs()
DConstantBitrateSeekMap.java33 private final long durationUs; field in ConstantBitrateSeekMap
53 durationUs = C.TIME_UNSET; in ConstantBitrateSeekMap()
56 durationUs = getTimeUsAtPosition(inputLength, firstFrameBytePosition, bitrate); in ConstantBitrateSeekMap()
85 return durationUs; in getDurationUs()
DBinarySearchSeeker.java120 long durationUs, in BinarySearchSeeker() argument
132 durationUs, in BinarySearchSeeker()
483 private final long durationUs; field in BinarySearchSeeker.BinarySearchSeekMap
493 long durationUs, in BinarySearchSeekMap() argument
500 this.durationUs = durationUs; in BinarySearchSeekMap()
528 return durationUs; in getDurationUs()
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/playlist/
DHlsMediaPlaylist.java47 public final long durationUs; field in HlsMediaPlaylist.Segment
130 long durationUs, in Segment() argument
142 this.durationUs = durationUs; in Segment()
230 public final long durationUs; field in HlsMediaPlaylist
279 durationUs = last.relativeStartTimeUs + last.durationUs; in HlsMediaPlaylist()
281 durationUs = 0; in HlsMediaPlaylist()
284 : startOffsetUs >= 0 ? startOffsetUs : durationUs + startOffsetUs; in HlsMediaPlaylist()
316 return startTimeUs + durationUs; in getEndTimeUs()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/
DTrack.java71 public final long durationUs; field in Track
102 public Track(int id, int type, long timescale, long movieTimescale, long durationUs, in Track() argument
110 this.durationUs = durationUs; in Track()
138 durationUs, in copyWithFormat()
DTrackSampleTable.java45 public final long durationUs; field in TrackSampleTable
54 long durationUs) { in TrackSampleTable() argument
65 this.durationUs = durationUs; in TrackSampleTable()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ads/
DSinglePeriodAdTimeline.java51 period.durationUs, in getPeriod()
60 if (window.durationUs == C.TIME_UNSET) { in getWindow()
61 window.durationUs = adPlaybackState.contentDurationUs; in getWindow()

123