Searched refs:selectionStart (Results 1 - 12 of 12) 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/java/android/webkit/
H A DSearchBox.java52 * no such selection, then both selectionStart and selectionEnd must be the offset
57 void setSelection(int selectionStart, int selectionEnd); argument
H A DSearchBoxImpl.java61 + " sb.selectionStart = 0;"
80 + " f.selectionStart = %d"
145 public void setSelection(int selectionStart, int selectionEnd) { argument
146 final String js = String.format(SET_SELECTION_SCRIPT, selectionStart, selectionEnd);
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();
441 int selectionStart
[all...]
/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.java612 int selectionStart, selectionEnd;
619 selectionStart = ((Spanned) mTextView.getText()).getSpanStart(urlSpan);
625 selectionStart = wordIterator.getBeginning(minOffset);
628 if (selectionStart == BreakIterator.DONE || selectionEnd == BreakIterator.DONE ||
629 selectionStart == selectionEnd) {
632 selectionStart = TextUtils.unpackRangeStartFromLong(range);
637 Selection.setSelection((Spannable) mTextView.getText(), selectionStart, selectionEnd);
638 return selectionEnd > selectionStart;
682 int selectionStart = mTextView.getSelectionStart();
685 if (selectionStart
[all...]
H A DNumberPicker.java1850 * Posts an {@link SetSelectionCommand} from the given <code>selectionStart
1853 private void postSetSelectionCommand(int selectionStart, int selectionEnd) { argument
1859 mSetSelectionCommand.mSelectionStart = selectionStart;
H A DTextView.java5507 int start = text.selectionStart;
6715 final int selectionStart = getSelectionStart();
6718 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/inputmethodservice/
H A DInputMethodService.java2306 p.println(" selectionStart=" + mExtractedText.selectionStart

Completed in 195 milliseconds