Searched refs:selectionEnd (Results 1 - 13 of 13) sorted by relevance

/frameworks/base/core/java/android/text/method/
H A DBaseKeyListener.java102 int selectionEnd = Selection.getSelectionEnd(content);
103 if (selectionEnd < selectionStart) {
104 int temp = selectionEnd;
105 selectionEnd = selectionStart;
108 if (selectionStart != selectionEnd) {
109 content.delete(selectionStart, selectionEnd);
184 int selectionEnd = Selection.getSelectionEnd(content);
185 if (selectionEnd < selectionStart) {
186 int temp = selectionEnd;
187 selectionEnd
[all...]
H A DArrowKeyMovementMethod.java199 final int selectionEnd = widget.getSelectionEnd();
201 wordIterator.setCharSequence(buffer, selectionEnd, selectionEnd);
208 final int selectionEnd = widget.getSelectionEnd();
210 wordIterator.setCharSequence(buffer, selectionEnd, selectionEnd);
/frameworks/base/core/java/android/view/inputmethod/
H A DExtractedText.java63 * <var>startOffset</var>+<var>selectionEnd</var>.
65 public int selectionEnd; field in class:ExtractedText
95 dest.writeInt(selectionEnd);
110 res.selectionEnd = source.readInt();
/frameworks/base/core/java/android/webkit/
H A DSearchBox.java52 * no such selection, then both selectionStart and selectionEnd must be the offset
57 void setSelection(int selectionStart, int selectionEnd); argument
H A DSearchBoxImpl.java62 + " sb.selectionEnd = 0;"
81 + " f.selectionEnd = %d"
145 public void setSelection(int selectionStart, int selectionEnd) { argument
146 final String js = String.format(SET_SELECTION_SCRIPT, selectionStart, selectionEnd);
H A DWebViewClassic.java232 int selectionEnd = Selection.getSelectionEnd(editable);
238 selectionEnd = Math.min(selectionEnd, editable.length());
239 setSelection(selectionStart, selectionEnd);
246 int selectionEnd = Selection.getSelectionEnd(editable);
247 text = limitReplaceTextByMaxLength(text, selectionEnd - selectionStart);
248 setNewText(selectionStart, selectionEnd, text);
249 editable.replace(selectionStart, selectionEnd, text);
442 int selectionEnd = Selection.getSelectionEnd(editable);
443 if (selectionStart < 0 || selectionEnd <
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/
H A DTextViewWordLimitsTest.java91 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/widget/
H A DSpellChecker.java270 final int selectionEnd = Selection.getSelectionEnd(editable);
288 isEditing = selectionEnd <= start || selectionStart > end;
290 isEditing = selectionEnd < start || selectionStart > end;
302 + selectionEnd + ", start = " + start + ", end = " + end);
H A DEditor.java612 int selectionStart, selectionEnd;
620 selectionEnd = ((Spanned) mTextView.getText()).getSpanEnd(urlSpan);
626 selectionEnd = wordIterator.getEnd(maxOffset);
628 if (selectionStart == BreakIterator.DONE || selectionEnd == BreakIterator.DONE ||
629 selectionStart == selectionEnd) {
633 selectionEnd = TextUtils.unpackRangeEndFromLong(range);
637 Selection.setSelection((Spannable) mTextView.getText(), selectionStart, selectionEnd);
638 return selectionEnd > selectionStart;
683 int selectionEnd = mTextView.getSelectionEnd();
685 if (selectionStart == selectionEnd) {
[all...]
H A DNumberPicker.java1851 * </code> to <code>selectionEnd</code>.
1853 private void postSetSelectionCommand(int selectionStart, int selectionEnd) { argument
1860 mSetSelectionCommand.mSelectionEnd = selectionEnd;
H A DTextView.java5510 int end = text.selectionEnd;
6716 final int selectionEnd = getSelectionEnd();
6718 return selectionStart >= 0 && selectionStart != selectionEnd;
8387 final int selectionEnd = getSelectionEnd();
8388 if (selectionEnd >= 0) {
8389 return selectionEnd;
/frameworks/base/core/java/android/text/
H A DSpannableStringBuilder.java471 int selectionEnd = 0;
474 selectionEnd = Selection.getSelectionEnd(this);
487 if (selectionEnd > start && selectionEnd < end) {
488 final int offset = (selectionEnd - start) * newLen / origLen;
489 selectionEnd = start + offset;
491 setSpan(false, Selection.SELECTION_END, selectionEnd, selectionEnd,
/frameworks/base/core/java/android/inputmethodservice/
H A DInputMethodService.java2307 + " selectionEnd=" + mExtractedText.selectionEnd

Completed in 303 milliseconds