/aosp14/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
H A D | SurroundingTextTest.java | 42 assertThat(surroundingText1.getSelectionStart()).isEqualTo(0); in testSurroundingTextBasicCreation() 48 assertThat(surroundingText2.getSelectionStart()).isEqualTo(-1); in testSurroundingTextBasicCreation() 54 assertThat(surroundingText3.getSelectionStart()).isEqualTo(0); in testSurroundingTextBasicCreation() 69 assertThat(surroundingText.getSelectionStart()).isEqualTo(0); in testSurroundingTextWriteToParcel() 73 assertThat(surroundingTextFromParcel.getSelectionStart()).isEqualTo(0); in testSurroundingTextWriteToParcel()
|
H A D | EditorInfoTest.java | 354 assertEquals(sourceSurroundingText.getSelectionStart(), in initialSurroundingText_wrapIntoParcel_staysIntact() 355 targetSurroundingText.getSelectionStart()); in initialSurroundingText_wrapIntoParcel_staysIntact() 466 assertEquals(expectSurroundingText.getSelectionStart(), in assertExpectedTextLength() 467 surroundingText.getSelectionStart()); in assertExpectedTextLength()
|
/aosp14/frameworks/base/core/java/android/text/ |
H A D | Selection.java | 41 public static final int getSelectionStart(CharSequence text) { in getSelectionStart() method in Selection 91 int ostart = getSelectionStart(text); in setSelection() 200 int start = getSelectionStart(text); in moveUp() 271 int start = getSelectionStart(text); in moveDown() 307 int start = getSelectionStart(text); in moveLeft() 332 int start = getSelectionStart(text); in moveRight() 360 int start = getSelectionStart(text); in moveToParagraphStart() 387 int start = getSelectionStart(text); in moveToParagraphEnd()
|
/aosp14/frameworks/base/core/java/android/view/inputmethod/ |
H A D | TextSnapshot.java | 92 public int getSelectionStart() { in getSelectionStart() method in TextSnapshot 96 return mSurroundingText.getSelectionStart() + mSurroundingText.getOffset(); in getSelectionStart()
|
H A D | BaseInputConnection.java | 269 int a = Selection.getSelectionStart(content); in deleteSurroundingText() 439 int a = Selection.getSelectionStart(content); in deleteSurroundingTextInCodePoints() 520 int a = Selection.getSelectionStart(content); in getCursorCapsMode() 551 int a = Selection.getSelectionStart(content); in getTextBeforeCursor() 583 int a = Selection.getSelectionStart(content); in getSelectedText() 612 int a = Selection.getSelectionStart(content); in getTextAfterCursor() 651 int selStart = Selection.getSelectionStart(content); in getSurroundingText() 952 a = Selection.getSelectionStart(content); in replaceText()
|
H A D | SurroundingText.java | 100 public int getSelectionStart() { in getSelectionStart() method in SurroundingText
|
H A D | EditorInfo.java | 937 int selStart = Math.min(mInitialSurroundingText.getSelectionStart(), in getInitialTextBeforeCursor() 969 int selStart = mInitialSurroundingText.getSelectionStart(); in getInitialSelectedText() 1006 int selEnd = Math.max(mInitialSurroundingText.getSelectionStart(), in getInitialTextAfterCursor() 1057 int selStart = mInitialSurroundingText.getSelectionStart(); in getInitialSurroundingText()
|
/aosp14/frameworks/base/core/java/android/text/method/ |
H A D | BaseKeyListener.java | 379 int currentCursorOffset = Selection.getSelectionStart(content); in deleteUntilWordBoundary() 427 int selectionStart = Selection.getSelectionStart(content); in deleteSelection() 443 final int selectionStart = Selection.getSelectionStart(content); in deleteLineFromCursor() 458 final int line = layout.getLineForOffset(Selection.getSelectionStart(content)); in deleteLineFromCursor() 527 int selectionStart = Selection.getSelectionStart(content); in onKeyOther()
|
H A D | MultiTapKeyListener.java | 98 int a = Selection.getSelectionStart(content); in onKeyDown() 273 int st = Selection.getSelectionStart(buf); in run()
|
H A D | NumberKeyListener.java | 109 int a = Selection.getSelectionStart(content); in onKeyDown()
|
H A D | LinkMovementMethod.java | 121 int a = Selection.getSelectionStart(buffer); in action()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
H A D | TextViewAssertions.java | 112 int selectionStart = textView.getSelectionStart(); in hasInsertionPointerAtIndex() 170 int selectionStart = textView.getSelectionStart();
|
H A D | TextViewActions.java | 557 mTextView.getSelectionStart() : mTextView.getSelectionEnd(); in locateHandlePointsTextIndex()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | EditorCursorDragTest.java | 621 handleView, dragHandleStartX, dragHandleStartY, tv.getSelectionStart()); in testCursorDrag_snapDistance() 627 dragDownUntilLineChange(tv, cursorStartX, cursorStartY, tv.getSelectionStart()); in testCursorDrag_snapDistance() 635 … dragDownUntilLineChange(handleView, dragHandleStartX, dragHandleStartY, tv.getSelectionStart()); in testCursorDrag_snapDistance() 676 if (tv.getLayout().getLineForOffset(tv.getSelectionStart()) > startLine) { in dragDownUntilLineChange() 682 tv.getLayout().getLineForOffset(tv.getSelectionStart())).isGreaterThan(startLine); in dragDownUntilLineChange() 812 String textAfterActualPos = getTextAfterIndex(tv, tv.getSelectionStart(), 15); in assertCursorPosition() 814 + textAfterExpectedPos + "\". Cursor is at " + tv.getSelectionStart() in assertCursorPosition() 818 assertWithMessage(msg).that(tv.getSelectionStart()).isEqualTo(expectedPosition); in assertCursorPosition()
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | Editor.java | 1398 int selectionStart = mTextView.getSelectionStart(); in touchPositionIsInSelection() 1467 final int start = mTextView.getSelectionStart(); in startDragAndDrop() 1569 int selStart = mTextView.getSelectionStart(); in onFocusChanged() 2396 final int offset = mTextView.getSelectionStart(); in updateCursorPosition() 2916 final int start = mTextView.getSelectionStart(); in shouldBlink() 3943 int pos = mTextView.getSelectionStart(); in getSortedSuggestionSpans() 4288 return (mTextView.getSelectionStart() + mTextView.getSelectionStart()) / 2; in getTextOffset() 5404 offset = mTextView.getSelectionStart(); in obtainMagnifierShowCoordinates() 5408 offset = mTextView.getSelectionStart(); in obtainMagnifierShowCoordinates() 5913 int start = mTextView.getSelectionStart(); in touchThrough() [all …]
|
H A D | EditText.java | 245 final int selectionStart = getSelectionStart(); in performStylingAction()
|
H A D | TextView.java | 6745 start = getSelectionStart(); in onSaveInstanceState() 7286 int start = getSelectionStart(); in setTextKeepState() 8478 curs = getSelectionStart(); in onPreDraw() 11775 public int getSelectionStart() { in getSelectionStart() method 11776 return Selection.getSelectionStart(getText()); in getSelectionStart() 11805 final int start = getSelectionStart(); in getSelectionStartTransformed() 11840 final int start = getSelectionStart(); in getSelectedText() 12436 int curs = getSelectionStart(); in updateAfterEdit() 14561 final int selStart = getSelectionStart(); in onTextContextMenuItem() 15035 && getSelectionStart() >= 0 in canPaste() [all …]
|
H A D | TextViewOnReceiveContentListener.java | 118 final int selStart = Selection.getSelectionStart(editable); in replaceSelection()
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
H A D | EditTextCursorMovementPerfTest.java | 106 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in testCursorMovement()
|
H A D | EditTextBackspacePerfTest.java | 106 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in prepareTextForBackspace()
|
/aosp14/frameworks/base/core/java/android/view/contentcapture/ |
H A D | ContentCaptureEvent.java | 323 private int getSelectionStart() { in getSelectionStart() method in ContentCaptureEvent 491 setSelectionIndex(event.getSelectionStart(), event.getSelectionEnd()); in mergeEvent()
|
/aosp14/frameworks/base/core/java/com/android/internal/inputmethod/ |
H A D | InputConnectionProtoDumper.java | 166 result.getSelectionStart()); in buildGetSurroundingTextProto()
|
H A D | EditableInputConnection.java | 350 int start = Selection.getSelectionStart(content); in dumpDebug()
|
/aosp14/frameworks/base/core/java/android/transition/ |
H A D | ChangeText.java | 134 textview.getSelectionStart()); in captureValues()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/text/method/ |
H A D | ForwardDeleteTest.java | 69 state.mSelectionStart = mTextView.getSelectionStart(); in forwardDelete()
|