Searched refs:mEvaluator (Results 1 - 12 of 12) sorted by relevance

/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
H A DFavoriteChannelEvaluatorTest.java46 mEvaluator.evaluateChannel(channelId));
65 mEvaluator.evaluateChannel(channelId));
96 double score = mEvaluator.evaluateChannel(channelId);
111 assertTrue(mEvaluator.evaluateChannel(channelOne) ==
112 mEvaluator.evaluateChannel(channelTwo));
125 assertTrue(mEvaluator.evaluateChannel(channelOne) < mEvaluator.evaluateChannel(channelTwo));
131 assertTrue(mEvaluator.evaluateChannel(channelOne) > mEvaluator.evaluateChannel(channelTwo));
141 double previousScore = mEvaluator
[all...]
H A DEvaluatorTestCase.java38 public T mEvaluator; field in class:EvaluatorTestCase
47 mEvaluator = createEvaluator();
48 mEvaluator.setRecommender(mRecommender);
54 * Each evaluator test has to create Evaluator in {@code mEvaluator}.
94 assertEquals(Evaluator.NOT_RECOMMENDED, mEvaluator.evaluateChannel(INVALID_CHANNEL_ID));
96 mEvaluator.evaluateChannel(mChannelRecordSortedMap.size()));
99 double score = mEvaluator.evaluateChannel(channelId);
109 mEvaluator.onChannelRecordListChanged(new ArrayList<>(mChannelRecordSortedMap.values()));
H A DRecentChannelEvaluatorTest.java48 mEvaluator.evaluateChannel(channelId));
67 mEvaluator.evaluateChannel(channelId));
96 double score = mEvaluator.evaluateChannel(channelId);
111 double previousScore = mEvaluator.evaluateChannel(channelId);
118 assertTrue(previousScore <= mEvaluator.evaluateChannel(channelId));
133 scores.put(channelId, mEvaluator.evaluateChannel(channelId));
141 assertTrue(mEvaluator.evaluateChannel(channelId) <= scores.get(channelId));
H A DRecommenderTest.java66 private FakeEvaluator mEvaluator; field in class:RecommenderTest
150 mEvaluator.setChannelScore(mChannel_1.getId(), 1.0);
151 mEvaluator.setChannelScore(mChannel_2.getId(), 1.0);
169 mEvaluator.setChannelScore(mChannel_1.getId(), 1.0);
170 mEvaluator.setChannelScore(mChannel_2.getId(), 1.0);
236 mEvaluator.setChannelScore(channelId, 1.0);
282 mEvaluator = new FakeEvaluator();
283 mRecommender.registerEvaluator(mEvaluator);
307 mEvaluator.setChannelScore(channelId, score);
/packages/apps/ExactCalculator/src/com/android/calculator2/
H A DHistoryFragment.java45 private Evaluator mEvaluator; field in class:HistoryFragment
111 mEvaluator = Evaluator.getInstance(activity);
112 mAdapter.setEvaluator(mEvaluator);
120 final CalculatorExpr mainExpr = mEvaluator.getExpr(Evaluator.MAIN_INDEX);
125 final long maxIndex = mEvaluator.getMaxIndex();
135 mEvaluator.copyMainToHistory();
137 System.currentTimeMillis(), mEvaluator.getExprAsSpannable(0)));
178 if (mEvaluator != null) {
181 mEvaluator.cancelNonMain();
191 mDragController.setEvaluator(mEvaluator);
[all...]
H A DCalculator.java190 return mEvaluator.getMemoryIndex() != 0;
206 if (uri != null && mEvaluator.isLastSaved(uri)) {
208 mEvaluator.appendExpr(mEvaluator.getSavedIndex());
219 long memoryIndex = mEvaluator.getMemoryIndex();
221 mEvaluator.appendExpr(mEvaluator.getMemoryIndex());
248 private Evaluator mEvaluator; field in class:Calculator
319 mEvaluator.restoreInstanceState(in);
323 mEvaluator
[all...]
H A DHistoryAdapter.java39 private Evaluator mEvaluator; field in class:HistoryAdapter
77 holder.mResult.setEvaluator(mEvaluator, item.getEvaluatorIndex());
101 mEvaluator.cancel(holder.getItemId(), true);
144 mEvaluator = evaluator;
149 return (int) (mEvaluator.getMaxIndex() - position);
152 return (int) (mEvaluator.getMaxIndex() - position + 1);
181 mEvaluator.getTimeStamp(evaluatorIndex),
182 mEvaluator.getExprAsSpannable(evaluatorIndex));
H A DCalculatorResult.java63 private Evaluator mEvaluator; field in class:CalculatorResult
259 mEvaluator = evaluator;
352 if (mEvaluator != null && mEvaluationRequest != SHOULD_NOT_EVALUATE) {
353 final CalculatorExpr expr = mEvaluator.getExpr(mIndex);
356 mEvaluator.requireResult(mIndex, mEvaluationListener, this);
358 mEvaluator.evaluateAndNotify(mIndex, mEvaluationListener, this);
437 mEvaluator.copyToMemory(index);
449 if (mEvaluator.hasResult(mIndex)) {
450 mEvaluator.copyToMemory(mIndex);
453 mEvaluator
[all...]
H A DEvaluator.java306 public AsyncTask mEvaluator; field in class:Evaluator.ExprInfo
517 if (mExprInfo.mEvaluator != null) {
526 mExprs.get(mIndex).mEvaluator = null;
638 mExprInfo.mEvaluator = null;
682 // Invoker resets mEvaluator.
790 mExprInfo.mEvaluator = null;
804 if (ei.mEvaluator != null) {
806 ei.mEvaluator.cancel(true);
807 ei.mEvaluator = null;
810 ei.mEvaluator
[all...]
H A DDragController.java64 private Evaluator mEvaluator; field in class:DragController
67 mEvaluator = evaluator;
102 || mEvaluator == null) {
/packages/apps/TV/src/com/android/tv/recommendation/
H A DRecommender.java274 private final Evaluator mEvaluator; field in class:Recommender.EvaluatorWrapper
283 mEvaluator = evaluator;
300 double score = mEvaluator.evaluateChannel(channelId);
304 + mEvaluator);
310 + mEvaluator);
317 mEvaluator.onNewWatchLog(channelRecord);
321 mEvaluator.onChannelRecordListChanged(channelRecords);
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DAllAppsTransitionController.java67 private final ArgbEvaluator mEvaluator; field in class:AllAppsTransitionController
102 mEvaluator = new ArgbEvaluator();
278 int color = (Integer) mEvaluator.evaluate(mDecelInterpolator.getInterpolation(alpha),
280 int bgAlpha = Color.alpha((int) mEvaluator.evaluate(alpha,

Completed in 843 milliseconds