Home
last modified time | relevance | path

Searched refs:selectionEnd (Results 1 – 20 of 20) 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.java111 private static int[] sortSelctionIndices(int selectionStart, int selectionEnd) { in sortSelctionIndices() argument
112 if (selectionStart < selectionEnd) { in sortSelctionIndices()
113 return new int[]{selectionStart, selectionEnd}; in sortSelctionIndices()
115 return new int[]{selectionEnd, selectionStart}; in sortSelctionIndices()
127 int selectionEnd = textView.getSelectionEnd(); in sortSelctionIndicesFromTextView() local
129 return sortSelctionIndices(selectionStart, selectionEnd); in sortSelctionIndicesFromTextView()
495 private void resetTextClassificationHelper(int selectionStart, int selectionEnd) { in resetTextClassificationHelper() argument
496 if (selectionStart < 0 || selectionEnd < 0) { in resetTextClassificationHelper()
500 selectionEnd = sortedSelectionIndices[1]; in resetTextClassificationHelper()
505 selectionStart, selectionEnd, in resetTextClassificationHelper()
[all …]
DEditor.java1105 int selectionStart, selectionEnd; in selectCurrentWord() local
1113 selectionEnd = ((Spanned) mTextView.getText()).getSpanEnd(urlSpan); in selectCurrentWord()
1121 selectionEnd = wordIterator.getEnd(maxOffset); in selectCurrentWord()
1123 if (selectionStart == BreakIterator.DONE || selectionEnd == BreakIterator.DONE in selectCurrentWord()
1124 || selectionStart == selectionEnd) { in selectCurrentWord()
1128 selectionEnd = TextUtils.unpackRangeEndFromLong(range); in selectCurrentWord()
1132 Selection.setSelection((Spannable) mTextView.getText(), selectionStart, selectionEnd); in selectCurrentWord() local
1133 return selectionEnd > selectionStart; in selectCurrentWord()
1248 int selectionEnd = mTextView.getSelectionEnd(); in touchPositionIsInSelection() local
1250 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.java2184 private void postSetSelectionCommand(int selectionStart, int selectionEnd) { in postSetSelectionCommand() argument
2188 mSetSelectionCommand.post(selectionStart, selectionEnd); in postSetSelectionCommand()
2400 public void post(int selectionStart, int selectionEnd) { in post() argument
2402 mSelectionEnd = selectionEnd; in post()
DTextView.java8773 int end = text.selectionEnd; in setExtractedText()
10164 final int selectionEnd = getSelectionEnd(); in hasSelection() local
10166 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();
DEditorInfo.java903 int selectionEnd) { in InitialSurroundingText() argument
906 mSelectionEnd = selectionEnd; in InitialSurroundingText()
968 final int selectionEnd = source.readInt();
970 return new InitialSurroundingText(initialText, selectionHead, selectionEnd);
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.java14010 int selectionEnd;
14016 selectionEnd = forward ? segmentEnd : segmentStart;
14018 selectionStart = selectionEnd= forward ? segmentEnd : segmentStart;
14020 setAccessibilitySelection(selectionStart, selectionEnd);
/frameworks/base/core/java/android/view/contentcapture/
DViewNode.java792 public void setText(CharSequence text, int selectionStart, int selectionEnd) { in setText() argument
796 t.mTextSelectionEnd = selectionEnd; in setText()
/frameworks/base/core/java/android/app/assist/
DAssistStructure.java1868 public void setText(CharSequence text, int selectionStart, int selectionEnd) { in setText() argument
1872 t.mTextSelectionEnd = selectionEnd; in setText()
/frameworks/base/core/java/android/inputmethodservice/
DInputMethodService.java3324 + " selectionEnd=" + mExtractedText.selectionEnd in dump()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt35644 field public int selectionEnd;
/frameworks/base/api/
Dcurrent.txt56923 field public int selectionEnd;