Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/text/
DSelection.java51 public static final int getSelectionEnd(CharSequence text) { in getSelectionEnd() method in Selection
91 int oend = getSelectionEnd(text); in setSelection()
200 int end = getSelectionEnd(text); in moveUp()
271 int end = getSelectionEnd(text); in moveDown()
307 int end = getSelectionEnd(text); in moveLeft()
332 int end = getSelectionEnd(text); in moveRight()
354 int end = getSelectionEnd(text); in extendUp()
373 int end = getSelectionEnd(text); in extendDown()
392 int end = getSelectionEnd(text); in extendLeft()
408 int end = getSelectionEnd(text); in extendRight()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberWatcherTest.java44 assertEquals(formatted1.length(), Selection.getSelectionEnd(number)); in testAppendChars()
55 assertEquals(formatted2.length(), Selection.getSelectionEnd(number)); in testAppendChars()
72 assertEquals(result1.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars()
81 assertEquals(result2.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars()
99 assertEquals(5, Selection.getSelectionEnd(number)); in testInsertChars()
110 assertEquals(12, Selection.getSelectionEnd(number)); in testInsertChars()
128 assertEquals(expected1.length(), Selection.getSelectionEnd(number)); in testStopFormatting()
141 assertEquals(5, Selection.getSelectionEnd(number)); in testStopFormatting()
154 assertEquals(9, Selection.getSelectionEnd(number)); in testStopFormatting()
172 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.java118 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()
DEditor.java598 int middle = (mTextView.getSelectionStart() + mTextView.getSelectionEnd()) / 2; in replace()
1248 int selectionEnd = mTextView.getSelectionEnd(); in touchPositionIsInSelection()
1315 final int end = mTextView.getSelectionEnd(); in startDragAndDrop()
1417 int selEnd = mTextView.getSelectionEnd(); in onFocusChanged()
1840 outText.selectionEnd = mTextView.getSelectionEnd(); in extractTextInternal()
1898 final int selectionEnd = mTextView.getSelectionEnd(); in sendUpdateSelection()
1917 final int selectionEnd = mTextView.getSelectionEnd(); in onDraw()
2425 final int selectionEnd = mTextView.getSelectionEnd(); in shouldOfferToShowSuggestions()
2484 mTextView.getSelectionEnd(), SuggestionSpan.class); in isCursorInsideEasyCorrectionSpan()
2715 final int end = mTextView.getSelectionEnd(); in shouldBlink()
[all …]
DTextView.java2134 Selection.setSelection(mSpannable, getSelectionEnd()); in onActivityResult()
5888 end = getSelectionEnd(); in onSaveInstanceState()
6387 int end = getSelectionEnd(); in setTextKeepState()
7448 int where = getSelectionEnd(); in invalidateCursor()
7545 int curs = getSelectionEnd(); in onPreDraw()
7832 final int selEnd = getSelectionEnd(); in getUpdatedHighlightPath()
8048 int selEnd = getSelectionEnd(); in getFocusedRect()
8694 outAttrs.initialSelEnd = getSelectionEnd(); in onCreateInputConnection()
10026 int end = getSelectionEnd(); in moveCursorToVisibleOffset()
10155 public int getSelectionEnd() { in getSelectionEnd() method in TextView.Drawables
[all …]
DSelectionActionModeHelper.java127 int selectionEnd = textView.getSelectionEnd(); in sortSelctionIndicesFromTextView()
268 final boolean noSelection = mTextView.getSelectionEnd() == mTextView.getSelectionStart(); in skipTextClassification()
DSpellChecker.java268 final int selectionEnd = Selection.getSelectionEnd(editable); in spellCheck()
/frameworks/base/core/java/android/view/inputmethod/
DBaseInputConnection.java228 int b = Selection.getSelectionEnd(content); in deleteSurroundingText()
398 int b = Selection.getSelectionEnd(content); in deleteSurroundingTextInCodePoints()
476 int b = Selection.getSelectionEnd(content); in getCursorCapsMode()
503 int b = Selection.getSelectionEnd(content); in getTextBeforeCursor()
534 int b = Selection.getSelectionEnd(content); in getSelectedText()
559 int b = Selection.getSelectionEnd(content); in getTextAfterCursor()
807 b = Selection.getSelectionEnd(content); in replaceText()
DCursorAnchorInfo.java514 public int getSelectionEnd() { in getSelectionEnd() method in CursorAnchorInfo
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewAssertions.java113 int selectionEnd = textView.getSelectionEnd(); in hasInsertionPointerAtIndex()
171 int selectionEnd = textView.getSelectionEnd();
DTextViewActions.java557 mTextView.getSelectionStart() : mTextView.getSelectionEnd(); in locateHandlePointsTextIndex()
/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/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java760 int end = getSelectionEnd(); in shrink()
773 int selEnd = getSelectionEnd(); in shrink()
1639 int end = getSelectionEnd(); in commitDefault()
1647 if (whatEnd != getSelectionEnd()) { in commitDefault()
1662 int end = getSelectionEnd(); in commitByCharacter()
1673 && end == getSelectionEnd() && !isPhoneQuery() in commitChip()
1710 if (end == getSelectionEnd()) { in commitChip()
1796 int selEnd = getSelectionEnd(); in handleEdit()
1878 int end = getSelectionEnd(); in performFiltering()
2273 int end = getSelectionEnd(); in submitItemAtPosition()
[all …]
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/span/
DLinkSpanTest.java91 assertThat(Selection.getSelectionEnd(textView.getText())).isEqualTo(0); in onClick_shouldClearSelection()
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberFormattingTextWatcher.java109 String formatted = reformat(s, Selection.getSelectionEnd(s)); in afterTextChanged()
/frameworks/base/core/java/android/transition/
DChangeText.java136 textview.getSelectionEnd()); in captureValues()
/frameworks/base/core/tests/coretests/src/android/text/method/
DForwardDeleteTest.java70 state.mSelectionEnd = mTextView.getSelectionEnd(); in forwardDelete()
DBackspaceTest.java72 state.mSelectionEnd = mTextView.getSelectionEnd(); in backspace()

12