Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/text/method/
DBaseKeyListener.java428 int selectionEnd = Selection.getSelectionEnd(content); in deleteSelection() local
429 if (selectionEnd < selectionStart) { in deleteSelection()
430 int temp = selectionEnd; in deleteSelection()
431 selectionEnd = selectionStart; in deleteSelection()
434 if (selectionStart != selectionEnd) { in deleteSelection()
435 content.delete(selectionStart, selectionEnd); in deleteSelection()
444 final int selectionEnd = Selection.getSelectionEnd(content); in deleteLineFromCursor() local
447 if (selectionStart < selectionEnd) { in deleteLineFromCursor()
449 selectionMax = selectionEnd; in deleteLineFromCursor()
451 selectionMin = selectionEnd; in deleteLineFromCursor()
[all …]
DArrowKeyMovementMethod.java224 final int selectionEnd = widget.getSelectionEnd(); in leftWord() local
226 wordIterator.setCharSequence(buffer, selectionEnd, selectionEnd); in leftWord()
233 final int selectionEnd = widget.getSelectionEnd(); in rightWord() local
235 wordIterator.setCharSequence(buffer, selectionEnd, selectionEnd); in rightWord()
/frameworks/base/core/java/android/view/inputmethod/
DSurroundingText.java76 @IntRange(from = 0) int selectionStart, @IntRange(from = 0) int selectionEnd, in SurroundingText()
80 mSelectionEnd = selectionEnd; in SurroundingText()
148 final int selectionEnd = in.readInt();
151 text == null ? "" : text, selectionHead, selectionEnd, offset);
DExtractedText.java70 public int selectionEnd; field in ExtractedText
110 dest.writeInt(selectionEnd); in writeToParcel()
127 res.selectionEnd = source.readInt();
DCursorAnchorInfo.java560 private CursorAnchorInfo(int selectionStart, int selectionEnd, int composingTextStart, in CursorAnchorInfo() argument
569 mSelectionEnd = selectionEnd; in CursorAnchorInfo()
/frameworks/base/core/java/android/widget/
DSelectionActionModeHelper.java113 private static int[] sortSelectionIndices(int selectionStart, int selectionEnd) { in sortSelectionIndices() argument
114 if (selectionStart < selectionEnd) { in sortSelectionIndices()
115 return new int[]{selectionStart, selectionEnd}; in sortSelectionIndices()
117 return new int[]{selectionEnd, selectionStart}; in sortSelectionIndices()
129 int selectionEnd = textView.getSelectionEnd(); in sortSelectionIndicesFromTextView() local
131 return sortSelectionIndices(selectionStart, selectionEnd); in sortSelectionIndicesFromTextView()
506 private void resetTextClassificationHelper(int selectionStart, int selectionEnd) { in resetTextClassificationHelper() argument
507 if (selectionStart < 0 || selectionEnd < 0) { in resetTextClassificationHelper()
511 selectionEnd = sortedSelectionIndices[1]; in resetTextClassificationHelper()
516 selectionStart, selectionEnd, in resetTextClassificationHelper()
[all …]
DEditText.java281 final int selectionEnd = getSelectionEnd(); in performStylingAction() local
282 if (selectionStart < 0 || selectionEnd < 0) { in performStylingAction()
285 int min = Math.min(selectionStart, selectionEnd); in performStylingAction()
286 int max = Math.max(selectionStart, selectionEnd); in performStylingAction()
DEditor.java1243 int selectionStart, selectionEnd; in selectCurrentWord() local
1251 selectionEnd = ((Spanned) mTextView.getText()).getSpanEnd(urlSpan); in selectCurrentWord()
1259 selectionEnd = wordIterator.getEnd(maxOffset); in selectCurrentWord()
1261 if (selectionStart == BreakIterator.DONE || selectionEnd == BreakIterator.DONE in selectCurrentWord()
1262 || selectionStart == selectionEnd) { in selectCurrentWord()
1266 selectionEnd = TextUtils.unpackRangeEndFromLong(range); in selectCurrentWord()
1270 Selection.setSelection((Spannable) mTextView.getText(), selectionStart, selectionEnd); in selectCurrentWord() local
1271 return selectionEnd > selectionStart; in selectCurrentWord()
1402 int selectionEnd = mTextView.getSelectionEnd(); in touchPositionIsInSelection() local
1404 if (selectionStart == selectionEnd) { in touchPositionIsInSelection()
[all …]
DSpellChecker.java291 final int selectionEnd = Selection.getSelectionEnd(editable); in spellCheck() local
299 + ", sel start = " + selectionStart + ", sel end = " + selectionEnd); in spellCheck()
320 } else if (selectionEnd <= start || selectionStart > end) { in spellCheck()
340 + 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()
/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/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/
DPinPadViewBinder.kt46 passwordField.selectionEnd - 1, in bind()
47 passwordField.selectionEnd in bind()
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/
DBaseInputConnectionTest.java738 int selectionEnd, in prepareContent() argument
743 Selection.setSelection(mEditable, selectionStart, selectionEnd); in prepareContent()
747 verifyContent(text, selectionStart, selectionEnd, composingSpanStart, composingSpanEnd); in prepareContent()
761 int selectionEnd, in verifyContent() argument
767 assertThat(Selection.getSelectionEnd(mEditable)).isEqualTo(selectionEnd); in verifyContent()
/frameworks/base/core/java/android/text/
DSpannableStringBuilder.java544 int selectionEnd = 0; in replace() local
547 selectionEnd = Selection.getSelectionEnd(this); in replace()
563 if (selectionEnd > start && selectionEnd < end) { in replace()
564 final long diff = selectionEnd - start; in replace()
566 selectionEnd = start + offset; in replace()
569 setSpan(false, Selection.SELECTION_END, selectionEnd, selectionEnd, in replace()
/frameworks/base/core/java/android/view/contentcapture/
DViewNode.java813 public void setText(CharSequence text, int selectionStart, int selectionEnd) { in setText() argument
817 t.mTextSelectionEnd = selectionEnd; in setText()
1069 int selectionEnd = text != null in writeToParcel() local
1074 out.writeInt(selectionEnd); in writeToParcel()
/frameworks/base/core/java/android/view/
DViewStructure.java251 public abstract void setText(CharSequence text, int selectionStart, int selectionEnd); in setText() argument
DView.java16105 int selectionEnd; in traverseAtGranularity() local
16112 selectionEnd = forward ? segmentEnd : segmentStart; in traverseAtGranularity()
16114 selectionStart = selectionEnd= forward ? segmentEnd : segmentStart; in traverseAtGranularity()
16116 setAccessibilitySelection(selectionStart, selectionEnd); in traverseAtGranularity()
/frameworks/base/core/java/android/app/assist/
DAssistStructure.java2078 public void setText(CharSequence text, int selectionStart, int selectionEnd) { in setText() argument
2083 t.mTextSelectionEnd = selectionEnd; in setText()
/frameworks/base/core/java/android/inputmethodservice/
DInputMethodService.java4499 + " selectionEnd=" + mExtractedText.selectionEnd
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt35644 field public int selectionEnd;
/frameworks/base/core/api/
Dcurrent.txt56102 field public int selectionEnd;