Home
last modified time | relevance | path

Searched refs:getDurationUs (Results 1 – 25 of 50) sorted by relevance

12

/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/
DClippingMediaSourceTest.java78 assertThat(clippedTimeline.getWindow(0, window).getDurationUs()) in noClipping()
80 assertThat(clippedTimeline.getPeriod(0, period).getDurationUs()) in noClipping()
135 assertThat(clippedTimeline.getWindow(0, window).getDurationUs()) in clippingStart()
137 assertThat(clippedTimeline.getPeriod(0, period).getDurationUs()) in clippingStart()
152 assertThat(clippedTimeline.getWindow(0, window).getDurationUs()) in clippingEnd()
154 assertThat(clippedTimeline.getPeriod(0, period).getDurationUs()) in clippingEnd()
168 assertThat(clippedTimeline.getWindow(0, window).getDurationUs()) in clippingStartAndEndInitial()
170 assertThat(clippedTimeline.getPeriod(0, period).getDurationUs()) in clippingStartAndEndInitial()
187 assertThat(clippedTimeline.getWindow(/* windowIndex= */ 0, window).getDurationUs()) in clippingToEndOfSourceWithDurationSetsDuration()
204 assertThat(clippedTimeline.getWindow(/* windowIndex= */ 0, window).getDurationUs()) in clippingToEndOfSourceWithUnsetDurationDoesNotSetDuration()
[all …]
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeExtractorOutput.java104 long durationUs = seekMap.getDurationUs(); in seekMap()
165 .addTime("duration", seekMap.getDurationUs()) in dump()
169 if (seekMap.getDurationUs() != C.TIME_UNSET) { in dump()
171 long durationUs = seekMap.getDurationUs(); in dump()
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/
DConstantBitrateSeekMapTest.java80 assertThat(constantBitrateSeekMap.getDurationUs()).isEqualTo(2_200_000); in getDurationUs_forKnownInputLength_returnCorrectDuration()
91 assertThat(constantBitrateSeekMap.getDurationUs()).isEqualTo(C.TIME_UNSET); in getDurationUs_forUnnnownInputLength_returnUnknownDuration()
203 assertThat(timeUs).isEqualTo(constantBitrateSeekMap.getDurationUs()); in getTimeUsAtPosition_forPositionAtEndOfStream_returnStreamDuration()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/
DSeekMap.java58 public long getDurationUs() { in getDurationUs() method in SeekMap.Unseekable
126 long getDurationUs(); in getDurationUs() method
DFlacSeekTableSeekMap.java48 public long getDurationUs() { in getDurationUs() method in FlacSeekTableSeekMap
49 return flacStreamMetadata.getDurationUs(); in getDurationUs()
DChunkIndex.java90 public long getDurationUs() { in getDurationUs() method in ChunkIndex
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flac/
DFlacExtractorSeekTest.java58 assertThat(seekMap.getDurationUs()).isEqualTo(DURATION_US); in flacExtractorReads_seekTable_returnSeekableSeekMap()
86 long targetSeekTimeUs = seekMap.getDurationUs(); in seeking_seekTable_handlesSeekToEoF()
141 assertThat(seekMap.getDurationUs()).isEqualTo(DURATION_US); in flacExtractorReads_binarySearch_returnSeekableSeekMap()
169 long targetSeekTimeUs = seekMap.getDurationUs(); in seeking_binarySearch_handlesSeekToEoF()
224 assertThat(seekMap.getDurationUs()).isEqualTo(C.TIME_UNSET); in flacExtractorReads_unseekable_returnUnseekableSeekMap()
/external/exoplayer/tree/extensions/flac/src/androidTest/java/com/google/android/exoplayer2/ext/flac/
DFlacExtractorSeekTest.java58 assertThat(seekMap.getDurationUs()).isEqualTo(DURATION_US); in flacExtractorReads_seekTable_returnSeekableSeekMap()
86 long targetSeekTimeUs = seekMap.getDurationUs(); in seeking_seekTable_handlesSeekToEoF()
141 assertThat(seekMap.getDurationUs()).isEqualTo(DURATION_US); in flacExtractorReads_binarySearch_returnSeekableSeekMap()
169 long targetSeekTimeUs = seekMap.getDurationUs(); in seeking_binarySearch_handlesSeekToEoF()
224 assertThat(seekMap.getDurationUs()).isEqualTo(C.TIME_UNSET); in flacExtractorReads_unseekable_returnUnseekableSeekMap()
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/
DTsDurationReaderTest.java70 assertThat(tsDurationReader.getDurationUs() / 1000).isEqualTo(2500); in readDuration_returnsCorrectDuration()
95 assertThat(tsDurationReader.getDurationUs() / 1000).isEqualTo(2500); in readDuration_midStream_returnsCorrectDuration()
DPsDurationReaderTest.java66 assertThat(tsDurationReader.getDurationUs()).isEqualTo(766); in readDuration_returnsCorrectDuration()
87 assertThat(tsDurationReader.getDurationUs()).isEqualTo(766); in readDuration_midStream_returnsCorrectDuration()
DAdtsExtractorSeekTest.java71 assertThat(seekMap.getDurationUs()).isEqualTo(FILE_DURATION_US); in adtsExtractorReads_returnSeekableSeekMap()
116 long targetSeekTimeUs = seekMap.getDurationUs(); in seeking_handlesSeekToEoF_extractsLastSample()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/flv/
DFlvExtractor.java266 long durationUs = metadataReader.getDurationUs(); in readTagData()
278 metadataReader.getDurationUs() == C.TIME_UNSET ? -tagTimestampUs : 0; in readTagData()
307 : (metadataReader.getDurationUs() == C.TIME_UNSET ? 0 : tagTimestampUs); in getCurrentTimestampUs()
/external/exoplayer/tree/extensions/flac/src/main/java/com/google/android/exoplayer2/ext/flac/
DFlacExtractor.java251 seekMap = new FlacSeekMap(streamMetadata.getDurationUs(), decoderJni); in outputSeekMap()
259 seekMap = new SeekMap.Unseekable(streamMetadata.getDurationUs()); in outputSeekMap()
312 public long getDurationUs() { in getDurationUs() method in FlacExtractor.FlacSeekMap
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DPsExtractor.java289 if (durationReader.getDurationUs() != C.TIME_UNSET) { in maybeOutputSeekMap()
293 durationReader.getDurationUs(), in maybeOutputSeekMap()
297 output.seekMap(new SeekMap.Unseekable(durationReader.getDurationUs())); in maybeOutputSeekMap()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/
DDashSegmentIndex.java57 long getDurationUs(long segmentNum, long periodDurationUs); in getDurationUs() method
DDashWrappingSegmentIndex.java55 public long getDurationUs(long segmentNum, long periodDurationUs) { in getDurationUs() method in DashWrappingSegmentIndex
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DTimeline.java281 public long getDurationUs() { in getDurationUs() method in Timeline.Window
470 public long getDurationUs() { in getDurationUs() method in Timeline.Period
884 long periodDurationUs = getPeriod(periodIndex, period, /* setIds= */ true).getDurationUs(); in getPeriodPosition()
888 periodDurationUs = getPeriod(++periodIndex, period, /* setIds= */ true).getDurationUs(); in getPeriodPosition()
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/
DAmrExtractorSeekTest.java73 assertThat(seekMap.getDurationUs()).isEqualTo(NARROW_BAND_FILE_DURATION_US); in amrExtractorReads_returnSeekableSeekMap_forNarrowBandAmr()
119 long targetSeekTimeUs = seekMap.getDurationUs(); in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr()
232 assertThat(seekMap.getDurationUs()).isEqualTo(WIDE_BAND_FILE_DURATION_US); in amrExtractorReads_returnSeekableSeekMap_forWideBandAmr()
278 long targetSeekTimeUs = seekMap.getDurationUs(); in seeking_handlesSeekToEoF_extractsLastFrame_forWideBandAmr()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/
DSingleSegmentIndex.java45 public long getDurationUs(long segmentNum, long periodDurationUs) { in getDurationUs() method in SingleSegmentIndex
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ads/
DAdsMediaSource.java310 adDurationsUs[i][j] = holder == null ? C.TIME_UNSET : holder.getDurationUs(); in getAdDurationsUs()
432 public long getDurationUs() { in getDurationUs() method in AdsMediaSource.AdMediaSourceHolder
435 : timeline.getPeriod(/* periodIndex= */ 0, period).getDurationUs(); in getDurationUs()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/chunk/
DChunk.java103 public final long getDurationUs() { in getDurationUs() method in Chunk
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/
DWavSeekMap.java46 public long getDurationUs() { in getDurationUs() method in WavSeekMap
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/
DConstantBitrateSeekerTest.java66 assertThat(seekMap.getDurationUs()).isEqualTo(2_784_000); in mp3ExtractorReads_returnSeekableCbrSeeker()
94 long targetSeekTimeUs = seekMap.getDurationUs(); in seeking_handlesSeekToEoF()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp3/
DMp3Extractor.java221 if (seeker.getDurationUs() != durationUs) { in read()
438 durationUs = metadataSeeker.getDurationUs(); in computeSeeker()
441 durationUs = seekFrameSeeker.getDurationUs(); in computeSeeker()
DIndexSeeker.java64 public long getDurationUs() { in getDurationUs() method in IndexSeeker

12