Searched refs:selectionStart (Results 1 - 10 of 10) sorted by relevance
/frameworks/base/core/java/android/text/method/ |
H A D | BaseKeyListener.java | 101 int selectionStart = Selection.getSelectionStart(content); 103 if (selectionEnd < selectionStart) { 105 selectionEnd = selectionStart; 106 selectionStart = temp; 108 if (selectionStart != selectionEnd) { 109 content.delete(selectionStart, selectionEnd); 183 int selectionStart = Selection.getSelectionStart(content); 185 if (selectionEnd < selectionStart) { 187 selectionEnd = selectionStart; 188 selectionStart [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | ExtractedText.java | 59 * <var>startOffset</var>+<var>selectionStart</var>. 61 public int selectionStart; field in class:ExtractedText 100 dest.writeInt(selectionStart); 116 res.selectionStart = source.readInt();
|
/frameworks/base/core/java/android/widget/ |
H A D | SpellChecker.java | 264 final int selectionStart = Selection.getSelectionStart(editable); 284 final boolean apostrophe = (selectionStart == end + 1 && editable.charAt(end) == '\''); 289 isEditing = !apostrophe && (selectionEnd <= start || selectionStart > end); 291 isEditing = !apostrophe && (selectionEnd < start || selectionStart > end); 300 + mIds[i] + ", sel start = " + selectionStart + ", sel end = "
|
H A D | Editor.java | 689 int selectionStart, selectionEnd; 696 selectionStart = ((Spanned) mTextView.getText()).getSpanStart(urlSpan); 702 selectionStart = wordIterator.getBeginning(minOffset); 705 if (selectionStart == BreakIterator.DONE || selectionEnd == BreakIterator.DONE || 706 selectionStart == selectionEnd) { 709 selectionStart = TextUtils.unpackRangeStartFromLong(range); 714 Selection.setSelection((Spannable) mTextView.getText(), selectionStart, selectionEnd); 715 return selectionEnd > selectionStart; 759 int selectionStart = mTextView.getSelectionStart(); 762 if (selectionStart [all...] |
H A D | NumberPicker.java | 1979 * Posts an {@link SetSelectionCommand} from the given <code>selectionStart 1982 private void postSetSelectionCommand(int selectionStart, int selectionEnd) { argument 1988 mSetSelectionCommand.mSelectionStart = selectionStart;
|
H A D | TextView.java | 6078 int start = text.selectionStart; 7300 final int selectionStart = getSelectionStart(); 7303 return selectionStart >= 0 && selectionStart != selectionEnd;
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | TextViewWordLimitsTest.java | 91 private void verifySelectCurrentWord(Spannable text, int selectionStart, int selectionEnd, int correctStart, argument 95 Selection.setSelection((Spannable)mTv.getText(), selectionStart, selectionEnd);
|
/frameworks/base/core/java/android/text/ |
H A D | SpannableStringBuilder.java | 489 int selectionStart = 0; 492 selectionStart = Selection.getSelectionStart(this); 499 if (selectionStart > start && selectionStart < end) { 500 final int offset = (selectionStart - start) * newLen / origLen; 501 selectionStart = start + offset; 503 setSpan(false, Selection.SELECTION_START, selectionStart, selectionStart,
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | InputMethodService.java | 2411 p.println(" selectionStart=" + mExtractedText.selectionStart
|
/frameworks/base/core/java/android/view/ |
H A D | View.java | 8208 int selectionStart; 8211 selectionStart = getAccessibilitySelectionStart(); 8212 if (selectionStart == ACCESSIBILITY_CURSOR_POSITION_UNDEFINED) { 8213 selectionStart = forward ? segmentStart : segmentEnd; 8217 selectionStart = selectionEnd= forward ? segmentEnd : segmentStart; 8219 setAccessibilitySelection(selectionStart, selectionEnd);
|
Completed in 218 milliseconds