/frameworks/base/core/java/android/text/method/ |
D | BaseKeyListener.java | 427 int selectionStart = Selection.getSelectionStart(content); in deleteSelection() local 429 if (selectionEnd < selectionStart) { in deleteSelection() 431 selectionEnd = selectionStart; in deleteSelection() 432 selectionStart = temp; in deleteSelection() 434 if (selectionStart != selectionEnd) { in deleteSelection() 435 content.delete(selectionStart, selectionEnd); in deleteSelection() 443 final int selectionStart = Selection.getSelectionStart(content); in deleteLineFromCursor() local 447 if (selectionStart < selectionEnd) { in deleteLineFromCursor() 448 selectionMin = selectionStart; in deleteLineFromCursor() 452 selectionMax = selectionStart; in deleteLineFromCursor() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | SelectionActionModeHelper.java | 113 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() 128 int selectionStart = textView.getSelectionStart(); 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() 510 selectionStart = sortedSelectionIndices[0]; in resetTextClassificationHelper() 516 selectionStart, selectionEnd, in resetTextClassificationHelper() [all …]
|
D | EditText.java | 280 final int selectionStart = getSelectionStart(); 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()
|
D | SpellChecker.java | 290 final int selectionStart = Selection.getSelectionStart(editable); in spellCheck() local 299 + ", sel start = " + selectionStart + ", sel end = " + selectionEnd); in spellCheck() 316 if (selectionStart == end + 1 in spellCheck() 320 } else if (selectionEnd <= start || selectionStart > end) { in spellCheck() 328 isNotEditing = selectionStart == end in spellCheck() 329 && selectionStart > 0 in spellCheck() 330 && isSeparator(Character.codePointBefore(editable, selectionStart)); in spellCheck() 339 + mIds[i] + ", sel start = " + selectionStart + ", sel end = " in spellCheck()
|
D | Editor.java | 1243 int selectionStart, selectionEnd; in selectCurrentWord() local 1250 selectionStart = ((Spanned) mTextView.getText()).getSpanStart(urlSpan); in selectCurrentWord() 1258 selectionStart = wordIterator.getBeginning(minOffset); in selectCurrentWord() 1261 if (selectionStart == BreakIterator.DONE || selectionEnd == BreakIterator.DONE in selectCurrentWord() 1262 || selectionStart == selectionEnd) { in selectCurrentWord() 1265 selectionStart = TextUtils.unpackRangeStartFromLong(range); in selectCurrentWord() 1270 Selection.setSelection((Spannable) mTextView.getText(), selectionStart, selectionEnd); in selectCurrentWord() local 1271 return selectionEnd > selectionStart; in selectCurrentWord() 1401 int selectionStart = mTextView.getSelectionStart(); in touchPositionIsInSelection() local 1404 if (selectionStart == selectionEnd) { in touchPositionIsInSelection() [all …]
|
D | NumberPicker.java | 2183 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 2400 mSelectionStart = selectionStart; in post()
|
D | TextView.java | 10202 int start = text.selectionStart; in setExtractedText() 12194 final int selectionStart = getSelectionStart(); in hasSelection() local 12198 if (selectionStart < selectionEnd) { in hasSelection() 12199 selectionMin = selectionStart; in hasSelection() 12203 selectionMax = selectionStart; in hasSelection() 14416 final int selectionStart = getSelectionStart(); in getCursorAnchorInfo() local 14417 builder.setSelectionRange(selectionStart, getSelectionEnd()); in getCursorAnchorInfo() 14484 if (0 <= selectionStart) { in getCursorAnchorInfo() 14486 selectionStart, OffsetMapping.MAP_STRATEGY_CURSOR); in getCursorAnchorInfo()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | ExtractedText.java | 63 public int selectionStart; field in ExtractedText 109 dest.writeInt(selectionStart); in writeToParcel() 126 res.selectionStart = source.readInt();
|
D | SurroundingText.java | 76 @IntRange(from = 0) int selectionStart, @IntRange(from = 0) int selectionEnd, in SurroundingText() 79 mSelectionStart = selectionStart; in SurroundingText()
|
D | TextAppearanceInfo.java | 197 final int selectionStart = textView.getSelectionStart(); in createFromTextView() local 201 if (text instanceof Spanned && text.length() > 0 && selectionStart > 0) { in createFromTextView() 205 int lastCh = selectionStart - 1; in createFromTextView()
|
D | CursorAnchorInfo.java | 560 private CursorAnchorInfo(int selectionStart, int selectionEnd, int composingTextStart, in CursorAnchorInfo() argument 568 mSelectionStart = selectionStart; in CursorAnchorInfo()
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | TextViewAssertions.java | 112 int selectionStart = textView.getSelectionStart(); in hasInsertionPointerAtIndex() local 115 assertThat(selectionStart, index); in hasInsertionPointerAtIndex() 170 int selectionStart = textView.getSelectionStart(); 174 .subSequence(selectionStart, selectionEnd)
|
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/ |
D | BaseInputConnectionTest.java | 737 int selectionStart, in prepareContent() argument 743 Selection.setSelection(mEditable, selectionStart, selectionEnd); in prepareContent() 747 verifyContent(text, selectionStart, selectionEnd, composingSpanStart, composingSpanEnd); in prepareContent() 760 int selectionStart, in verifyContent() argument 766 assertThat(Selection.getSelectionStart(mEditable)).isEqualTo(selectionStart); in verifyContent()
|
/frameworks/base/core/java/android/text/ |
D | SpannableStringBuilder.java | 543 int selectionStart = 0; in replace() local 546 selectionStart = Selection.getSelectionStart(this); in replace() 554 if (selectionStart > start && selectionStart < end) { in replace() 555 final long diff = selectionStart - start; in replace() 557 selectionStart = start + offset; in replace() 560 setSpan(false, Selection.SELECTION_START, selectionStart, selectionStart, in replace()
|
/frameworks/base/core/java/android/view/contentcapture/ |
D | ViewNode.java | 813 public void setText(CharSequence text, int selectionStart, int selectionEnd) { in setText() argument 816 t.mTextSelectionStart = selectionStart; in setText() 1066 int selectionStart = text != null in writeToParcel() local 1073 out.writeInt(selectionStart); in writeToParcel()
|
/frameworks/base/core/java/android/view/ |
D | ViewStructure.java | 251 public abstract void setText(CharSequence text, int selectionStart, int selectionEnd); in setText() argument
|
D | View.java | 16104 int selectionStart; in traverseAtGranularity() local 16108 selectionStart = getAccessibilitySelectionStart(); in traverseAtGranularity() 16109 if (selectionStart == ACCESSIBILITY_CURSOR_POSITION_UNDEFINED) { in traverseAtGranularity() 16110 selectionStart = forward ? segmentStart : segmentEnd; in traverseAtGranularity() 16114 selectionStart = selectionEnd= forward ? segmentEnd : segmentStart; in traverseAtGranularity() 16116 setAccessibilitySelection(selectionStart, selectionEnd); in traverseAtGranularity()
|
/frameworks/base/core/java/android/app/assist/ |
D | AssistStructure.java | 2078 public void setText(CharSequence text, int selectionStart, int selectionEnd) { in setText() argument 2082 t.mTextSelectionStart = selectionStart; in setText()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | InputMethodService.java | 4498 p.println(" selectionStart=" + mExtractedText.selectionStart
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 35645 field public int selectionStart;
|
/frameworks/base/core/api/ |
D | current.txt | 56103 field public int selectionStart;
|