Home
last modified time | relevance | path

Searched refs:mediaTimeHistory (Results 1 – 2 of 2) sorted by relevance

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/
DPlaybackStats.java391 public final List<long[]> mediaTimeHistory; field in PlaybackStats
541 List<long[]> mediaTimeHistory, in PlaybackStats() argument
581 this.mediaTimeHistory = Collections.unmodifiableList(mediaTimeHistory); in PlaybackStats()
657 if (mediaTimeHistory.isEmpty()) { in getMediaTimeMsAtRealtimeMs()
661 while (nextIndex < mediaTimeHistory.size() in getMediaTimeMsAtRealtimeMs()
662 && mediaTimeHistory.get(nextIndex)[0] <= realtimeMs) { in getMediaTimeMsAtRealtimeMs()
666 return mediaTimeHistory.get(0)[1]; in getMediaTimeMsAtRealtimeMs()
668 if (nextIndex == mediaTimeHistory.size()) { in getMediaTimeMsAtRealtimeMs()
669 return mediaTimeHistory.get(mediaTimeHistory.size() - 1)[1]; in getMediaTimeMsAtRealtimeMs()
671 long prevRealtimeMs = mediaTimeHistory.get(nextIndex - 1)[0]; in getMediaTimeMsAtRealtimeMs()
[all …]
DPlaybackStatsListener.java455 private final List<long[]> mediaTimeHistory; field in PlaybackStatsListener.PlaybackStatsTracker
516 mediaTimeHistory = keepHistory ? new ArrayList<>() : Collections.emptyList(); in PlaybackStatsTracker()
784 List<long[]> mediaTimeHistory = this.mediaTimeHistory; in build() local
794 mediaTimeHistory = new ArrayList<>(this.mediaTimeHistory); in build()
796 mediaTimeHistory.add(guessMediaTimeBasedOnElapsedRealtime(buildTimeMs)); in build()
814 mediaTimeHistory, in build()
964 if (!mediaTimeHistory.isEmpty()) { in maybeUpdateMediaTimeHistory()
965 long previousMediaTimeMs = mediaTimeHistory.get(mediaTimeHistory.size() - 1)[1]; in maybeUpdateMediaTimeHistory()
967 mediaTimeHistory.add(new long[] {realtimeMs, previousMediaTimeMs}); in maybeUpdateMediaTimeHistory()
971 mediaTimeHistory.add( in maybeUpdateMediaTimeHistory()
[all …]