Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/
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()
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()
/frameworks/base/core/java/android/text/
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()
/frameworks/base/core/java/android/view/inputmethod/
DTextSnapshot.java92 public int getSelectionStart() { in getSelectionStart() method in TextSnapshot
96 return mSurroundingText.getSelectionStart() + mSurroundingText.getOffset(); in getSelectionStart()
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()
DSurroundingText.java100 public int getSelectionStart() { in getSelectionStart() method in SurroundingText
DEditorInfo.java980 int selStart = Math.min(mInitialSurroundingText.getSelectionStart(), in getInitialTextBeforeCursor()
1012 int selStart = mInitialSurroundingText.getSelectionStart(); in getInitialSelectedText()
1049 int selEnd = Math.max(mInitialSurroundingText.getSelectionStart(), in getInitialTextAfterCursor()
1100 int selStart = mInitialSurroundingText.getSelectionStart(); in getInitialSurroundingText()
/frameworks/base/core/java/android/text/method/
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()
DMultiTapKeyListener.java98 int a = Selection.getSelectionStart(content); in onKeyDown()
273 int st = Selection.getSelectionStart(buf); in run()
DNumberKeyListener.java109 int a = Selection.getSelectionStart(content); in onKeyDown()
DLinkMovementMethod.java121 int a = Selection.getSelectionStart(buffer); in action()
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java227 int oldSelStart = Selection.getSelectionStart(getText()); in onTouchEvent()
235 mManager.showSoftKey(Selection.getSelectionStart(getText()), in onTouchEvent()
280 boolean selection = getSelectionStart() != getSelectionEnd(); in onTextContextMenuItem()
1052 uri, mEST.getMaxImageWidthPx()), mEST.getSelectionStart()); in insertImageFromUri()
1057 resId, mEST.getMaxImageWidthDip()), mEST.getSelectionStart()); in insertImageFromResId()
1064 int curpos = mEST.getSelectionStart(); in insertHorizontalLine()
1299 public int getSelectionStart() { in getSelectionStart() 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()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewAssertions.java112 int selectionStart = textView.getSelectionStart(); in hasInsertionPointerAtIndex()
170 int selectionStart = textView.getSelectionStart();
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DTouchableMovementMethod.java62 lastEventResult = Selection.getSelectionStart(buffer) != -1; in onTouchEvent()
/frameworks/base/core/tests/coretests/src/android/widget/
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()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/span/
DLinkSpanTest.java90 assertThat(Selection.getSelectionStart(textView.getText())).isEqualTo(0); in onClick_shouldClearSelection()
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DEditTextCursorMovementPerfTest.java106 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in testCursorMovement()
DEditTextBackspacePerfTest.java106 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in prepareTextForBackspace()
/frameworks/base/core/java/android/widget/
DEditor.java696 int middle = (mTextView.getSelectionStart() + mTextView.getSelectionEnd()) / 2; in replace()
1401 int selectionStart = mTextView.getSelectionStart(); in touchPositionIsInSelection()
1470 final int start = mTextView.getSelectionStart(); in startDragAndDrop()
1572 int selStart = mTextView.getSelectionStart(); in onFocusChanged()
2019 outText.selectionStart = mTextView.getSelectionStart(); in extractTextInternal()
2078 final int selectionStart = mTextView.getSelectionStart(); in sendUpdateSelection()
2100 final int selectionStart = mTextView.getSelectionStart(); in onDraw()
2435 final int offset = mTextView.getSelectionStart(); in updateCursorPosition()
2665 final int selectionStart = mTextView.getSelectionStart(); in shouldOfferToShowSuggestions()
2724 SuggestionSpan[] suggestionSpans = spannable.getSpans(mTextView.getSelectionStart(), in isCursorInsideEasyCorrectionSpan()
[all …]
DEditText.java280 final int selectionStart = getSelectionStart(); in performStylingAction()
/frameworks/base/core/java/com/android/internal/inputmethod/
DInputConnectionProtoDumper.java145 result.getSelectionStart()); in buildGetSurroundingTextProto()
DEditableInputConnection.java338 int start = Selection.getSelectionStart(content); in dumpDebug()
/frameworks/base/core/java/android/view/contentcapture/
DContentCaptureEvent.java323 private int getSelectionStart() { in getSelectionStart() method in ContentCaptureEvent
491 setSelectionIndex(event.getSelectionStart(), event.getSelectionEnd()); in mergeEvent()
/frameworks/base/core/java/android/transition/
DChangeText.java136 textview.getSelectionStart()); in captureValues()
/frameworks/base/core/tests/coretests/src/android/text/method/
DForwardDeleteTest.java69 state.mSelectionStart = mTextView.getSelectionStart(); in forwardDelete()

12