Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
H A DSurroundingTextTest.java38 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 DEditorInfoTest.java317 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 DCursorAnchorInfoCompatWrapper.java65 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 DSelection.java40 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 DPlainTextEditText.java42 final int selectionStartPrePaste = getSelectionStart(); in onTextContextMenuItem()
50 int selectionStart = getSelectionStart(); in onTextContextMenuItem()
/aosp12/frameworks/ex/common/java/com/android/ex/editstyledtext/
H A DEditStyledText.java227 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 DBaseInputConnection.java249 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 DEditorInfo.java734 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 DSurroundingText.java100 public int getSelectionStart() { in getSelectionStart() method in SurroundingText
/aosp12/frameworks/base/core/java/android/text/method/
H A DBaseKeyListener.java377 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 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.java117 int a = Selection.getSelectionStart(buffer); in action()
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DTextViewAssertions.java112 int selectionStart = textView.getSelectionStart(); in hasInsertionPointerAtIndex()
170 int selectionStart = textView.getSelectionStart();
/aosp12/frameworks/base/core/java/android/widget/
H A DEditor.java1320 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 DTextView.java5975 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 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()
/aosp12/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
H A DTouchableMovementMethod.java62 lastEventResult = Selection.getSelectionStart(buffer) != -1; in onTouchEvent()
/aosp12/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/span/
H A DLinkSpanTest.java90 assertThat(Selection.getSelectionStart(textView.getText())).isEqualTo(0); in onClick_shouldClearSelection()
/aosp12/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()
/aosp12/frameworks/base/core/java/android/view/contentcapture/
H A DContentCaptureEvent.java315 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 DEditableInputConnection.java277 int start = Selection.getSelectionStart(content); in dumpDebug()
/aosp12/frameworks/base/core/java/android/util/imetracing/
H A DInputConnectionHelper.java165 result.getSelectionStart()); in buildGetSurroundingTextProto()
/aosp12/frameworks/base/core/java/android/transition/
H A DChangeText.java134 textview.getSelectionStart()); in captureValues()

12