Home
last modified time | relevance | path

Searched refs:selectionEnd (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/java/android/text/method/
DBaseKeyListener.java102 int selectionEnd = Selection.getSelectionEnd(content); in deleteSelection() local
103 if (selectionEnd < selectionStart) { in deleteSelection()
104 int temp = selectionEnd; in deleteSelection()
105 selectionEnd = selectionStart; in deleteSelection()
108 if (selectionStart != selectionEnd) { in deleteSelection()
109 content.delete(selectionStart, selectionEnd); in deleteSelection()
184 int selectionEnd = Selection.getSelectionEnd(content); in onKeyOther() local
185 if (selectionEnd < selectionStart) { in onKeyOther()
186 int temp = selectionEnd; in onKeyOther()
187 selectionEnd = selectionStart; in onKeyOther()
[all …]
DArrowKeyMovementMethod.java199 final int selectionEnd = widget.getSelectionEnd(); in leftWord() local
201 wordIterator.setCharSequence(buffer, selectionEnd, selectionEnd); in leftWord()
208 final int selectionEnd = widget.getSelectionEnd(); in rightWord() local
210 wordIterator.setCharSequence(buffer, selectionEnd, selectionEnd); in rightWord()
/frameworks/base/core/java/android/view/inputmethod/
DExtractedText.java65 public int selectionEnd; field in ExtractedText
95 dest.writeInt(selectionEnd); in writeToParcel()
110 res.selectionEnd = source.readInt();
/frameworks/base/core/java/android/webkit/
DSearchBox.java57 void setSelection(int selectionStart, int selectionEnd); in setSelection() argument
DSearchBoxImpl.java145 public void setSelection(int selectionStart, int selectionEnd) { in setSelection() argument
146 final String js = String.format(SET_SELECTION_SCRIPT, selectionStart, selectionEnd); in setSelection()
DWebViewClassic.java232 int selectionEnd = Selection.getSelectionEnd(editable); in setTextAndKeepSelection() local
238 selectionEnd = Math.min(selectionEnd, editable.length()); in setTextAndKeepSelection()
239 setSelection(selectionStart, selectionEnd); in setTextAndKeepSelection()
246 int selectionEnd = Selection.getSelectionEnd(editable); in replaceSelection() local
247 text = limitReplaceTextByMaxLength(text, selectionEnd - selectionStart); in replaceSelection()
248 setNewText(selectionStart, selectionEnd, text); in replaceSelection()
249 editable.replace(selectionStart, selectionEnd, text); in replaceSelection()
442 int selectionEnd = Selection.getSelectionEnd(editable); in setupEditorInfo() local
443 if (selectionStart < 0 || selectionEnd < 0) { in setupEditorInfo()
445 selectionEnd = selectionStart; in setupEditorInfo()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewWordLimitsTest.java91 …private void verifySelectCurrentWord(Spannable text, int selectionStart, int selectionEnd, int cor… in verifySelectCurrentWord() argument
95 Selection.setSelection((Spannable)mTv.getText(), selectionStart, selectionEnd); in verifySelectCurrentWord() local
/frameworks/base/core/java/android/widget/
DEditor.java612 int selectionStart, selectionEnd; in selectCurrentWord() local
620 selectionEnd = ((Spanned) mTextView.getText()).getSpanEnd(urlSpan); in selectCurrentWord()
626 selectionEnd = wordIterator.getEnd(maxOffset); in selectCurrentWord()
628 if (selectionStart == BreakIterator.DONE || selectionEnd == BreakIterator.DONE || in selectCurrentWord()
629 selectionStart == selectionEnd) { in selectCurrentWord()
633 selectionEnd = TextUtils.unpackRangeEndFromLong(range); in selectCurrentWord()
637 Selection.setSelection((Spannable) mTextView.getText(), selectionStart, selectionEnd); in selectCurrentWord() local
638 return selectionEnd > selectionStart; in selectCurrentWord()
683 int selectionEnd = mTextView.getSelectionEnd(); in touchPositionIsInSelection() local
685 if (selectionStart == selectionEnd) { in touchPositionIsInSelection()
[all …]
DSpellChecker.java270 final int selectionEnd = Selection.getSelectionEnd(editable); in spellCheck() local
288 isEditing = selectionEnd <= start || selectionStart > end; in spellCheck()
290 isEditing = selectionEnd < start || selectionStart > end; in spellCheck()
302 + selectionEnd + ", start = " + start + ", end = " + end); in spellCheck()
DNumberPicker.java1853 private void postSetSelectionCommand(int selectionStart, int selectionEnd) { in postSetSelectionCommand() argument
1860 mSetSelectionCommand.mSelectionEnd = selectionEnd; in postSetSelectionCommand()
DTextView.java5510 int end = text.selectionEnd; in setExtractedText()
6716 final int selectionEnd = getSelectionEnd(); in hasSelection() local
6718 return selectionStart >= 0 && selectionStart != selectionEnd; in hasSelection()
8387 final int selectionEnd = getSelectionEnd(); in getAccessibilityCursorPosition() local
8388 if (selectionEnd >= 0) { in getAccessibilityCursorPosition()
8389 return selectionEnd; in getAccessibilityCursorPosition()
/frameworks/base/core/java/android/text/
DSpannableStringBuilder.java471 int selectionEnd = 0; in replace() local
474 selectionEnd = Selection.getSelectionEnd(this); in replace()
487 if (selectionEnd > start && selectionEnd < end) { in replace()
488 final int offset = (selectionEnd - start) * newLen / origLen; in replace()
489 selectionEnd = start + offset; in replace()
491 setSpan(false, Selection.SELECTION_END, selectionEnd, selectionEnd, in replace()
/frameworks/base/core/java/android/inputmethodservice/
DInputMethodService.java2307 + " selectionEnd=" + mExtractedText.selectionEnd in dump()
/frameworks/base/api/
D14.txt24493 field public int selectionEnd;
D15.txt24645 field public int selectionEnd;
Dcurrent.txt25810 field public int selectionEnd;
D16.txt25810 field public int selectionEnd;