Home
last modified time | relevance | path

Searched refs:getTotalWatchDurationMs (Results 1 – 3 of 3) sorted by relevance

/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DChannelRecordTest.java80 assertThat(mChannelRecord.getTotalWatchDurationMs()).isEqualTo(0); in testGetTotalWatchDuration_noHistory()
87 assertThat(mChannelRecord.getTotalWatchDurationMs()).isEqualTo(durationMs); in testGetTotalWatchDuration_oneHistory()
98 assertThat(mChannelRecord.getTotalWatchDurationMs()).isEqualTo(totalWatchTimeMs); in testGetTotalWatchDuration_maxHistories()
114 assertThat(mChannelRecord.getTotalWatchDurationMs()) in testGetTotalWatchDuration_moreThanMaxHistories()
/packages/apps/TV/src/com/android/tv/recommendation/
DFavoriteChannelEvaluator.java44 if (cr.getTotalWatchDurationMs() == 0) { in evaluateChannel()
49 return (double) cr.getTotalWatchDurationMs() / Math.max(watchPeriodMs, MIN_WATCH_PERIOD_MS); in evaluateChannel()
DChannelRecord.java83 public long getTotalWatchDurationMs() { in getTotalWatchDurationMs() method in ChannelRecord