Searched refs:mRecommender (Results 1 – 7 of 7) sorted by relevance
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
D | RecommenderTest.java | 54 return mRecommender 56 .compareTo(mRecommender.getChannelSortKey(rhs.getId())); 73 private Recommender mRecommender; field in RecommenderTest 96 assertThat(mRecommender.recommendChannels()).isEmpty(); in testRecommendChannels_includeRecommendedOnly_allChannelsHaveNoScore() 97 assertThat(mRecommender.recommendChannels(-5)).isEmpty(); in testRecommendChannels_includeRecommendedOnly_allChannelsHaveNoScore() 98 assertThat(mRecommender.recommendChannels(0)).isEmpty(); in testRecommendChannels_includeRecommendedOnly_allChannelsHaveNoScore() 99 assertThat(mRecommender.recommendChannels(3)).isEmpty(); in testRecommendChannels_includeRecommendedOnly_allChannelsHaveNoScore() 100 assertThat(mRecommender.recommendChannels(4)).isEmpty(); in testRecommendChannels_includeRecommendedOnly_allChannelsHaveNoScore() 101 assertThat(mRecommender.recommendChannels(5)).isEmpty(); in testRecommendChannels_includeRecommendedOnly_allChannelsHaveNoScore() 109 assertThat(mRecommender.recommendChannels()).hasSize(4); in testRecommendChannels_notIncludeRecommendedOnly_allChannelsHaveNoScore() [all …]
|
D | RecommendationUtils.java | 75 private Recommender mRecommender; field in RecommendationUtils.ChannelRecordSortedMapHelper 83 mRecommender = recommender; in setRecommender() 159 if (mRecommender != null) { in addWatchLog() 160 mRecommender.onNewWatchLog(channelRecord); in addWatchLog()
|
D | EvaluatorTestCase.java | 47 Recommender mRecommender = new FakeRecommender(); in setUp() local 49 mEvaluator.setRecommender(mRecommender); in setUp() 50 mChannelRecordSortedMap.setRecommender(mRecommender); in setUp()
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | NotificationService.java | 100 private Recommender mRecommender; field in NotificationService 175 mRecommender = new Recommender(NotificationService.this, NotificationService.this, true); in handleInitializeRecommender() 177 mRecommender.registerEvaluator(new RandomEvaluator()); in handleInitializeRecommender() 179 mRecommender.registerEvaluator(new RoutineWatchEvaluator()); in handleInitializeRecommender() 182 mRecommender.registerEvaluator(new FavoriteChannelEvaluator(), 0.5, 0.5); in handleInitializeRecommender() 183 mRecommender.registerEvaluator(new RoutineWatchEvaluator(), 1.0, 1.0); in handleInitializeRecommender() 191 if (mRecommender == null) { in handleShowRecommendation() 194 if (!mRecommender.isReady()) { in handleShowRecommendation() 209 if (mRecommender == null) { in handleHideRecommendation() 212 if (!mRecommender.isReady()) { in handleHideRecommendation() [all …]
|
D | ChannelPreviewUpdater.java | 73 private final Recommender mRecommender; field in ChannelPreviewUpdater 101 mRecommender = new Recommender(context, mRecommenderListener, true); in ChannelPreviewUpdater() 102 mRecommender.registerEvaluator(new RandomEvaluator(), 0.1, 0.1); in ChannelPreviewUpdater() 103 mRecommender.registerEvaluator(new FavoriteChannelEvaluator(), 0.5, 0.5); in ChannelPreviewUpdater() 104 mRecommender.registerEvaluator(new RoutineWatchEvaluator(), 1.0, 1.0); in ChannelPreviewUpdater() 141 if (!mRecommender.isReady()) { in updatePreviewDataForChannelsImmediately() 176 List<Channel> channels = new ArrayList<>(mRecommender.recommendChannels()); in updatePreviewDataForChannels()
|
D | Recommender.java | 237 private Recommender mRecommender; field in Recommender.Evaluator 261 mRecommender = recommender; in setRecommender() 265 return mRecommender; in getRecommender()
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | ChannelsRowAdapter.java | 45 private final Recommender mRecommender; field in ChannelsRowAdapter 65 mRecommender = recommender; in ChannelsRowAdapter() 280 channelList, mRecommender.getChannel(channelId), currentChannelId)) { 285 for (Channel channel : mRecommender.recommendChannels(mMaxCount)) { 297 addChannelToList(channelList, mRecommender.getChannel(channelId), currentChannelId); in addChannelToList()
|