Home
last modified time | relevance | path

Searched refs:errorResourceId (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Calculator/src/com/android/calculator2/
DCalculator.java256 public void onEvaluate(String expr, String result, int errorResourceId) { in onEvaluate() argument
259 } else if (errorResourceId != INVALID_RES_ID) { in onEvaluate()
260 onError(errorResourceId); in onEvaluate()
382 private void onError(final int errorResourceId) { in onError() argument
385 mResultEditText.setText(errorResourceId); in onError()
393 mResultEditText.setText(errorResourceId); in onError()
DCalculatorExpressionEvaluator.java83 public void onEvaluate(String expr, String result, int errorResourceId); in onEvaluate() argument
/packages/apps/ExactCalculator/src/com/android/calculator2/
DEvaluator.java199 public final int errorResourceId; // Error string or INVALID_RES_ID. field in Evaluator.InitialResult
206 errorResourceId = Calculator.INVALID_RES_ID; in InitialResult()
214 errorResourceId = errorId; in InitialResult()
222 return errorResourceId != Calculator.INVALID_RES_ID; in isError()
389 if (result.errorResourceId == R.string.timeout) { in onPostExecute()
395 mCalculator.onError(result.errorResourceId); in onPostExecute()
DCalculator.java753 void onError(final int errorResourceId) { in onError() argument
756 mResultText.announceForAccessibility(getResources().getString(errorResourceId)); in onError()
762 mResultText.displayError(errorResourceId); in onError()
767 mResultText.displayError(errorResourceId); in onError()