Lines Matching refs:text
21 import android.text.TextUtils;
114 String text = mHistory.getText();
115 if (MARKER_EVALUATE_ON_RESUME.equals(text)) {
117 text = "";
119 text = mHistory.getText();
120 evaluateAndShowResult(text, CalculatorDisplay.Scroll.NONE);
124 text, scroll ? CalculatorDisplay.Scroll.UP : CalculatorDisplay.Scroll.NONE);
144 String text = getText();
146 (!mResult.equals(text) ||
148 mDisplay.getSelectionStart() != text.length());
172 public void evaluateAndShowResult(String text, Scroll scroll) {
174 String result = evaluate(text);
175 if (!text.equals(result)) {
176 mHistory.enter(text);
190 String text = getText();
191 if (!text.equals(mResult)) {
192 mHistory.update(text);
200 String text = getText();
201 if (!text.equals(mResult)) {
202 mHistory.update(text);
210 String text = getText();
211 // Don't set the ? marker for empty text or the error string.
213 if (!TextUtils.isEmpty(text) && !TextUtils.equals(text, mErrorString)
214 && text.equals(mResult)) {
292 static boolean isOperator(String text) {
293 return text.length() == 1 && isOperator(text.charAt(0));