Searched refs:latestWatchEndTimeMs (Results 1 – 5 of 5) sorted by relevance
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
D | RecentChannelEvaluatorTest.java | 96 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()
|
D | RecommendationUtils.java | 124 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()
|
D | FavoriteChannelEvaluatorTest.java | 94 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()
|
D | EvaluatorTestCase.java | 82 long latestWatchEndTimeMs = 0; in getLatestWatchEndTimeMs() local 84 latestWatchEndTimeMs = in getLatestWatchEndTimeMs() 85 Math.max(latestWatchEndTimeMs, channelRecord.getLastWatchEndTimeMs()); in getLatestWatchEndTimeMs() 87 return latestWatchEndTimeMs; in getLatestWatchEndTimeMs()
|
D | RecommenderTest.java | 249 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()
|