/packages/apps/ExactCalculator/tests/src/com/android/calculator2/ |
D | EvaluatorTest.java | 32 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/ |
D | Recommender.java | 87 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()
|
D | RandomEvaluator.java | 19 public class RandomEvaluator extends Recommender.Evaluator {
|
D | FavoriteChannelEvaluator.java | 21 public class FavoriteChannelEvaluator extends Recommender.Evaluator {
|
D | RecentChannelEvaluator.java | 21 public class RecentChannelEvaluator extends Recommender.Evaluator {
|
D | RoutineWatchEvaluator.java | 31 public class RoutineWatchEvaluator extends Recommender.Evaluator {
|
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
D | EvaluatorTestCase.java | 23 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()
|
D | RecentChannelEvaluatorTest.java | 47 assertEquals(Recommender.Evaluator.NOT_RECOMMENDED, in testOneChannelWithNoWatchLog() 66 assertEquals(Recommender.Evaluator.NOT_RECOMMENDED, in testMultiChannelsWithNoWatchLog() 94 double previousScore = Recommender.Evaluator.NOT_RECOMMENDED; in testMultiChannelsWithSimpleWatchLogs()
|
D | FavoriteChannelEvaluatorTest.java | 45 assertEquals(Recommender.Evaluator.NOT_RECOMMENDED, in testOneChannelWithNoWatchLog() 64 assertEquals(Recommender.Evaluator.NOT_RECOMMENDED, in testMultiChannelsWithNoWatchLog() 94 double previousScore = Recommender.Evaluator.NOT_RECOMMENDED; in testMultiChannelsWithSimpleWatchLogs()
|
D | RecommenderTest.java | 312 private class FakeEvaluator extends Recommender.Evaluator {
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
D | CalculatorResult.java | 57 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()
|
D | Calculator.java | 195 private Evaluator mEvaluator; 266 mEvaluator = new Evaluator(this, mResultText); in onCreate() 949 (expEnd = Evaluator.exponentEnd(moreChars, current))) { in addChars()
|
D | Evaluator.java | 90 class Evaluator { class 181 Evaluator(Calculator calculator, in Evaluator() method in Evaluator
|
/packages/apps/ExactCalculator/tests/ |
D | README.txt | 23 3. A quick test of Evaluator.testUnflipZeroes(), which we do not know how to
|