Home
last modified time | relevance | path

Searched refs:expr (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Calculator/src/com/android/calculator2/
DCalculatorExpressionEvaluator.java44 public void evaluate(CharSequence expr, EvaluateCallback callback) { in evaluate() argument
45 evaluate(expr.toString(), callback); in evaluate()
48 public void evaluate(String expr, EvaluateCallback callback) { in evaluate() argument
49 expr = mTokenizer.getNormalizedExpression(expr); in evaluate()
52 while (expr.length() > 0 && "+-/*".indexOf(expr.charAt(expr.length() - 1)) != -1) { in evaluate()
53 expr = expr.substring(0, expr.length() - 1); in evaluate()
57 if (expr.length() == 0 || Double.valueOf(expr) != null) { in evaluate()
58 callback.onEvaluate(expr, null, Calculator.INVALID_RES_ID); in evaluate()
66 double result = mSymbols.eval(expr); in evaluate()
68 callback.onEvaluate(expr, null, R.string.error_nan); in evaluate()
[all …]
DCalculatorExpressionTokenizer.java66 public String getNormalizedExpression(String expr) { in getNormalizedExpression() argument
68 expr = expr.replace(replacementEntry.getValue(), replacementEntry.getKey()); in getNormalizedExpression()
70 return expr; in getNormalizedExpression()
73 public String getLocalizedExpression(String expr) { in getLocalizedExpression() argument
75 expr = expr.replace(replacementEntry.getKey(), replacementEntry.getValue()); in getLocalizedExpression()
77 return expr; in getLocalizedExpression()
DCalculatorExpressionBuilder.java47 final String expr = mTokenizer.getNormalizedExpression(toString()); in replace() local
51 final int index = expr.lastIndexOf('.'); in replace()
52 if (index != -1 && TextUtils.isDigitsOnly(expr.substring(index + 1, start))) { in replace()
66 while (start > 0 && "+-*/".indexOf(expr.charAt(start - 1)) != -1) { in replace()
72 if (start > 0 && "+-".indexOf(expr.charAt(start - 1)) != -1) { in replace()
DCalculator.java256 public void onEvaluate(String expr, String result, int errorResourceId) { in onEvaluate() argument
/packages/inputmethods/LatinIME/tools/make-keyboard-text/etc/
Dmake-keyboard-text21 newProg=`expr "${newProg}" : ".* -> \(.*\)$"`
22 if expr "x${newProg}" : 'x/' >/dev/null; then
/packages/inputmethods/LatinIME/tools/dicttool/etc/
Ddicttool_aosp21 newProg=`expr "${newProg}" : ".* -> \(.*\)$"`
22 if expr "x${newProg}" : 'x/' >/dev/null; then
/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculatorExpr.java310 PreEval(CR val, BoundedRational ratVal, CalculatorExpr expr, in PreEval() argument
314 mExpr = expr; in PreEval()
406 private CalculatorExpr(ArrayList<Token> expr) { in CalculatorExpr() argument
407 mExpr = expr; in CalculatorExpr()
/packages/apps/Calculator/
Darity-2.1.2.jar ... .EvalCase extends java.lang.Object { String expr double result org.javia.arity.Complex cResult ...
/packages/apps/Messaging/build/gcheckstyle/
Dgoogle-style-checker_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties com/ com ...