Home
last modified time | relevance | path

Searched refs:playbackPositionUs (Results 1 – 25 of 27) sorted by relevance

12

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/metadata/scte35/
DTimeSignalCommand.java35 public final long playbackPositionUs; field in TimeSignalCommand
37 private TimeSignalCommand(long ptsTime, long playbackPositionUs) { in TimeSignalCommand() argument
39 this.playbackPositionUs = playbackPositionUs; in TimeSignalCommand()
45 long playbackPositionUs = timestampAdjuster.adjustTsTimestamp(ptsTime); in parseFromSection() local
46 return new TimeSignalCommand(ptsTime, playbackPositionUs); in parseFromSection()
75 dest.writeLong(playbackPositionUs); in writeToParcel()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeRenderer.java52 private long playbackPositionUs; field in FakeRenderer
75 playbackPositionUs = positionUs; in onPositionReset()
87 playbackPositionUs = positionUs; in render()
133 return lastSamplePositionUs >= playbackPositionUs || hasPendingBuffer || isSourceReady(); in isReady()
165 protected boolean shouldProcessBuffer(long bufferTimeUs, long playbackPositionUs) { in shouldProcessBuffer() argument
166 return bufferTimeUs < playbackPositionUs + SOURCE_READAHEAD_US; in shouldProcessBuffer()
DFakeChunkSource.java101 public int getPreferredQueueSize(long playbackPositionUs, List<? extends MediaChunk> queue) {
102 return trackSelection.evaluateQueueSize(playbackPositionUs, queue);
107 long playbackPositionUs,
111 long bufferedDurationUs = loadPositionUs - playbackPositionUs;
114 ? dataSet.getChunkIndexByPosition(playbackPositionUs)
122 playbackPositionUs, bufferedDurationUs, C.TIME_UNSET, queue, chunkIterators);
DFakeVideoRenderer.java98 protected boolean shouldProcessBuffer(long bufferTimeUs, long playbackPositionUs) { in shouldProcessBuffer() argument
99 boolean shouldProcess = super.shouldProcessBuffer(bufferTimeUs, playbackPositionUs); in shouldProcessBuffer()
104 shouldProcess |= shouldRenderFirstFrame && playbackPositionUs >= streamOffsetUs; in shouldProcessBuffer()
DFakeAudioRenderer.java64 protected boolean shouldProcessBuffer(long bufferTimeUs, long playbackPositionUs) { in shouldProcessBuffer() argument
65 boolean shouldProcess = super.shouldProcessBuffer(bufferTimeUs, playbackPositionUs); in shouldProcessBuffer()
DFakeTrackSelection.java125 long playbackPositionUs, in updateSelectedTrack() argument
134 public int evaluateQueueSize(long playbackPositionUs, List<? extends MediaChunk> queue) { in evaluateQueueSize() argument
DMediaPeriodAsserts.java253 long playbackPositionUs, in updateSelectedTrack() argument
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/
DAudioTrackPositionTracker.java63 long playbackPositionUs); in onPositionFramesMismatch() argument
80 long playbackPositionUs); in onSystemTimeUsMismatch() argument
366 long playbackPositionUs = getPlaybackHeadPositionUs(); in maybeSampleSyncParams() local
367 if (playbackPositionUs == 0) { in maybeSampleSyncParams()
374 playheadOffsets[nextPlayheadOffsetIndex] = playbackPositionUs - systemTimeUs; in maybeSampleSyncParams()
392 maybePollAndCheckTimestamp(systemTimeUs, playbackPositionUs); in maybeSampleSyncParams()
396 private void maybePollAndCheckTimestamp(long systemTimeUs, long playbackPositionUs) { in maybePollAndCheckTimestamp() argument
410 playbackPositionUs); in maybePollAndCheckTimestamp()
412 } else if (Math.abs(framesToDurationUs(audioTimestampPositionFrames) - playbackPositionUs) in maybePollAndCheckTimestamp()
418 playbackPositionUs); in maybePollAndCheckTimestamp()
DDefaultAudioSink.java1373 long playbackPositionUs) { in onPositionFramesMismatch() argument
1382 + playbackPositionUs in onPositionFramesMismatch()
1398 long playbackPositionUs) { in onSystemTimeUsMismatch() argument
1407 + playbackPositionUs in onSystemTimeUsMismatch()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/cea/
DCeaDecoder.java44 private long playbackPositionUs; field in CeaDecoder
65 playbackPositionUs = positionUs; in setPositionUs()
104 && Util.castNonNull(queuedInputBuffers.peek()).timeUs <= playbackPositionUs) { in dequeueOutputBuffer()
151 playbackPositionUs = 0; in flush()
188 return playbackPositionUs; in getPositionUs()
/external/exoplayer/tree/library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/
DDefaultSsChunkSource.java181 public int getPreferredQueueSize(long playbackPositionUs, List<? extends MediaChunk> queue) {
185 return trackSelection.evaluateQueueSize(playbackPositionUs, queue);
190 long playbackPositionUs,
224 long bufferedDurationUs = loadPositionUs - playbackPositionUs;
225 long timeToLiveEdgeUs = resolveTimeToLiveEdgeUs(playbackPositionUs);
233 playbackPositionUs, bufferedDurationUs, timeToLiveEdgeUs, queue, chunkIterators);
306 private long resolveTimeToLiveEdgeUs(long playbackPositionUs) {
315 return lastChunkEndTimeUs - playbackPositionUs;
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/chunk/
DChunkSource.java59 int getPreferredQueueSize(long playbackPositionUs, List<? extends MediaChunk> queue); in getPreferredQueueSize() argument
79 long playbackPositionUs, in getNextChunk() argument
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/
DHlsChunkSource.java232 long playbackPositionUs, in getNextChunk() argument
239 long bufferedDurationUs = loadPositionUs - playbackPositionUs; in getNextChunk()
240 long timeToLiveEdgeUs = resolveTimeToLiveEdgeUs(playbackPositionUs); in getNextChunk()
258 playbackPositionUs, bufferedDurationUs, timeToLiveEdgeUs, queue, mediaChunkIterators); in getNextChunk()
495 private long resolveTimeToLiveEdgeUs(long playbackPositionUs) { in resolveTimeToLiveEdgeUs() argument
498 ? liveEdgeInPeriodTimeUs - playbackPositionUs in resolveTimeToLiveEdgeUs()
558 long playbackPositionUs, in updateSelectedTrack() argument
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/trackselection/
DTrackSelection.java227 long playbackPositionUs, in updateSelectedTrack() argument
251 int evaluateQueueSize(long playbackPositionUs, List<? extends MediaChunk> queue); in evaluateQueueSize() argument
DAdaptiveTrackSelection.java428 long playbackPositionUs, in updateSelectedTrack() argument
488 public int evaluateQueueSize(long playbackPositionUs, List<? extends MediaChunk> queue) { in evaluateQueueSize() argument
503 lastChunk.startTimeUs - playbackPositionUs, playbackSpeed); in evaluateQueueSize()
516 long mediaDurationBeforeThisChunkUs = chunk.startTimeUs - playbackPositionUs; in evaluateQueueSize()
DFixedTrackSelection.java93 long playbackPositionUs, in updateSelectedTrack() argument
DRandomTrackSelection.java100 long playbackPositionUs, in updateSelectedTrack() argument
DBaseTrackSelection.java150 public int evaluateQueueSize(long playbackPositionUs, List<? extends MediaChunk> queue) { in evaluateQueueSize() argument
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/
DDefaultDashChunkSource.java240 public int getPreferredQueueSize(long playbackPositionUs, List<? extends MediaChunk> queue) {
244 return trackSelection.evaluateQueueSize(playbackPositionUs, queue);
249 long playbackPositionUs,
257 long bufferedDurationUs = loadPositionUs - playbackPositionUs;
258 long timeToLiveEdgeUs = resolveTimeToLiveEdgeUs(playbackPositionUs);
300 playbackPositionUs, bufferedDurationUs, timeToLiveEdgeUs, queue, chunkIterators);
477 private long resolveTimeToLiveEdgeUs(long playbackPositionUs) {
479 return resolveTimeToLiveEdgePossible ? liveEdgeTimeUs - playbackPositionUs : C.TIME_UNSET;
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DLoadControl.java103 long playbackPositionUs, long bufferedDurationUs, float playbackSpeed); in shouldContinueLoading() argument
DDefaultLoadControl.java374 long playbackPositionUs, long bufferedDurationUs, float playbackSpeed) { in shouldContinueLoading() argument
DExoPlayerImplInternal.java1953 long playbackPositionUs =
1959 playbackPositionUs, bufferedDurationUs, mediaClock.getPlaybackSpeed());
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/metadata/scte35/
DSpliceInfoDecoderTest.java70 assertThat(((TimeSignalCommand) metadata.get(0)).playbackPositionUs) in wrappedAroundTimeSignalCommand()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/offline/
DDownloadHelper.java1166 long playbackPositionUs, in updateSelectedTrack() argument
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DProgressiveMediaPeriod.java340 public boolean continueLoading(long playbackPositionUs) { in continueLoading() argument

12