Lines Matching refs:TextKeyListener
25 import android.text.method.TextKeyListener.Capitalize;
34 * TextKeyListener will do it for you.
95 pref = TextKeyListener.getInstance().getPrefs(view.getContext());
111 int activeStart = content.getSpanStart(TextKeyListener.ACTIVE);
112 int activeEnd = content.getSpanEnd(TextKeyListener.ACTIVE);
194 content.removeSpan(TextKeyListener.ACTIVE);
199 if ((pref & TextKeyListener.AUTO_CAP) != 0
201 && TextKeyListener.shouldCap(mAutoCap, content, selStart)) {
202 int where = content.getSpanEnd(TextKeyListener.CAPPED);
203 int flags = content.getSpanFlags(TextKeyListener.CAPPED);
206 content.removeSpan(TextKeyListener.CAPPED);
212 content.setSpan(TextKeyListener.CAPPED, 0, 0,
215 content.setSpan(TextKeyListener.CAPPED,
234 content.setSpan(TextKeyListener.LAST_TYPED,
240 content.setSpan(TextKeyListener.ACTIVE, oldStart, selEnd,
250 if ((pref & TextKeyListener.AUTO_TEXT) != 0 && mAutoText &&
254 content.getSpanEnd(TextKeyListener.INHIBIT_REPLACEMENT)
284 if ((pref & TextKeyListener.AUTO_PERIOD) != 0 && mAutoText) {
320 if (content.getSpanEnd(TextKeyListener.LAST_TYPED) == selStart) {
340 content.setSpan(TextKeyListener.INHIBIT_REPLACEMENT,
344 en = content.getSpanStart(TextKeyListener.INHIBIT_REPLACEMENT);
346 content.setSpan(TextKeyListener.INHIBIT_REPLACEMENT,
350 content.removeSpan(TextKeyListener.INHIBIT_REPLACEMENT);