/aosp12/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
H A D | SurroundingTextTest.java | 38 assertThat(surroundingText1.getSelectionStart(), is(0)); in testSurroundingTextBasicCreation() 44 assertThat(surroundingText2.getSelectionStart(), is(-1)); in testSurroundingTextBasicCreation() 50 assertThat(surroundingText3.getSelectionStart(), is(0)); in testSurroundingTextBasicCreation() 65 assertThat(surroundingText.getSelectionStart(), is(0)); in testSurroundingTextWriteToParcel() 69 assertThat(surroundingTextFromParcel.getSelectionStart(), is(0)); in testSurroundingTextWriteToParcel()
|
H A D | EditorInfoTest.java | 317 assertEquals(sourceSurroundingText.getSelectionStart(), in initialSurroundingText_wrapIntoParcel_staysIntact() 318 targetSurroundingText.getSelectionStart()); in initialSurroundingText_wrapIntoParcel_staysIntact() 429 assertEquals(expectSurroundingText.getSelectionStart(), in assertExpectedTextLength() 430 surroundingText.getSelectionStart()); in assertExpectedTextLength()
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
H A D | CursorAnchorInfoCompatWrapper.java | 65 public int getSelectionStart() { in getSelectionStart() method in CursorAnchorInfoCompatWrapper 126 public int getSelectionStart() { in getSelectionStart() method in CursorAnchorInfoCompatWrapper.RealWrapper 127 return mInstance.getSelectionStart(); in getSelectionStart()
|
/aosp12/frameworks/base/core/java/android/text/ |
H A D | Selection.java | 40 public static final int getSelectionStart(CharSequence text) { in getSelectionStart() method in Selection 90 int ostart = getSelectionStart(text); in setSelection() 199 int start = getSelectionStart(text); in moveUp() 270 int start = getSelectionStart(text); in moveDown() 306 int start = getSelectionStart(text); in moveLeft() 331 int start = getSelectionStart(text); in moveRight()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/ |
H A D | PlainTextEditText.java | 42 final int selectionStartPrePaste = getSelectionStart(); in onTextContextMenuItem() 50 int selectionStart = getSelectionStart(); in onTextContextMenuItem()
|
/aosp12/frameworks/ex/common/java/com/android/ex/editstyledtext/ |
H A D | EditStyledText.java | 227 int oldSelStart = Selection.getSelectionStart(getText()); in onTouchEvent() 280 boolean selection = getSelectionStart() != getSelectionEnd(); in onTextContextMenuItem() 1064 int curpos = mEST.getSelectionStart(); in insertHorizontalLine() 1299 public int getSelectionStart() { in getSelectionStart() method in EditStyledText.EditorManager 1559 mCurStart = mEST.getSelectionStart(); in selectAll() 1598 int currpos = mEST.getSelectionStart(); in unsetSelect() 1607 mCurStart = mEST.getSelectionStart(); in setSelectStartPos() 1613 setEndPos(mEST.getSelectionStart()); in setSelectEndPos() 1681 int current = mEST.getSelectionStart(); in setLineStyledTextSpan() 2371 if (widget.getSelectionStart() == mManager.getSelectionStart()) { in getEndPos() [all …]
|
/aosp12/frameworks/base/core/java/android/view/inputmethod/ |
H A D | BaseInputConnection.java | 249 int a = Selection.getSelectionStart(content); in deleteSurroundingText() 419 int a = Selection.getSelectionStart(content); in deleteSurroundingTextInCodePoints() 498 int a = Selection.getSelectionStart(content); in getCursorCapsMode() 528 int a = Selection.getSelectionStart(content); in getTextBeforeCursor() 559 int a = Selection.getSelectionStart(content); in getSelectedText() 587 int a = Selection.getSelectionStart(content); in getTextAfterCursor() 630 int selStart = Selection.getSelectionStart(content); in getSurroundingText() 886 a = Selection.getSelectionStart(content); in replaceText()
|
H A D | EditorInfo.java | 734 int selStart = Math.min(mInitialSurroundingText.getSelectionStart(), in getInitialTextBeforeCursor() 766 int selStart = mInitialSurroundingText.getSelectionStart(); in getInitialSelectedText() 803 int selEnd = Math.max(mInitialSurroundingText.getSelectionStart(), in getInitialTextAfterCursor() 854 int selStart = mInitialSurroundingText.getSelectionStart(); in getInitialSurroundingText()
|
H A D | SurroundingText.java | 100 public int getSelectionStart() { in getSelectionStart() method in SurroundingText
|
/aosp12/frameworks/base/core/java/android/text/method/ |
H A D | BaseKeyListener.java | 377 int currentCursorOffset = Selection.getSelectionStart(content); in deleteUntilWordBoundary() 425 int selectionStart = Selection.getSelectionStart(content); in deleteSelection() 443 final int line = layout.getLineForOffset(Selection.getSelectionStart(content)); in deleteLine() 508 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 | 117 int a = Selection.getSelectionStart(buffer); in action()
|
/aosp12/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();
|
/aosp12/frameworks/base/core/java/android/widget/ |
H A D | Editor.java | 1320 int selectionStart = mTextView.getSelectionStart(); in touchPositionIsInSelection() 1387 final int start = mTextView.getSelectionStart(); in startDragAndDrop() 1489 int selStart = mTextView.getSelectionStart(); in onFocusChanged() 2299 final int offset = mTextView.getSelectionStart(); in updateCursorPosition() 2809 final int start = mTextView.getSelectionStart(); in shouldBlink() 3701 int pos = mTextView.getSelectionStart(); in getSortedSuggestionSpans() 4046 return (mTextView.getSelectionStart() + mTextView.getSelectionStart()) / 2; in getTextOffset() 5159 offset = mTextView.getSelectionStart(); in obtainMagnifierShowCoordinates() 5163 offset = mTextView.getSelectionStart(); in obtainMagnifierShowCoordinates() 5660 int start = mTextView.getSelectionStart(); in touchThrough() [all …]
|
H A D | TextView.java | 5975 start = getSelectionStart(); in onSaveInstanceState() 6477 int start = getSelectionStart(); in setTextKeepState() 7640 curs = getSelectionStart(); in onPreDraw() 7922 final int selStart = getSelectionStart(); in getUpdatedHighlightPath() 8145 int selStart = getSelectionStart(); in getFocusedRect() 10127 int start = getSelectionStart(); in moveCursorToVisibleOffset() 10249 public int getSelectionStart() { in getSelectionStart() method in TextView.Drawables 10276 final int start = getSelectionStart(); in getSelectedText() 10866 int curs = getSelectionStart(); in updateAfterEdit() 12994 && getSelectionStart() >= 0 in canPaste() [all …]
|
/aosp12/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()
|
/aosp12/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
H A D | TouchableMovementMethod.java | 62 lastEventResult = Selection.getSelectionStart(buffer) != -1; in onTouchEvent()
|
/aosp12/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/span/ |
H A D | LinkSpanTest.java | 90 assertThat(Selection.getSelectionStart(textView.getText())).isEqualTo(0); in onClick_shouldClearSelection()
|
/aosp12/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()
|
/aosp12/frameworks/base/core/java/android/view/contentcapture/ |
H A D | ContentCaptureEvent.java | 315 private int getSelectionStart() { in getSelectionStart() method in ContentCaptureEvent 483 setSelectionIndex(event.getSelectionStart(), event.getSelectionEnd()); in mergeEvent()
|
/aosp12/frameworks/base/core/java/com/android/internal/widget/ |
H A D | EditableInputConnection.java | 277 int start = Selection.getSelectionStart(content); in dumpDebug()
|
/aosp12/frameworks/base/core/java/android/util/imetracing/ |
H A D | InputConnectionHelper.java | 165 result.getSelectionStart()); in buildGetSurroundingTextProto()
|
/aosp12/frameworks/base/core/java/android/transition/ |
H A D | ChangeText.java | 134 textview.getSelectionStart()); in captureValues()
|