Home
last modified time | relevance | path

Searched refs:mEvaluator (Results 1 – 7 of 7) sorted by relevance

/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DFavoriteChannelEvaluatorTest.java50 Recommender.Evaluator.NOT_RECOMMENDED, mEvaluator.evaluateChannel(channelId)); in testOneChannelWithNoWatchLog()
73 Recommender.Evaluator.NOT_RECOMMENDED, mEvaluator.evaluateChannel(channelId)); in testMultiChannelsWithNoWatchLog()
108 double score = mEvaluator.evaluateChannel(channelId); in testMultiChannelsWithSimpleWatchLogs()
128 assertThat(mEvaluator.evaluateChannel(channelOne) == mEvaluator.evaluateChannel(channelTwo)) in testTwoChannelsWithSameWatchDuration()
147 assertThat(mEvaluator.evaluateChannel(channelOne)) in testTwoChannelsWithDifferentWatchDuration()
148 .isLessThan(mEvaluator.evaluateChannel(channelTwo)); in testTwoChannelsWithDifferentWatchDuration()
156 assertThat(mEvaluator.evaluateChannel(channelOne)) in testTwoChannelsWithDifferentWatchDuration()
157 .isGreaterThan(mEvaluator.evaluateChannel(channelTwo)); in testTwoChannelsWithDifferentWatchDuration()
170 double previousScore = mEvaluator.evaluateChannel(channelId); in testScoreIncreasesWithNewWatchLog()
175 assertThat(previousScore).isAtMost(mEvaluator.evaluateChannel(channelId)); in testScoreIncreasesWithNewWatchLog()
DEvaluatorTestCase.java40 public T mEvaluator; field in EvaluatorTestCase
48 mEvaluator = createEvaluator(); in setUp()
49 mEvaluator.setRecommender(mRecommender); in setUp()
93 Evaluator.NOT_RECOMMENDED, mEvaluator.evaluateChannel(INVALID_CHANNEL_ID)); in assertChannelScoresValid()
96 mEvaluator.evaluateChannel(mChannelRecordSortedMap.size())); in assertChannelScoresValid()
99 double score = mEvaluator.evaluateChannel(channelId); in assertChannelScoresValid()
108 mEvaluator.onChannelRecordListChanged(new ArrayList<>(mChannelRecordSortedMap.values())); in notifyChannelAndWatchLogLoaded()
DRecentChannelEvaluatorTest.java52 Recommender.Evaluator.NOT_RECOMMENDED, mEvaluator.evaluateChannel(channelId)); in testOneChannelWithNoWatchLog()
75 Recommender.Evaluator.NOT_RECOMMENDED, mEvaluator.evaluateChannel(channelId)); in testMultiChannelsWithNoWatchLog()
108 double score = mEvaluator.evaluateChannel(channelId); in testMultiChannelsWithSimpleWatchLogs()
126 double previousScore = mEvaluator.evaluateChannel(channelId); in testScoreIncreasesWithNewWatchLog()
133 assertThat(previousScore).isAtMost(mEvaluator.evaluateChannel(channelId)); in testScoreIncreasesWithNewWatchLog()
151 scores.put(channelId, mEvaluator.evaluateChannel(channelId)); in testScoreDecreasesWithIncrementOfWatchedLogUpdatedTime()
159 assertThat(mEvaluator.evaluateChannel(channelId)).isAtMost(scores.get(channelId)); in testScoreDecreasesWithIncrementOfWatchedLogUpdatedTime()
DRecommenderTest.java74 private FakeEvaluator mEvaluator; field in RecommenderTest
161 mEvaluator.setChannelScore(mChannel_1.getId(), 1.0); in testRecommendChannels_includeRecommendedOnly_fewChannelsHaveScore()
162 mEvaluator.setChannelScore(mChannel_2.getId(), 1.0); in testRecommendChannels_includeRecommendedOnly_fewChannelsHaveScore()
181 mEvaluator.setChannelScore(mChannel_1.getId(), 1.0); in testRecommendChannels_notIncludeRecommendedOnly_fewChannelsHaveScore()
182 mEvaluator.setChannelScore(mChannel_2.getId(), 1.0); in testRecommendChannels_notIncludeRecommendedOnly_fewChannelsHaveScore()
251 mEvaluator.setChannelScore(channelId, 1.0); in testListener_onRecommendationChanged()
310 mEvaluator = new FakeEvaluator(); in createRecommender()
311 mRecommender.registerEvaluator(mEvaluator); in createRecommender()
335 mEvaluator.setChannelScore(channelId, score); in setChannelScores_scoreIncreasesAsChannelIdIncreases()
/packages/apps/TV/src/com/android/tv/recommendation/
DRecommender.java271 private final Evaluator mEvaluator; field in Recommender.EvaluatorWrapper
280 mEvaluator = evaluator; in EvaluatorWrapper()
297 double score = mEvaluator.evaluateChannel(channelId); in getScaledEvaluatorScore()
302 "Unexpected score (" + score + ") from the recommender" + mEvaluator); in getScaledEvaluatorScore()
307 Log.w(TAG, "Unexpected score (" + score + ") from the recommender" + mEvaluator); in getScaledEvaluatorScore()
314 mEvaluator.onNewWatchLog(channelRecord); in onNewWatchLog()
318 mEvaluator.onChannelRecordListChanged(channelRecords); in onChannelListChanged()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/
DAnimationParticle.java53 private final ArgbEvaluator mEvaluator; field in AnimationParticle
80 mEvaluator = new ArgbEvaluator(); in AnimationParticle()
155 color = (int) mEvaluator.evaluate(1 - multiplier, mAssignedColor, mErrorColor); in updateDot()
157 color = (int) mEvaluator.evaluate(1 - multiplier, mAssignedColor, mErrorColor); in updateDot()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DAnimationParticle.java53 private final ArgbEvaluator mEvaluator; field in AnimationParticle
80 mEvaluator = new ArgbEvaluator(); in AnimationParticle()
155 color = (int) mEvaluator.evaluate(1 - multiplier, mAssignedColor, mErrorColor); in updateDot()
157 color = (int) mEvaluator.evaluate(1 - multiplier, mAssignedColor, mErrorColor); in updateDot()