/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
D | SurroundingTextTest.java | 39 assertThat(surroundingText1.getSelectionEnd(), is(0)); in testSurroundingTextBasicCreation() 45 assertThat(surroundingText2.getSelectionEnd(), is(-1)); in testSurroundingTextBasicCreation() 51 assertThat(surroundingText3.getSelectionEnd(), is(5)); in testSurroundingTextBasicCreation() 66 assertThat(surroundingText.getSelectionEnd(), is(1)); in testSurroundingTextWriteToParcel() 70 assertThat(surroundingTextFromParcel.getSelectionEnd(), is(1)); in testSurroundingTextWriteToParcel()
|
D | EditorInfoTest.java | 319 assertEquals(sourceSurroundingText.getSelectionEnd(), in initialSurroundingText_wrapIntoParcel_staysIntact() 320 targetSurroundingText.getSelectionEnd()); in initialSurroundingText_wrapIntoParcel_staysIntact() 431 assertEquals(expectSurroundingText.getSelectionEnd(), in assertExpectedTextLength() 432 surroundingText.getSelectionEnd()); in assertExpectedTextLength()
|
/frameworks/base/core/java/android/text/ |
D | Selection.java | 51 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/ |
D | PhoneNumberWatcherTest.java | 44 assertEquals(formatted1.length(), Selection.getSelectionEnd(number)); in testAppendChars() 57 assertEquals(formatted2.length(), Selection.getSelectionEnd(number)); in testAppendChars() 81 assertEquals(result1.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars() 92 assertEquals(result2.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars() 111 assertEquals(5, Selection.getSelectionEnd(number)); in testInsertChars() 123 assertEquals(12, Selection.getSelectionEnd(number)); in testInsertChars() 142 assertEquals(expected1.length(), Selection.getSelectionEnd(number)); in testStopFormatting() 155 assertEquals(5, Selection.getSelectionEnd(number)); in testStopFormatting() 168 assertEquals(9, Selection.getSelectionEnd(number)); in testStopFormatting() 186 assertEquals(expected1.length(), Selection.getSelectionEnd(number)); in testRestartFormatting() [all …]
|
/frameworks/base/core/java/android/text/method/ |
D | ArrowKeyMovementMethod.java | 39 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()
|
D | MultiTapKeyListener.java | 99 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()
|
D | BaseKeyListener.java | 351 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()
|
D | QwertyKeyListener.java | 100 int b = Selection.getSelectionEnd(content); in onKeyDown() 231 selEnd = Selection.getSelectionEnd(content); in onKeyDown() 285 selEnd = Selection.getSelectionEnd(content); in onKeyDown()
|
D | CharacterPickerDialog.java | 95 int selEnd = Selection.getSelectionEnd(mText); in replaceCharacterAndClose()
|
D | NumberKeyListener.java | 110 int b = Selection.getSelectionEnd(content); in onKeyDown()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | TextSnapshot.java | 103 public int getSelectionEnd() { in getSelectionEnd() method in TextSnapshot 107 return mSurroundingText.getSelectionEnd() + mSurroundingText.getOffset(); in getSelectionEnd()
|
D | BaseInputConnection.java | 250 int b = Selection.getSelectionEnd(content); in deleteSurroundingText() 420 int b = Selection.getSelectionEnd(content); in deleteSurroundingTextInCodePoints() 499 int b = Selection.getSelectionEnd(content); in getCursorCapsMode() 529 int b = Selection.getSelectionEnd(content); in getTextBeforeCursor() 560 int b = Selection.getSelectionEnd(content); in getSelectedText() 588 int b = Selection.getSelectionEnd(content); in getTextAfterCursor() 631 int selEnd = Selection.getSelectionEnd(content); in getSurroundingText() 887 b = Selection.getSelectionEnd(content); in replaceText()
|
D | EditorInfo.java | 743 mInitialSurroundingText.getSelectionEnd()); in getInitialTextBeforeCursor() 775 int selEnd = mInitialSurroundingText.getSelectionEnd(); in getInitialSelectedText() 812 mInitialSurroundingText.getSelectionEnd()); in getInitialTextAfterCursor() 863 int selEnd = mInitialSurroundingText.getSelectionEnd(); in getInitialSurroundingText()
|
D | SurroundingText.java | 112 public int getSelectionEnd() { in getSelectionEnd() method in SurroundingText
|
/frameworks/base/core/java/android/widget/ |
D | MultiAutoCompleteTextView.java | 96 int end = getSelectionEnd(); in performFiltering() 121 int end = getSelectionEnd(); in enoughToFilter() 193 int end = getSelectionEnd(); in replaceText()
|
D | TextViewOnReceiveContentListener.java | 108 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()
|
D | Editor.java | 678 int middle = (mTextView.getSelectionStart() + mTextView.getSelectionEnd()) / 2; in replace() 1365 int selectionEnd = mTextView.getSelectionEnd(); in touchPositionIsInSelection() 1432 final int end = mTextView.getSelectionEnd(); in startDragAndDrop() 1534 int selEnd = mTextView.getSelectionEnd(); in onFocusChanged() 1975 outText.selectionEnd = mTextView.getSelectionEnd(); in extractTextInternal() 2034 final int selectionEnd = mTextView.getSelectionEnd(); in sendUpdateSelection() 2053 final int selectionEnd = mTextView.getSelectionEnd(); in onDraw() 2563 final int selectionEnd = mTextView.getSelectionEnd(); in shouldOfferToShowSuggestions() 2622 mTextView.getSelectionEnd(), SuggestionSpan.class); in isCursorInsideEasyCorrectionSpan() 2855 final int end = mTextView.getSelectionEnd(); in shouldBlink() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | TextViewAssertions.java | 113 int selectionEnd = textView.getSelectionEnd(); in hasInsertionPointerAtIndex() 171 int selectionEnd = textView.getSelectionEnd();
|
/frameworks/ex/common/java/com/android/ex/editstyledtext/ |
D | EditStyledText.java | 228 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/ |
D | LinkSpanTest.java | 91 assertThat(Selection.getSelectionEnd(textView.getText())).isEqualTo(0); in onClick_shouldClearSelection()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | RecipientEditTextView.java | 760 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/ |
D | PhoneNumberFormattingTextWatcher.java | 111 String formatted = reformat(s, Selection.getSelectionEnd(s)); in afterTextChanged()
|
/frameworks/base/core/java/android/view/contentcapture/ |
D | ContentCaptureEvent.java | 327 private int getSelectionEnd() { in getSelectionEnd() method in ContentCaptureEvent 491 setSelectionIndex(event.getSelectionStart(), event.getSelectionEnd()); in mergeEvent()
|
/frameworks/base/core/java/com/android/internal/inputmethod/ |
D | EditableInputConnection.java | 284 int end = Selection.getSelectionEnd(content); in dumpDebug()
|
D | InputConnectionProtoDumper.java | 168 result.getSelectionEnd()); in buildGetSurroundingTextProto()
|