/frameworks/base/core/java/android/text/ |
D | Selection.java | 52 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/ |
D | PhoneNumberWatcherTest.java | 46 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/ |
D | SurroundingTextTest.java | 43 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()
|
D | EditorInfoTest.java | 356 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/ |
D | ArrowKeyMovementMethod.java | 40 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()
|
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 | 353 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()
|
D | QwertyKeyListener.java | 100 int b = Selection.getSelectionEnd(content); in onKeyDown() 236 selEnd = Selection.getSelectionEnd(content); in onKeyDown() 290 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 | 270 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()
|
D | SurroundingText.java | 112 public int getSelectionEnd() { in getSelectionEnd() method in SurroundingText
|
D | EditorInfo.java | 981 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/ |
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 | 696 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 …]
|
D | EditText.java | 281 final int selectionEnd = getSelectionEnd(); in performStylingAction()
|
/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 | 116 String formatted = reformat(s, Selection.getSelectionEnd(s)); in afterTextChanged()
|
/frameworks/base/core/java/com/android/internal/inputmethod/ |
D | InputConnectionProtoDumper.java | 147 result.getSelectionEnd()); in buildGetSurroundingTextProto()
|
/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()
|