Home
last modified time | relevance | path

Searched refs:latestWatchEndTimeMs (Results 1 – 5 of 5) sorted by relevance

/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DRecentChannelEvaluatorTest.java96 long latestWatchEndTimeMs = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(2); in testMultiChannelsWithSimpleWatchLogs() local
99 addWatchLog(channelId, latestWatchEndTimeMs, TimeUnit.HOURS.toMillis(1)); in testMultiChannelsWithSimpleWatchLogs()
100 latestWatchEndTimeMs += TimeUnit.HOURS.toMillis(1); in testMultiChannelsWithSimpleWatchLogs()
124 long latestWatchEndTimeMs = getLatestWatchEndTimeMs(); in testScoreIncreasesWithNewWatchLog() local
129 addWatchLog(channelId, latestWatchEndTimeMs, durationMs); in testScoreIncreasesWithNewWatchLog()
130 latestWatchEndTimeMs += durationMs; in testScoreIncreasesWithNewWatchLog()
DRecommendationUtils.java124 long latestWatchEndTimeMs = watchStartTimeMs; in addRandomWatchLogs() local
127 while (latestWatchEndTimeMs < watchEndTimeMs) { in addRandomWatchLogs()
131 latestWatchEndTimeMs += TimeUnit.MINUTES.toMillis(mRandom.nextInt(30) + 1); in addRandomWatchLogs()
134 if (!addWatchLog(channelId, latestWatchEndTimeMs, watchedDurationMs)) { in addRandomWatchLogs()
137 latestWatchEndTimeMs += watchedDurationMs; in addRandomWatchLogs()
DFavoriteChannelEvaluatorTest.java94 long latestWatchEndTimeMs = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(2); in testMultiChannelsWithSimpleWatchLogs() local
99 addWatchLog(channelId, latestWatchEndTimeMs, durationMs); in testMultiChannelsWithSimpleWatchLogs()
100 latestWatchEndTimeMs += durationMs; in testMultiChannelsWithSimpleWatchLogs()
169 long latestWatchEndTimeMs = getLatestWatchEndTimeMs(); in testScoreIncreasesWithNewWatchLog() local
172 addWatchLog(channelId, latestWatchEndTimeMs, TimeUnit.MINUTES.toMillis(10)); in testScoreIncreasesWithNewWatchLog()
DEvaluatorTestCase.java82 long latestWatchEndTimeMs = 0; in getLatestWatchEndTimeMs() local
84 latestWatchEndTimeMs = in getLatestWatchEndTimeMs()
85 Math.max(latestWatchEndTimeMs, channelRecord.getLastWatchEndTimeMs()); in getLatestWatchEndTimeMs()
87 return latestWatchEndTimeMs; in getLatestWatchEndTimeMs()
DRecommenderTest.java249 long latestWatchEndTimeMs = DEFAULT_WATCH_START_TIME_MS; in testListener_onRecommendationChanged() local
255 channelId, latestWatchEndTimeMs, TimeUnit.MINUTES.toMillis(10))) in testListener_onRecommendationChanged()
257 latestWatchEndTimeMs += TimeUnit.MINUTES.toMillis(10); in testListener_onRecommendationChanged()