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.java402 int selectionEnd = Selection.getSelectionEnd(content); in deleteSelection() local
403 if (selectionEnd < selectionStart) { in deleteSelection()
404 int temp = selectionEnd; in deleteSelection()
405 selectionEnd = selectionStart; in deleteSelection()
408 if (selectionStart != selectionEnd) { in deleteSelection()
409 content.delete(selectionStart, selectionEnd); in deleteSelection()
485 int selectionEnd = Selection.getSelectionEnd(content); in onKeyOther() local
486 if (selectionEnd < selectionStart) { in onKeyOther()
487 int temp = selectionEnd; in onKeyOther()
488 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.java68 public int selectionEnd; field in ExtractedText
101 dest.writeInt(selectionEnd); in writeToParcel()
117 res.selectionEnd = source.readInt();
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewAssertions.java109 int selectionEnd = textView.getSelectionEnd(); in hasInsertionPointerAtIndex() local
112 assertThat(selectionEnd, index); in hasInsertionPointerAtIndex()
155 int selectionEnd = textView.getSelectionEnd();
158 .subSequence(selectionStart, selectionEnd)
/frameworks/base/core/java/android/view/
DViewStructure.java167 public abstract void setText(CharSequence text, int selectionStart, int selectionEnd); in setText() argument
DView.java9660 int selectionEnd; in traverseAtGranularity() local
9666 selectionEnd = forward ? segmentEnd : segmentStart; in traverseAtGranularity()
9668 selectionStart = selectionEnd= forward ? segmentEnd : segmentStart; in traverseAtGranularity()
9670 setAccessibilitySelection(selectionStart, selectionEnd); in traverseAtGranularity()
/frameworks/base/core/java/android/widget/
DEditor.java838 int selectionStart, selectionEnd; in selectCurrentWord() local
846 selectionEnd = ((Spanned) mTextView.getText()).getSpanEnd(urlSpan); in selectCurrentWord()
854 selectionEnd = wordIterator.getEnd(maxOffset); in selectCurrentWord()
856 if (selectionStart == BreakIterator.DONE || selectionEnd == BreakIterator.DONE || in selectCurrentWord()
857 selectionStart == selectionEnd) { in selectCurrentWord()
861 selectionEnd = TextUtils.unpackRangeEndFromLong(range); in selectCurrentWord()
865 Selection.setSelection((Spannable) mTextView.getText(), selectionStart, selectionEnd); in selectCurrentWord() local
866 return selectionEnd > selectionStart; in selectCurrentWord()
984 int selectionEnd = mTextView.getSelectionEnd(); in touchPositionIsInSelection() local
986 if (selectionStart == selectionEnd) { in touchPositionIsInSelection()
[all …]
DSpellChecker.java265 final int selectionEnd = Selection.getSelectionEnd(editable); in spellCheck() local
289 isEditing = !apostrophe && (selectionEnd <= start || selectionStart > end); in spellCheck()
291 isEditing = !apostrophe && (selectionEnd < start || selectionStart > end); in spellCheck()
301 + selectionEnd + ", start = " + start + ", end = " + end); in spellCheck()
DNumberPicker.java2039 private void postSetSelectionCommand(int selectionStart, int selectionEnd) { in postSetSelectionCommand() argument
2046 mSetSelectionCommand.mSelectionEnd = selectionEnd; in postSetSelectionCommand()
DTextView.java6572 int end = text.selectionEnd; in setExtractedText()
7793 final int selectionEnd = getSelectionEnd(); in hasSelection() local
7795 return selectionStart >= 0 && selectionStart != selectionEnd; in hasSelection()
/frameworks/base/core/java/android/text/
DSpannableStringBuilder.java545 int selectionEnd = 0; in replace() local
548 selectionEnd = Selection.getSelectionEnd(this); in replace()
564 if (selectionEnd > start && selectionEnd < end) { in replace()
565 final long diff = selectionEnd - start; in replace()
567 selectionEnd = start + offset; in replace()
570 setSpan(false, Selection.SELECTION_END, selectionEnd, selectionEnd, in replace()
/frameworks/base/core/java/android/app/assist/
DAssistStructure.java1204 public void setText(CharSequence text, int selectionStart, int selectionEnd) { in setText() argument
1208 t.mTextSelectionEnd = selectionEnd; in setText()
/frameworks/base/core/java/android/inputmethodservice/
DInputMethodService.java2641 + " selectionEnd=" + mExtractedText.selectionEnd in dump()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt35644 field public int selectionEnd;
/frameworks/base/api/
Dcurrent.txt44652 field public int selectionEnd;
Dsystem-current.txt47655 field public int selectionEnd;
Dtest-current.txt44731 field public int selectionEnd;