Home
last modified time | relevance | path

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

/packages/apps/ExactCalculator/tests/src/com/android/calculator2/
DEvaluatorTest.java32 check(Evaluator.unflipZeroes("9.99", 2, "9.998", 3).equals("9.998"), "test 1"); in testUnflipZeroes()
33 check(Evaluator.unflipZeroes("9.99", 2, "10.0000", 4).equals("9.9999"), "test 2"); in testUnflipZeroes()
34 check(Evaluator.unflipZeroes("0.99", 2, "1.00000", 5).equals("0.99999"), "test 3"); in testUnflipZeroes()
35 check(Evaluator.unflipZeroes("0.99", 2, "1.00", 2).equals("0.99"), "test 4"); in testUnflipZeroes()
36 check(Evaluator.unflipZeroes("10.00", 2, "9.9999", 4).equals("9.9999"), "test 5"); in testUnflipZeroes()
37 check(Evaluator.unflipZeroes("-10.00", 2, "-9.9999", 4).equals("-9.9999"), "test 6"); in testUnflipZeroes()
38 check(Evaluator.unflipZeroes("-0.99", 2, "-1.00000000000000", 14) in testUnflipZeroes()
40 check(Evaluator.unflipZeroes("12349.99", 2, "12350.00000", 5).equals("12349.99999"), in testUnflipZeroes()
42 check(Evaluator.unflipZeroes("123.4999", 4, "123.5000000", 7).equals("123.4999999"), in testUnflipZeroes()
47 check(Evaluator.getMsdIndexOf("-0.0234") == 4, "getMsdIndexOf(-0.0234)"); in testGetMsdIndexOf()
[all …]
/packages/apps/TV/src/com/android/tv/recommendation/
DRecommender.java87 public void registerEvaluator(Evaluator evaluator) { in registerEvaluator()
102 public void registerEvaluator(Evaluator evaluator, double baseScore, double weight) { in registerEvaluator()
123 double maxScore = Evaluator.NOT_RECOMMENDED; in recommendChannels()
130 if (!mIncludeRecommendedOnly || maxScore != Evaluator.NOT_RECOMMENDED) { in recommendChannels()
234 public static abstract class Evaluator { class in Recommender
238 protected Evaluator() {} in Evaluator() method in Recommender.Evaluator
274 private final Evaluator mEvaluator;
281 public EvaluatorWrapper(Recommender recommender, Evaluator evaluator, in EvaluatorWrapper()
302 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.java23 import com.android.tv.recommendation.Recommender.Evaluator;
32 public abstract class EvaluatorTestCase<T extends Evaluator> extends AndroidTestCase {
94 assertEquals(Evaluator.NOT_RECOMMENDED, mEvaluator.evaluateChannel(INVALID_CHANNEL_ID)); in assertChannelScoresValid()
95 assertEquals(Evaluator.NOT_RECOMMENDED, in assertChannelScoresValid()
101 score == Evaluator.NOT_RECOMMENDED || (0.0 <= score && score <= 1.0)); in assertChannelScoresValid()
DRecentChannelEvaluatorTest.java47 assertEquals(Recommender.Evaluator.NOT_RECOMMENDED, in testOneChannelWithNoWatchLog()
66 assertEquals(Recommender.Evaluator.NOT_RECOMMENDED, in testMultiChannelsWithNoWatchLog()
94 double previousScore = Recommender.Evaluator.NOT_RECOMMENDED; in testMultiChannelsWithSimpleWatchLogs()
DFavoriteChannelEvaluatorTest.java45 assertEquals(Recommender.Evaluator.NOT_RECOMMENDED, in testOneChannelWithNoWatchLog()
64 assertEquals(Recommender.Evaluator.NOT_RECOMMENDED, in testMultiChannelsWithNoWatchLog()
94 double previousScore = Recommender.Evaluator.NOT_RECOMMENDED; in testMultiChannelsWithSimpleWatchLogs()
DRecommenderTest.java312 private class FakeEvaluator extends Recommender.Evaluator {
/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculatorResult.java57 private Evaluator mEvaluator;
176 void setEvaluator(Evaluator evaluator) { in setEvaluator()
253 if (msdIndex == Evaluator.INVALID_MSD) { in initPositions()
348 return Evaluator.INVALID_MSD; in getNaiveMsdIndexOf()
380 if ((decIndex == -1 || msdIndex != Evaluator.INVALID_MSD in formatResult()
DCalculator.java195 private Evaluator mEvaluator;
266 mEvaluator = new Evaluator(this, mResultText); in onCreate()
949 (expEnd = Evaluator.exponentEnd(moreChars, current))) { in addChars()
DEvaluator.java90 class Evaluator { class
181 Evaluator(Calculator calculator, in Evaluator() method in Evaluator
/packages/apps/ExactCalculator/tests/
DREADME.txt23 3. A quick test of Evaluator.testUnflipZeroes(), which we do not know how to