Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/text/
DSelection.java52 public static final int getSelectionEnd(CharSequence text) { in getSelectionEnd() method in Selection
92 int oend = getSelectionEnd(text); in setSelection()
201 int end = getSelectionEnd(text); in moveUp()
272 int end = getSelectionEnd(text); in moveDown()
308 int end = getSelectionEnd(text); in moveLeft()
333 int end = getSelectionEnd(text); in moveRight()
361 int end = getSelectionEnd(text); in moveToParagraphStart()
388 int end = getSelectionEnd(text); in moveToParagraphEnd()
413 int end = getSelectionEnd(text); in extendToParagraphStart()
432 int end = getSelectionEnd(text); in extendToParagraphEnd()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberWatcherTest.java46 assertEquals(formatted1.length(), Selection.getSelectionEnd(number)); in testAppendChars()
59 assertEquals(formatted2.length(), Selection.getSelectionEnd(number)); in testAppendChars()
83 assertEquals(result1.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars()
94 assertEquals(result2.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars()
113 assertEquals(5, Selection.getSelectionEnd(number)); in testInsertChars()
125 assertEquals(12, Selection.getSelectionEnd(number)); in testInsertChars()
144 assertEquals(expected1.length(), Selection.getSelectionEnd(number)); in testStopFormatting()
157 assertEquals(5, Selection.getSelectionEnd(number)); in testStopFormatting()
170 assertEquals(9, Selection.getSelectionEnd(number)); in testStopFormatting()
188 assertEquals(expected1.length(), Selection.getSelectionEnd(number)); in testRestartFormatting()
[all …]
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/
DSurroundingTextTest.java43 assertThat(surroundingText1.getSelectionEnd()).isEqualTo(0); in testSurroundingTextBasicCreation()
49 assertThat(surroundingText2.getSelectionEnd()).isEqualTo(-1); in testSurroundingTextBasicCreation()
55 assertThat(surroundingText3.getSelectionEnd()).isEqualTo(5); in testSurroundingTextBasicCreation()
70 assertThat(surroundingText.getSelectionEnd()).isEqualTo(1); in testSurroundingTextWriteToParcel()
74 assertThat(surroundingTextFromParcel.getSelectionEnd()).isEqualTo(1); in testSurroundingTextWriteToParcel()
DEditorInfoTest.java356 assertEquals(sourceSurroundingText.getSelectionEnd(), in initialSurroundingText_wrapIntoParcel_staysIntact()
357 targetSurroundingText.getSelectionEnd()); in initialSurroundingText_wrapIntoParcel_staysIntact()
468 assertEquals(expectSurroundingText.getSelectionEnd(), in assertExpectedTextLength()
469 surroundingText.getSelectionEnd()); in assertExpectedTextLength()
/frameworks/base/core/java/android/text/method/
DArrowKeyMovementMethod.java40 return layout.getLineTop(layout.getLineForOffset(Selection.getSelectionEnd(buffer))); in getCurrentLineTop()
131 final int previousSelectionEnd = Selection.getSelectionEnd(buffer); in pageUp()
137 if (Selection.getSelectionEnd(buffer) == previousSelectionEnd) { in pageUp()
158 final int previousSelectionEnd = Selection.getSelectionEnd(buffer); in pageDown()
164 if (Selection.getSelectionEnd(buffer) == previousSelectionEnd) { in pageDown()
224 final int selectionEnd = widget.getSelectionEnd(); in leftWord()
233 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.java353 final int start = Selection.getSelectionEnd(content); in backspaceOrForwardDelete()
382 if (currentCursorOffset != Selection.getSelectionEnd(content)) { in deleteUntilWordBoundary()
428 int selectionEnd = Selection.getSelectionEnd(content); in deleteSelection()
444 final int selectionEnd = Selection.getSelectionEnd(content); in deleteLineFromCursor()
528 int selectionEnd = Selection.getSelectionEnd(content); in onKeyOther()
DQwertyKeyListener.java100 int b = Selection.getSelectionEnd(content); in onKeyDown()
236 selEnd = Selection.getSelectionEnd(content); in onKeyDown()
290 selEnd = Selection.getSelectionEnd(content); in onKeyDown()
DCharacterPickerDialog.java95 int selEnd = Selection.getSelectionEnd(mText); in replaceCharacterAndClose()
DNumberKeyListener.java110 int b = Selection.getSelectionEnd(content); in onKeyDown()
/frameworks/base/core/java/android/view/inputmethod/
DTextSnapshot.java103 public int getSelectionEnd() { in getSelectionEnd() method in TextSnapshot
107 return mSurroundingText.getSelectionEnd() + mSurroundingText.getOffset(); in getSelectionEnd()
DBaseInputConnection.java270 int b = Selection.getSelectionEnd(content); in deleteSurroundingText()
440 int b = Selection.getSelectionEnd(content); in deleteSurroundingTextInCodePoints()
521 int b = Selection.getSelectionEnd(content); in getCursorCapsMode()
552 int b = Selection.getSelectionEnd(content); in getTextBeforeCursor()
584 int b = Selection.getSelectionEnd(content); in getSelectedText()
613 int b = Selection.getSelectionEnd(content); in getTextAfterCursor()
652 int selEnd = Selection.getSelectionEnd(content); in getSurroundingText()
953 b = Selection.getSelectionEnd(content); in replaceText()
DSurroundingText.java112 public int getSelectionEnd() { in getSelectionEnd() method in SurroundingText
DEditorInfo.java981 mInitialSurroundingText.getSelectionEnd()); in getInitialTextBeforeCursor()
1013 int selEnd = mInitialSurroundingText.getSelectionEnd(); in getInitialSelectedText()
1050 mInitialSurroundingText.getSelectionEnd()); in getInitialTextAfterCursor()
1101 int selEnd = mInitialSurroundingText.getSelectionEnd(); in getInitialSurroundingText()
/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()
DTextViewOnReceiveContentListener.java108 editable.insert(Selection.getSelectionEnd(editable), "\n"); in onReceiveContent()
109 editable.insert(Selection.getSelectionEnd(editable), itemText); in onReceiveContent()
119 final int selEnd = Selection.getSelectionEnd(editable); in replaceSelection()
DEditor.java696 int middle = (mTextView.getSelectionStart() + mTextView.getSelectionEnd()) / 2; in replace()
1402 int selectionEnd = mTextView.getSelectionEnd(); in touchPositionIsInSelection()
1471 final int end = mTextView.getSelectionEnd(); in startDragAndDrop()
1573 int selEnd = mTextView.getSelectionEnd(); in onFocusChanged()
2020 outText.selectionEnd = mTextView.getSelectionEnd(); in extractTextInternal()
2079 final int selectionEnd = mTextView.getSelectionEnd(); in sendUpdateSelection()
2101 final int selectionEnd = mTextView.getSelectionEnd(); in onDraw()
2666 final int selectionEnd = mTextView.getSelectionEnd(); in shouldOfferToShowSuggestions()
2725 mTextView.getSelectionEnd(), SuggestionSpan.class); in isCursorInsideEasyCorrectionSpan()
2958 final int end = mTextView.getSelectionEnd(); in shouldBlink()
[all …]
DEditText.java281 final int selectionEnd = getSelectionEnd(); in performStylingAction()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewAssertions.java113 int selectionEnd = textView.getSelectionEnd(); in hasInsertionPointerAtIndex()
171 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/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/span/
DLinkSpanTest.java91 assertThat(Selection.getSelectionEnd(textView.getText())).isEqualTo(0); in onClick_shouldClearSelection()
/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/base/telephony/java/android/telephony/
DPhoneNumberFormattingTextWatcher.java116 String formatted = reformat(s, Selection.getSelectionEnd(s)); in afterTextChanged()
/frameworks/base/core/java/com/android/internal/inputmethod/
DInputConnectionProtoDumper.java147 result.getSelectionEnd()); in buildGetSurroundingTextProto()
/frameworks/base/core/java/android/view/contentcapture/
DContentCaptureEvent.java327 private int getSelectionEnd() { in getSelectionEnd() method in ContentCaptureEvent
491 setSelectionIndex(event.getSelectionStart(), event.getSelectionEnd()); in mergeEvent()

12