Home | History | Annotate | Download | only in calculator2

Lines Matching defs:Evaluator

61  * The Evaluator holds the expressions and all associated state needed for evaluating
98 public class Evaluator implements CalculatorExpr.ExprResolver {
100 private static Evaluator evaluator;
105 public static Evaluator getInstance(Context context) {
106 if (evaluator == null) {
107 evaluator = new Evaluator(context.getApplicationContext());
109 return evaluator;
301 // Currently running expression evaluator, if any. This is either an AsyncEvaluator
303 // We arrange that only one evaluator is active at a time, in part by maintaining
344 Evaluator(Context context) {
576 res = mExprInfo.mExpr.eval(mDm, Evaluator.this);
1226 // (Re)start evaluator in requested mode, i.e. with longer timeout.
1328 * Restore the evaluator state, including the current expression.
1343 * Save the evaluator state, including the expression and any saved value.
1508 // recreated the Evaluator. That excludes the common cases of device rotation, etc.
1949 * Destroy the current evaluator, forcing getEvaluator to allocate a new one.
1955 evaluator = null;