Home
last modified time | relevance | path

Searched refs:Evaluator (Results 1 – 9 of 9) sorted by relevance

/packages/apps/TV/src/com/android/tv/recommendation/
DRecommender.java88 public void registerEvaluator(Evaluator evaluator) { in registerEvaluator()
103 public void registerEvaluator(Evaluator evaluator, double baseScore, double weight) { in registerEvaluator()
124 double maxScore = Evaluator.NOT_RECOMMENDED; in recommendChannels()
131 if (!mIncludeRecommendedOnly || maxScore != Evaluator.NOT_RECOMMENDED) { in recommendChannels()
235 public abstract static class Evaluator { class in Recommender
239 protected Evaluator() {} in Evaluator() method in Recommender.Evaluator
273 private final Evaluator mEvaluator;
281 Recommender recommender, Evaluator evaluator, double baseScore, double weight) { in EvaluatorWrapper()
301 if (score != Evaluator.NOT_RECOMMENDED) { in getScaledEvaluatorScore()
307 return Evaluator.NOT_RECOMMENDED; in getScaledEvaluatorScore()
DRandomEvaluator.java19 public class RandomEvaluator extends Recommender.Evaluator {
DFavoriteChannelEvaluator.java21 public class FavoriteChannelEvaluator extends Recommender.Evaluator {
DRecentChannelEvaluator.java21 public class RecentChannelEvaluator extends Recommender.Evaluator {
DRoutineWatchEvaluator.java31 public class RoutineWatchEvaluator extends Recommender.Evaluator {
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DEvaluatorTestCase.java25 import com.android.tv.recommendation.Recommender.Evaluator;
32 public abstract class EvaluatorTestCase<T extends Evaluator> {
93 Evaluator.NOT_RECOMMENDED, mEvaluator.evaluateChannel(INVALID_CHANNEL_ID)); in assertChannelScoresValid()
95 Evaluator.NOT_RECOMMENDED, in assertChannelScoresValid()
102 score == Evaluator.NOT_RECOMMENDED || (0.0 <= score && score <= 1.0)); in assertChannelScoresValid()
DRecentChannelEvaluatorTest.java52 Recommender.Evaluator.NOT_RECOMMENDED, mEvaluator.evaluateChannel(channelId)); in testOneChannelWithNoWatchLog()
75 Recommender.Evaluator.NOT_RECOMMENDED, mEvaluator.evaluateChannel(channelId)); in testMultiChannelsWithNoWatchLog()
106 double previousScore = Recommender.Evaluator.NOT_RECOMMENDED; in testMultiChannelsWithSimpleWatchLogs()
DFavoriteChannelEvaluatorTest.java50 Recommender.Evaluator.NOT_RECOMMENDED, mEvaluator.evaluateChannel(channelId)); in testOneChannelWithNoWatchLog()
73 Recommender.Evaluator.NOT_RECOMMENDED, mEvaluator.evaluateChannel(channelId)); in testMultiChannelsWithNoWatchLog()
106 double previousScore = Recommender.Evaluator.NOT_RECOMMENDED; in testMultiChannelsWithSimpleWatchLogs()
DRecommenderTest.java340 private class FakeEvaluator extends Recommender.Evaluator {