Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/text/method/
DBaseKeyListener.java426 int selectionEnd = Selection.getSelectionEnd(content); in deleteSelection() local
427 if (selectionEnd < selectionStart) { in deleteSelection()
428 int temp = selectionEnd; in deleteSelection()
429 selectionEnd = selectionStart; in deleteSelection()
432 if (selectionStart != selectionEnd) { in deleteSelection()
433 content.delete(selectionStart, selectionEnd); in deleteSelection()
509 int selectionEnd = Selection.getSelectionEnd(content); in onKeyOther() local
510 if (selectionEnd < selectionStart) { in onKeyOther()
511 int temp = selectionEnd; in onKeyOther()
512 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/widget/
DSelectionActionModeHelper.java112 private static int[] sortSelectionIndices(int selectionStart, int selectionEnd) { in sortSelectionIndices() argument
113 if (selectionStart < selectionEnd) { in sortSelectionIndices()
114 return new int[]{selectionStart, selectionEnd}; in sortSelectionIndices()
116 return new int[]{selectionEnd, selectionStart}; in sortSelectionIndices()
128 int selectionEnd = textView.getSelectionEnd(); in sortSelectionIndicesFromTextView() local
130 return sortSelectionIndices(selectionStart, selectionEnd); in sortSelectionIndicesFromTextView()
497 private void resetTextClassificationHelper(int selectionStart, int selectionEnd) { in resetTextClassificationHelper() argument
498 if (selectionStart < 0 || selectionEnd < 0) { in resetTextClassificationHelper()
502 selectionEnd = sortedSelectionIndices[1]; in resetTextClassificationHelper()
507 selectionStart, selectionEnd, in resetTextClassificationHelper()
[all …]
DEditor.java969 int selectionStart, selectionEnd; in selectCurrentWord() local
977 selectionEnd = ((Spanned) mTextView.getText()).getSpanEnd(urlSpan); in selectCurrentWord()
985 selectionEnd = wordIterator.getEnd(maxOffset); in selectCurrentWord()
987 if (selectionStart == BreakIterator.DONE || selectionEnd == BreakIterator.DONE in selectCurrentWord()
988 || selectionStart == selectionEnd) { in selectCurrentWord()
992 selectionEnd = TextUtils.unpackRangeEndFromLong(range); in selectCurrentWord()
996 Selection.setSelection((Spannable) mTextView.getText(), selectionStart, selectionEnd); in selectCurrentWord() local
997 return selectionEnd > selectionStart; in selectCurrentWord()
1112 int selectionEnd = mTextView.getSelectionEnd(); in touchPositionIsInSelection() local
1114 if (selectionStart == selectionEnd) { in touchPositionIsInSelection()
[all …]
DSpellChecker.java268 final int selectionEnd = Selection.getSelectionEnd(editable); in spellCheck() local
293 isEditing = selectionEnd <= start || selectionStart > end; in spellCheck()
295 isEditing = selectionEnd < start || selectionStart > end; in spellCheck()
305 + selectionEnd + ", start = " + start + ", end = " + end); in spellCheck()
DNumberPicker.java2183 private void postSetSelectionCommand(int selectionStart, int selectionEnd) { in postSetSelectionCommand() argument
2187 mSetSelectionCommand.post(selectionStart, selectionEnd); in postSetSelectionCommand()
2399 public void post(int selectionStart, int selectionEnd) { in post() argument
2401 mSelectionEnd = selectionEnd; in post()
DTextView.java8750 int end = text.selectionEnd; in setExtractedText()
10141 final int selectionEnd = getSelectionEnd(); in hasSelection() local
10143 return selectionStart >= 0 && selectionEnd > 0 && selectionStart != selectionEnd; in hasSelection()
/frameworks/base/core/java/android/view/inputmethod/
DExtractedText.java70 public int selectionEnd; field in ExtractedText
110 dest.writeInt(selectionEnd); in writeToParcel()
127 res.selectionEnd = source.readInt();
DCursorAnchorInfo.java435 private CursorAnchorInfo(int selectionStart, int selectionEnd, int composingTextStart, in CursorAnchorInfo() argument
441 mSelectionEnd = selectionEnd; in CursorAnchorInfo()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewAssertions.java113 int selectionEnd = textView.getSelectionEnd(); in hasInsertionPointerAtIndex() local
116 assertThat(selectionEnd, index); in hasInsertionPointerAtIndex()
171 int selectionEnd = textView.getSelectionEnd();
174 .subSequence(selectionStart, selectionEnd)
/frameworks/base/core/java/android/text/
DSpannableStringBuilder.java543 int selectionEnd = 0; in replace() local
546 selectionEnd = Selection.getSelectionEnd(this); in replace()
562 if (selectionEnd > start && selectionEnd < end) { in replace()
563 final long diff = selectionEnd - start; in replace()
565 selectionEnd = start + offset; in replace()
568 setSpan(false, Selection.SELECTION_END, selectionEnd, selectionEnd, in replace()
/frameworks/base/core/java/android/view/
DViewStructure.java190 public abstract void setText(CharSequence text, int selectionStart, int selectionEnd); in setText() argument
DView.java13657 int selectionEnd;
13663 selectionEnd = forward ? segmentEnd : segmentStart;
13665 selectionStart = selectionEnd= forward ? segmentEnd : segmentStart;
13667 setAccessibilitySelection(selectionStart, selectionEnd);
/frameworks/base/core/java/android/view/contentcapture/
DViewNode.java762 public void setText(CharSequence text, int selectionStart, int selectionEnd) { in setText() argument
766 t.mTextSelectionEnd = selectionEnd; in setText()
/frameworks/base/core/java/android/app/assist/
DAssistStructure.java1822 public void setText(CharSequence text, int selectionStart, int selectionEnd) { in setText() argument
1826 t.mTextSelectionEnd = selectionEnd; in setText()
/frameworks/base/core/java/android/inputmethodservice/
DInputMethodService.java3078 + " selectionEnd=" + mExtractedText.selectionEnd in dump()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt35644 field public int selectionEnd;
/frameworks/base/non-updatable-api/
Dcurrent.txt54409 field public int selectionEnd;
/frameworks/base/api/
Dcurrent.txt54553 field public int selectionEnd;