Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/text/method/
DBaseKeyListener.java425 int selectionStart = Selection.getSelectionStart(content); in deleteSelection() local
427 if (selectionEnd < selectionStart) { in deleteSelection()
429 selectionEnd = selectionStart; in deleteSelection()
430 selectionStart = temp; in deleteSelection()
432 if (selectionStart != selectionEnd) { in deleteSelection()
433 content.delete(selectionStart, selectionEnd); in deleteSelection()
508 int selectionStart = Selection.getSelectionStart(content); in onKeyOther() local
510 if (selectionEnd < selectionStart) { in onKeyOther()
512 selectionEnd = selectionStart; in onKeyOther()
513 selectionStart = temp; in onKeyOther()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DExtractedText.java63 public int selectionStart; field in ExtractedText
109 dest.writeInt(selectionStart); in writeToParcel()
126 res.selectionStart = source.readInt();
/frameworks/base/core/java/android/widget/
DSelectionActionModeHelper.java455 private void resetTextClassificationHelper(int selectionStart, int selectionEnd) { in resetTextClassificationHelper() argument
456 if (selectionStart < 0 || selectionEnd < 0) { in resetTextClassificationHelper()
458 selectionStart = mTextView.getSelectionStart(); in resetTextClassificationHelper()
464 selectionStart, selectionEnd, in resetTextClassificationHelper()
504 CharSequence text, int selectionStart, int selectionEnd, boolean isLink) { in onOriginalSelection() argument
509 mOriginalStart = mSelectionStart = selectionStart; in onOriginalSelection()
514 text, selectionStart, in onOriginalSelection() local
547 int selectionStart, int selectionEnd, in onSelectionUpdated() argument
550 mSelectionStart = selectionStart; in onSelectionUpdated()
553 mLogger.logSelectionModified(selectionStart, selectionEnd, classification, null); in onSelectionUpdated()
[all …]
DEditor.java951 int selectionStart, selectionEnd; in selectCurrentWord() local
958 selectionStart = ((Spanned) mTextView.getText()).getSpanStart(urlSpan); in selectCurrentWord()
966 selectionStart = wordIterator.getBeginning(minOffset); in selectCurrentWord()
969 if (selectionStart == BreakIterator.DONE || selectionEnd == BreakIterator.DONE in selectCurrentWord()
970 || selectionStart == selectionEnd) { in selectCurrentWord()
973 selectionStart = TextUtils.unpackRangeStartFromLong(range); in selectCurrentWord()
978 Selection.setSelection((Spannable) mTextView.getText(), selectionStart, selectionEnd); in selectCurrentWord() local
979 return selectionEnd > selectionStart; in selectCurrentWord()
1093 int selectionStart = mTextView.getSelectionStart(); in touchPositionIsInSelection() local
1096 if (selectionStart == selectionEnd) { in touchPositionIsInSelection()
[all …]
DSpellChecker.java264 final int selectionStart = Selection.getSelectionStart(editable); in spellCheck() local
282 if (selectionStart == end + 1 in spellCheck()
290 isEditing = selectionEnd <= start || selectionStart > end; in spellCheck()
292 isEditing = selectionEnd < start || selectionStart > end; in spellCheck()
301 + mIds[i] + ", sel start = " + selectionStart + ", sel end = " in spellCheck()
DNumberPicker.java2088 private void postSetSelectionCommand(int selectionStart, int selectionEnd) { in postSetSelectionCommand() argument
2092 mSetSelectionCommand.post(selectionStart, selectionEnd); in postSetSelectionCommand()
2304 public void post(int selectionStart, int selectionEnd) { in post() argument
2305 mSelectionStart = selectionStart; in post()
DTextView.java7963 int start = text.selectionStart; in setExtractedText()
9350 final int selectionStart = getSelectionStart(); in hasSelection() local
9353 return selectionStart >= 0 && selectionEnd > 0 && selectionStart != selectionEnd; in hasSelection()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewAssertions.java111 int selectionStart = textView.getSelectionStart(); in hasInsertionPointerAtIndex() local
114 assertThat(selectionStart, index); in hasInsertionPointerAtIndex()
169 int selectionStart = textView.getSelectionStart();
173 .subSequence(selectionStart, selectionEnd)
/frameworks/support/emoji/core/src/main/java/androidx/emoji/widget/
DEmojiTextWatcher.java124 final int selectionStart = Selection.getSelectionStart(text); in onInitialized() local
129 EmojiInputFilter.updateSelection(text, selectionStart, selectionEnd); in onInitialized()
DEmojiInputFilter.java113 final int selectionStart = Selection.getSelectionStart(result); in onInitialized() local
119 updateSelection((Spannable) result, selectionStart, selectionEnd); in onInitialized() local
/frameworks/support/emoji/core/src/main/java/androidx/emoji/text/
DEmojiProcessor.java379 final int selectionStart = Selection.getSelectionStart(editable); in handleDeleteSurroundingText() local
382 if (hasInvalidSelection(selectionStart, selectionEnd)) { in handleDeleteSurroundingText()
390 start = CodepointIndexFinder.findIndexBackward(editable, selectionStart, in handleDeleteSurroundingText()
400 start = Math.max(selectionStart - beforeLength, 0); in handleDeleteSurroundingText()
/frameworks/base/core/java/android/text/
DSpannableStringBuilder.java541 int selectionStart = 0; in replace() local
544 selectionStart = Selection.getSelectionStart(this); in replace()
552 if (selectionStart > start && selectionStart < end) { in replace()
553 final long diff = selectionStart - start; in replace()
555 selectionStart = start + offset; in replace()
558 setSpan(false, Selection.SELECTION_START, selectionStart, selectionStart, in replace()
/frameworks/base/core/java/android/view/
DViewStructure.java186 public abstract void setText(CharSequence text, int selectionStart, int selectionEnd); in setText() argument
DView.java12216 int selectionStart;
12219 selectionStart = getAccessibilitySelectionStart();
12220 if (selectionStart == ACCESSIBILITY_CURSOR_POSITION_UNDEFINED) {
12221 selectionStart = forward ? segmentStart : segmentEnd;
12225 selectionStart = selectionEnd= forward ? segmentEnd : segmentStart;
12227 setAccessibilitySelection(selectionStart, selectionEnd);
/frameworks/base/core/java/android/app/assist/
DAssistStructure.java1714 public void setText(CharSequence text, int selectionStart, int selectionEnd) { in setText() argument
1717 t.mTextSelectionStart = selectionStart; in setText()
/frameworks/base/core/java/android/inputmethodservice/
DInputMethodService.java2893 p.println(" selectionStart=" + mExtractedText.selectionStart in dump()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt35645 field public int selectionStart;
/frameworks/base/api/
Dcurrent.txt50143 field public int selectionStart;
/frameworks/base/config/
Dhiddenapi-public-dex.txt48771 Landroid/view/inputmethod/ExtractedText;->selectionStart:I