/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ |
D | SilenceMediaSource.java | 39 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 …]
|
D | SingleSampleMediaSource.java | 148 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 …]
|
D | ClippingMediaSource.java | 126 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 …]
|
D | SinglePeriodTimeline.java | 52 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()
|
D | ProgressiveMediaSource.java | 294 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/ |
D | XingSeeker.java | 60 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 …]
|
D | IndexSeeker.java | 34 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()
|
D | VbriSeeker.java | 56 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()
|
D | MlltSeeker.java | 53 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/ |
D | CastTimeline.java | 37 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()
|
D | CastTimelineTracker.java | 79 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/ |
D | MediaPeriodInfo.java | 50 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()
|
D | Timeline.java | 204 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 …]
|
D | MediaPeriodQueue.java | 108 && 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/ |
D | FakeTimeline.java | 48 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 …]
|
D | FakeExtractorOutput.java | 104 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()
|
D | FakeAdaptiveMediaPeriod.java | 48 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/ |
D | SeekMap.java | 30 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()
|
D | ChunkIndex.java | 51 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()
|
D | ConstantBitrateSeekMap.java | 33 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()
|
D | BinarySearchSeeker.java | 120 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/ |
D | HlsMediaPlaylist.java | 47 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/ |
D | Track.java | 71 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()
|
D | TrackSampleTable.java | 45 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/ |
D | SinglePeriodAdTimeline.java | 51 period.durationUs, in getPeriod() 60 if (window.durationUs == C.TIME_UNSET) { in getWindow() 61 window.durationUs = adPlaybackState.contentDurationUs; in getWindow()
|