Home
last modified time | relevance | path

Searched refs:getSelectionStart (Results 1 – 25 of 39) sorted by relevance

12

/aosp14/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
H A DSurroundingTextTest.java42 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 DEditorInfoTest.java354 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 DSelection.java41 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 DTextSnapshot.java92 public int getSelectionStart() { in getSelectionStart() method in TextSnapshot
96 return mSurroundingText.getSelectionStart() + mSurroundingText.getOffset(); in getSelectionStart()
H A DBaseInputConnection.java269 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 DSurroundingText.java100 public int getSelectionStart() { in getSelectionStart() method in SurroundingText
H A DEditorInfo.java937 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 DBaseKeyListener.java379 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 DMultiTapKeyListener.java98 int a = Selection.getSelectionStart(content); in onKeyDown()
273 int st = Selection.getSelectionStart(buf); in run()
H A DNumberKeyListener.java109 int a = Selection.getSelectionStart(content); in onKeyDown()
H A DLinkMovementMethod.java121 int a = Selection.getSelectionStart(buffer); in action()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DTextViewAssertions.java112 int selectionStart = textView.getSelectionStart(); in hasInsertionPointerAtIndex()
170 int selectionStart = textView.getSelectionStart();
H A DTextViewActions.java557 mTextView.getSelectionStart() : mTextView.getSelectionEnd(); in locateHandlePointsTextIndex()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/
H A DEditorCursorDragTest.java621 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 DEditor.java1398 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 DEditText.java245 final int selectionStart = getSelectionStart(); in performStylingAction()
H A DTextView.java6745 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 DTextViewOnReceiveContentListener.java118 final int selStart = Selection.getSelectionStart(editable); in replaceSelection()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/widget/
H A DEditTextCursorMovementPerfTest.java106 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in testCursorMovement()
H A DEditTextBackspacePerfTest.java106 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in prepareTextForBackspace()
/aosp14/frameworks/base/core/java/android/view/contentcapture/
H A DContentCaptureEvent.java323 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 DInputConnectionProtoDumper.java166 result.getSelectionStart()); in buildGetSurroundingTextProto()
H A DEditableInputConnection.java350 int start = Selection.getSelectionStart(content); in dumpDebug()
/aosp14/frameworks/base/core/java/android/transition/
H A DChangeText.java134 textview.getSelectionStart()); in captureValues()
/aosp14/frameworks/base/core/tests/coretests/src/android/text/method/
H A DForwardDeleteTest.java69 state.mSelectionStart = mTextView.getSelectionStart(); in forwardDelete()

12