Home
last modified time | relevance | path

Searched refs:CalculatorState (Results 1 – 2 of 2) sorted by relevance

/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculator.java84 private enum CalculatorState { enum in Calculator
143 if (mCurrentState != CalculatorState.EVALUATE) {
194 private CalculatorState mCurrentState;
271 setState(CalculatorState.values()[ in onCreate()
273 CalculatorState.INPUT.ordinal())]); in onCreate()
284 mCurrentState = CalculatorState.INPUT; in onCreate()
289 mCurrentState = CalculatorState.INPUT; in onCreate()
301 if (mCurrentState != CalculatorState.INPUT) { in onCreate()
304 setState(CalculatorState.INIT); in onCreate()
339 private void setState(CalculatorState state) { in setState()
[all …]
/packages/apps/Calculator/src/com/android/calculator2/
DCalculator.java62 private enum CalculatorState { enum in Calculator
77 setState(CalculatorState.INPUT);
101 final boolean isEdited = mCurrentState == CalculatorState.INPUT
102 || mCurrentState == CalculatorState.ERROR;
107 private CalculatorState mCurrentState;
142 setState(CalculatorState.values()[ in onCreate()
143 savedInstanceState.getInt(KEY_CURRENT_STATE, CalculatorState.INPUT.ordinal())]); in onCreate()
170 private void setState(CalculatorState state) { in setState()
174 if (state == CalculatorState.RESULT || state == CalculatorState.ERROR) { in setState()
182 if (state == CalculatorState.ERROR) { in setState()
[all …]