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

/frameworks/base/core/java/android/view/textclassifier/
H A DSmartSelection.java48 * character index where the selection begins, and selectionEnd is the index of one character
52 * same semantics as the input selectionBeginning and selectionEnd.
54 public int[] suggest(String context, int selectionBegin, int selectionEnd) { argument
55 return nativeSuggest(mCtx, context, selectionBegin, selectionEnd);
67 String context, int selectionBegin, int selectionEnd, int hintFlags) {
68 return nativeClassifyText(mCtx, context, selectionBegin, selectionEnd, hintFlags);
95 long context, String text, int selectionBegin, int selectionEnd);
98 long context, String text, int selectionBegin, int selectionEnd, int hintFlags);
66 classifyText( String context, int selectionBegin, int selectionEnd, int hintFlags) argument
94 nativeSuggest( long context, String text, int selectionBegin, int selectionEnd) argument
97 nativeClassifyText( long context, String text, int selectionBegin, int selectionEnd, int hintFlags) argument
H A DTextClassifierImpl.java482 final int selectionEnd = selection[1];
483 if (selectionStart >= 0 && selectionEnd <= text.length()
484 && selectionStart <= selectionEnd) {
487 text, selectionStart, selectionEnd,
488 getHintFlags(text, selectionStart, selectionEnd));
493 context, type, text.substring(selectionStart, selectionEnd));
496 spans.add(new SpanSpec(selectionStart, selectionEnd, span));
/frameworks/base/core/java/android/view/inputmethod/
H A DExtractedText.java66 * <var>startOffset</var>+<var>selectionEnd</var>.
68 public int selectionEnd; field in class:ExtractedText
101 dest.writeInt(selectionEnd);
117 res.selectionEnd = source.readInt();
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DTextViewAssertions.java109 int selectionEnd = textView.getSelectionEnd();
112 assertThat(selectionEnd, index);
167 int selectionEnd = textView.getSelectionEnd();
170 .subSequence(selectionStart, selectionEnd)
/frameworks/base/core/java/android/text/method/
H A DBaseKeyListener.java426 int selectionEnd = Selection.getSelectionEnd(content);
427 if (selectionEnd < selectionStart) {
428 int temp = selectionEnd;
429 selectionEnd = selectionStart;
432 if (selectionStart != selectionEnd) {
433 content.delete(selectionStart, selectionEnd);
509 int selectionEnd = Selection.getSelectionEnd(content);
510 if (selectionEnd < selectionStart) {
511 int temp = selectionEnd;
512 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/widget/
H A DSelectionActionModeHelper.java235 public void onOriginalSelection(CharSequence text, int selectionStart, int selectionEnd) { argument
241 mOriginalEnd = mSelectionEnd = selectionEnd;
264 int selectionStart, int selectionEnd,
268 mSelectionEnd = selectionEnd;
270 mLogger.logSelectionModified(selectionStart, selectionEnd, classification, null);
287 int selectionStart, int selectionEnd,
292 mLogger.logSelectionAction(selectionStart, selectionEnd, action, classification);
630 CharSequence text, int selectionStart, int selectionEnd, LocaleList locales) {
631 init(textClassifier, text, selectionStart, selectionEnd, locales);
636 CharSequence text, int selectionStart, int selectionEnd, LocaleLis
263 onSelectionUpdated( int selectionStart, int selectionEnd, @Nullable TextClassification classification) argument
286 onSelectionAction( int selectionStart, int selectionEnd, @SelectionEvent.ActionType int action, @Nullable TextClassification classification) argument
629 TextClassificationHelper(TextClassifier textClassifier, CharSequence text, int selectionStart, int selectionEnd, LocaleList locales) argument
635 init(TextClassifier textClassifier, CharSequence text, int selectionStart, int selectionEnd, LocaleList locales) argument
[all...]
H A DSpellChecker.java265 final int selectionEnd = Selection.getSelectionEnd(editable);
290 isEditing = selectionEnd <= start || selectionStart > end;
292 isEditing = selectionEnd < start || selectionStart > end;
302 + selectionEnd + ", start = " + start + ", end = " + end);
H A DEditor.java866 int selectionStart, selectionEnd;
874 selectionEnd = ((Spanned) mTextView.getText()).getSpanEnd(urlSpan);
882 selectionEnd = wordIterator.getEnd(maxOffset);
884 if (selectionStart == BreakIterator.DONE || selectionEnd == BreakIterator.DONE
885 || selectionStart == selectionEnd) {
889 selectionEnd = TextUtils.unpackRangeEndFromLong(range);
893 Selection.setSelection((Spannable) mTextView.getText(), selectionStart, selectionEnd);
894 return selectionEnd > selectionStart;
1009 int selectionEnd = mTextView.getSelectionEnd();
1011 if (selectionStart == selectionEnd) {
5570 updateSelectionInternal(int selectionStart, int selectionEnd, boolean fromTouchScreen) argument
[all...]
H A DNumberPicker.java2082 * {@code selectionStart} to {@code selectionEnd}.
2084 private void postSetSelectionCommand(int selectionStart, int selectionEnd) { argument
2088 mSetSelectionCommand.post(selectionStart, selectionEnd);
2300 public void post(int selectionStart, int selectionEnd) { argument
2302 mSelectionEnd = selectionEnd;
H A DTextView.java7623 int end = text.selectionEnd;
8974 final int selectionEnd = getSelectionEnd();
8976 return selectionStart >= 0 && selectionStart != selectionEnd;
11579 stream.addProperty("text:selectionEnd", getSelectionEnd());
/frameworks/support/emoji/core/src/android/support/text/emoji/widget/
H A DEmojiInputFilter.java112 final int selectionEnd = Selection.getSelectionEnd(result);
117 updateSelection((Spannable) result, selectionStart, selectionEnd);
H A DEmojiTextWatcher.java123 final int selectionEnd = Selection.getSelectionEnd(text);
127 EmojiInputFilter.updateSelection(text, selectionStart, selectionEnd);
/frameworks/base/core/java/android/view/
H A DViewStructure.java180 * extending from <var>selectionStart</var> through <var>selectionEnd</var>.
182 public abstract void setText(CharSequence text, int selectionStart, int selectionEnd); argument
H A DView.java11480 int selectionEnd;
11486 selectionEnd = forward ? segmentEnd : segmentStart;
11488 selectionStart = selectionEnd= forward ? segmentEnd : segmentStart;
11490 setAccessibilitySelection(selectionStart, selectionEnd);
/frameworks/support/design/tests/src/android/support/design/testutils/
H A DViewStructureImpl.java186 public void setText(CharSequence text, int selectionStart, int selectionEnd) { argument
/frameworks/support/emoji/core/src/android/support/text/emoji/
H A DEmojiProcessor.java351 final int selectionEnd = Selection.getSelectionEnd(editable);
353 if (hasInvalidSelection(selectionStart, selectionEnd)) {
363 end = CodepointIndexFinder.findIndexForward(editable, selectionEnd,
372 end = Math.min(selectionEnd + afterLength, editable.length());
/frameworks/base/core/java/android/text/
H A DSpannableStringBuilder.java540 int selectionEnd = 0;
543 selectionEnd = Selection.getSelectionEnd(this);
559 if (selectionEnd > start && selectionEnd < end) {
560 final long diff = selectionEnd - start;
562 selectionEnd = start + offset;
565 setSpan(false, Selection.SELECTION_END, selectionEnd, selectionEnd,
/frameworks/base/core/java/android/app/assist/
H A DAssistStructure.java1600 public void setText(CharSequence text, int selectionStart, int selectionEnd) { argument
1604 t.mTextSelectionEnd = selectionEnd;
/frameworks/base/core/java/android/inputmethodservice/
H A DInputMethodService.java2700 + " selectionEnd=" + mExtractedText.selectionEnd

Completed in 445 milliseconds