Searched refs:mediaTimeHistory (Results 1 – 2 of 2) sorted by relevance
391 public final List<long[]> mediaTimeHistory; field in PlaybackStats541 List<long[]> mediaTimeHistory, in PlaybackStats() argument581 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 …]
455 private final List<long[]> mediaTimeHistory; field in PlaybackStatsListener.PlaybackStatsTracker516 mediaTimeHistory = keepHistory ? new ArrayList<>() : Collections.emptyList(); in PlaybackStatsTracker()784 List<long[]> mediaTimeHistory = this.mediaTimeHistory; in build() local794 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 …]