Searched refs:selectionStart (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/core/java/android/text/method/
H A DBaseKeyListener.java101 int selectionStart = Selection.getSelectionStart(content);
103 if (selectionEnd < selectionStart) {
105 selectionEnd = selectionStart;
106 selectionStart = temp;
108 if (selectionStart != selectionEnd) {
109 content.delete(selectionStart, selectionEnd);
183 int selectionStart = Selection.getSelectionStart(content);
185 if (selectionEnd < selectionStart) {
187 selectionEnd = selectionStart;
188 selectionStart
[all...]
/frameworks/base/core/java/android/view/inputmethod/
H A DExtractedText.java56 * <var>startOffset</var>+<var>selectionStart</var>.
58 public int selectionStart; field in class:ExtractedText
94 dest.writeInt(selectionStart);
109 res.selectionStart = source.readInt();
/frameworks/base/core/tests/coretests/src/android/widget/
H A DTextViewWordLimitsTest.java91 private void verifySelectCurrentWord(Spannable text, int selectionStart, int selectionEnd, int correctStart, argument
95 Selection.setSelection((Spannable)mTv.getText(), selectionStart, selectionEnd);
/frameworks/base/core/java/android/widget/
H A DSpellChecker.java269 final int selectionStart = Selection.getSelectionStart(editable);
288 isEditing = selectionEnd <= start || selectionStart > end;
290 isEditing = selectionEnd < start || selectionStart > end;
301 + mIds[i] + ", sel start = " + selectionStart + ", sel end = "
H A DEditor.java608 int selectionStart, selectionEnd;
615 selectionStart = ((Spanned) mTextView.getText()).getSpanStart(urlSpan);
621 selectionStart = wordIterator.getBeginning(minOffset);
624 if (selectionStart == BreakIterator.DONE || selectionEnd == BreakIterator.DONE ||
625 selectionStart == selectionEnd) {
628 selectionStart = TextUtils.unpackRangeStartFromLong(range);
633 Selection.setSelection((Spannable) mTextView.getText(), selectionStart, selectionEnd);
634 return selectionEnd > selectionStart;
678 int selectionStart = mTextView.getSelectionStart();
681 if (selectionStart
[all...]
H A DNumberPicker.java1870 * Posts an {@link SetSelectionCommand} from the given <code>selectionStart
1873 private void postSetSelectionCommand(int selectionStart, int selectionEnd) { argument
1879 mSetSelectionCommand.mSelectionStart = selectionStart;
H A DTextView.java5513 int start = text.selectionStart;
6728 final int selectionStart = getSelectionStart();
6731 return selectionStart >= 0 && selectionStart != selectionEnd;
/frameworks/base/core/java/android/text/
H A DSpannableStringBuilder.java470 int selectionStart = 0;
473 selectionStart = Selection.getSelectionStart(this);
480 if (selectionStart > start && selectionStart < end) {
481 final int offset = (selectionStart - start) * newLen / origLen;
482 selectionStart = start + offset;
484 setSpan(false, Selection.SELECTION_START, selectionStart, selectionStart,
/frameworks/base/core/java/android/webkit/
H A DWebViewClassic.java231 int selectionStart = Selection.getSelectionStart(editable);
237 selectionStart = Math.min(selectionStart, editable.length());
239 setSelection(selectionStart, selectionEnd);
245 int selectionStart = Selection.getSelectionStart(editable);
247 text = limitReplaceTextByMaxLength(text, selectionEnd - selectionStart);
248 setNewText(selectionStart, selectionEnd, text);
249 editable.replace(selectionStart, selectionEnd, text);
252 int newCaret = selectionStart + text.length();
435 int selectionStart
[all...]
/frameworks/base/core/java/android/inputmethodservice/
H A DInputMethodService.java2349 p.println(" selectionStart=" + mExtractedText.selectionStart

Completed in 331 milliseconds