Home
last modified time | relevance | path

Searched refs:getSelectionEnd (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/core/java/android/text/
DSelection.java48 public static final int getSelectionEnd(CharSequence text) { in getSelectionEnd() method in Selection
73 int oend = getSelectionEnd(text); in setSelection()
124 int end = getSelectionEnd(text); in moveUp()
170 int end = getSelectionEnd(text); in moveDown()
215 int end = getSelectionEnd(text); in moveLeft()
240 int end = getSelectionEnd(text); in moveRight()
262 int end = getSelectionEnd(text); in extendUp()
291 int end = getSelectionEnd(text); in extendDown()
320 int end = getSelectionEnd(text); in extendLeft()
336 int end = getSelectionEnd(text); in extendRight()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberWatcherTest.java42 assertEquals(formatted1.length(), Selection.getSelectionEnd(number)); in testAppendChars()
53 assertEquals(formatted2.length(), Selection.getSelectionEnd(number)); in testAppendChars()
70 assertEquals(result1.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars()
79 assertEquals(result2.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars()
97 assertEquals(5, Selection.getSelectionEnd(number)); in testInsertChars()
108 assertEquals(12, Selection.getSelectionEnd(number)); in testInsertChars()
126 assertEquals(expected1.length(), Selection.getSelectionEnd(number)); in testStopFormatting()
139 assertEquals(5, Selection.getSelectionEnd(number)); in testStopFormatting()
152 assertEquals(9, Selection.getSelectionEnd(number)); in testStopFormatting()
170 assertEquals(expected1.length(), Selection.getSelectionEnd(number)); in testRestartFormatting()
[all …]
/frameworks/base/core/java/android/text/method/
DArrowKeyMovementMethod.java39 return layout.getLineTop(layout.getLineForOffset(Selection.getSelectionEnd(buffer))); in getCurrentLineTop()
115 final int previousSelectionEnd = Selection.getSelectionEnd(buffer); in pageUp()
121 if (Selection.getSelectionEnd(buffer) == previousSelectionEnd) { in pageUp()
139 final int previousSelectionEnd = Selection.getSelectionEnd(buffer); in pageDown()
145 if (Selection.getSelectionEnd(buffer) == previousSelectionEnd) { in pageDown()
199 final int selectionEnd = widget.getSelectionEnd(); in leftWord()
208 final int selectionEnd = widget.getSelectionEnd(); in rightWord()
DMultiTapKeyListener.java99 int b = Selection.getSelectionEnd(content); in onKeyDown()
199 selEnd = Selection.getSelectionEnd(content); in onKeyDown()
274 int en = Selection.getSelectionEnd(buf); in run()
280 Selection.setSelection(buf, Selection.getSelectionEnd(buf)); in run()
DBaseKeyListener.java351 final int start = Selection.getSelectionEnd(content); in backspaceOrForwardDelete()
380 if (currentCursorOffset != Selection.getSelectionEnd(content)) { in deleteUntilWordBoundary()
426 int selectionEnd = Selection.getSelectionEnd(content); in deleteSelection()
509 int selectionEnd = Selection.getSelectionEnd(content); in onKeyOther()
DQwertyKeyListener.java100 int b = Selection.getSelectionEnd(content); in onKeyDown()
231 selEnd = Selection.getSelectionEnd(content); in onKeyDown()
285 selEnd = Selection.getSelectionEnd(content); in onKeyDown()
DCharacterPickerDialog.java95 int selEnd = Selection.getSelectionEnd(mText); in replaceCharacterAndClose()
DNumberKeyListener.java112 int b = Selection.getSelectionEnd(content); in onKeyDown()
DLinkMovementMethod.java113 int b = Selection.getSelectionEnd(buffer); in action()
/frameworks/base/core/java/android/widget/
DMultiAutoCompleteTextView.java96 int end = getSelectionEnd(); in performFiltering()
121 int end = getSelectionEnd(); in enoughToFilter()
193 int end = getSelectionEnd(); in replaceText()
DSelectionActionModeHelper.java141 return textView.getSelectionEnd() > textView.getSelectionStart(); in hasSelection()
148 textView.getSelectionStart(), textView.getSelectionEnd()); in startActionMode()
177 textView.getSelectionStart(), textView.getSelectionEnd(), in invalidateActionMode()
185 textView.getSelectionStart(), textView.getSelectionEnd(), in resetTextClassificationHelper()
DEditor.java383 int middle = (mTextView.getSelectionStart() + mTextView.getSelectionEnd()) / 2; in replace()
1004 int selectionEnd = mTextView.getSelectionEnd(); in touchPositionIsInSelection()
1069 final int end = mTextView.getSelectionEnd(); in startDragAndDrop()
1142 int selEnd = mTextView.getSelectionEnd(); in onFocusChanged()
1563 outText.selectionEnd = mTextView.getSelectionEnd(); in extractTextInternal()
1616 final int selectionEnd = mTextView.getSelectionEnd(); in sendUpdateSelection()
1635 final int selectionEnd = mTextView.getSelectionEnd(); in onDraw()
2127 final int selectionEnd = mTextView.getSelectionEnd(); in shouldOfferToShowSuggestions()
2186 mTextView.getSelectionEnd(), SuggestionSpan.class); in isCursorInsideEasyCorrectionSpan()
2395 final int end = mTextView.getSelectionEnd(); in shouldBlink()
[all …]
DTextView.java2092 Selection.setSelection((Spannable) mText, getSelectionEnd());
5010 end = getSelectionEnd();
5469 int end = getSelectionEnd();
6299 int where = getSelectionEnd(); in invalidateCursor()
6398 int curs = getSelectionEnd(); in onPreDraw()
6683 final int selEnd = getSelectionEnd(); in getUpdatedHighlightPath()
6901 int selEnd = getSelectionEnd(); in getFocusedRect()
7543 outAttrs.initialSelEnd = getSelectionEnd(); in onCreateInputConnection()
8832 int end = getSelectionEnd(); in moveCursorToVisibleOffset()
8960 public int getSelectionEnd() { in getSelectionEnd() method
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DBaseInputConnection.java224 int b = Selection.getSelectionEnd(content); in deleteSurroundingText()
381 int b = Selection.getSelectionEnd(content); in deleteSurroundingTextInCodePoints()
459 int b = Selection.getSelectionEnd(content); in getCursorCapsMode()
486 int b = Selection.getSelectionEnd(content); in getTextBeforeCursor()
517 int b = Selection.getSelectionEnd(content); in getSelectedText()
542 int b = Selection.getSelectionEnd(content); in getTextAfterCursor()
789 b = Selection.getSelectionEnd(content); in replaceText()
DCursorAnchorInfo.java453 public int getSelectionEnd() { in getSelectionEnd() method in CursorAnchorInfo
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewAssertions.java109 int selectionEnd = textView.getSelectionEnd(); in hasInsertionPointerAtIndex()
167 int selectionEnd = textView.getSelectionEnd();
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java228 int oldSelEnd = Selection.getSelectionEnd(getText()); in onTouchEvent()
236 Selection.getSelectionEnd(getText())); in onTouchEvent()
280 boolean selection = getSelectionStart() != getSelectionEnd(); in onTextContextMenuItem()
1303 public int getSelectionEnd() { in getSelectionEnd() method in EditStyledText.EditorManager
1474 int min = Math.min(getSelectionStart(), getSelectionEnd()); in copyToClipBoard()
1475 int max = Math.max(getSelectionStart(), getSelectionEnd()); in copyToClipBoard()
1490 int min = Math.min(getSelectionStart(), getSelectionEnd()); in cutToClipBoard()
1491 int max = Math.max(getSelectionStart(), getSelectionEnd()); in cutToClipBoard()
1519 int min = Math.min(mEST.getSelectionStart(), mEST.getSelectionEnd()); in pasteFromClipboard()
1520 int max = Math.max(mEST.getSelectionStart(), mEST.getSelectionEnd()); in pasteFromClipboard()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DCursorAnchorInfoTest.java108 assertEquals(SELECTION_END, info.getSelectionEnd()); in testBuilder()
133 assertEquals(SELECTION_END, info2.getSelectionEnd()); in testBuilder()
160 assertEquals(SELECTION_END, info3.getSelectionEnd()); in testBuilder()
186 assertEquals(-1, uninitializedInfo.getSelectionEnd()); in testBuilder()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java757 int end = getSelectionEnd(); in shrink()
770 int selEnd = getSelectionEnd(); in shrink()
1636 int end = getSelectionEnd(); in commitDefault()
1644 if (whatEnd != getSelectionEnd()) { in commitDefault()
1659 int end = getSelectionEnd(); in commitByCharacter()
1670 && end == getSelectionEnd() && !isPhoneQuery() in commitChip()
1707 if (end == getSelectionEnd()) { in commitChip()
1793 int selEnd = getSelectionEnd(); in handleEdit()
1875 int end = getSelectionEnd(); in performFiltering()
2270 int end = getSelectionEnd(); in submitItemAtPosition()
[all …]
/frameworks/support/emoji/core/src/android/support/text/emoji/widget/
DEmojiTextWatcher.java109 final int selectionEnd = Selection.getSelectionEnd(text); in onInitialized()
DEmojiInputFilter.java110 final int selectionEnd = Selection.getSelectionEnd(result); in onInitialized()
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberFormattingTextWatcher.java108 String formatted = reformat(s, Selection.getSelectionEnd(s)); in afterTextChanged()
/frameworks/support/emoji/core/src/android/support/text/emoji/
DEmojiProcessor.java304 final int end = Selection.getSelectionEnd(content); in delete()
356 final int selectionEnd = Selection.getSelectionEnd(editable); in handleDeleteSurroundingText()
/frameworks/base/core/java/android/transition/
DChangeText.java136 textview.getSelectionEnd()); in captureValues()
/frameworks/base/core/tests/coretests/src/android/text/method/
DForwardDeleteTest.java67 state.mSelectionEnd = mTextView.getSelectionEnd(); in forwardDelete()

12