Home
last modified time | relevance | path

Searched refs:mSelectionEnd (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/method/
DEditorState.java60 public int mSelectionEnd = -1; field in EditorState
76 mSelectionEnd = -1; in setByString()
97 if (mSelectionStart != -1 || mSelectionEnd != -1) { in setByString()
101 mSelectionStart = mSelectionEnd = sb.length(); in setByString()
109 if (mSelectionEnd != -1) { in setByString()
113 mSelectionEnd = sb.length(); in setByString()
131 if (mSelectionStart == -1 || mSelectionEnd == -1) { in setByString()
132 if (mSelectionEnd != -1) { in setByString()
142 } else if (mSelectionStart > mSelectionEnd) { in setByString()
181 Assert.assertEquals(expected.mSelectionEnd, mSelectionEnd); in assertEquals()
DForwardDeleteTest.java62 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in forwardDelete()
70 state.mSelectionEnd = mTextView.getSelectionEnd(); in forwardDelete()
DBackspaceTest.java64 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in backspace()
72 state.mSelectionEnd = mTextView.getSelectionEnd(); in backspace()
/frameworks/base/core/java/android/view/inputmethod/
DCursorAnchorInfo.java55 private final int mSelectionEnd; field in CursorAnchorInfo
135 mSelectionEnd = source.readInt(); in CursorAnchorInfo()
157 dest.writeInt(mSelectionEnd); in writeToParcel()
203 if (mSelectionStart != that.mSelectionStart || mSelectionEnd != that.mSelectionEnd) { in equals()
242 + " mSelection=" + mSelectionStart + "," + mSelectionEnd in toString()
260 private int mSelectionEnd = -1; field in CursorAnchorInfo.Builder
278 mSelectionEnd = newEnd; in setSelectionRange()
401 mSelectionEnd = -1; in reset()
428 return new CursorAnchorInfo(builder.mSelectionStart, builder.mSelectionEnd, in create()
441 mSelectionEnd = selectionEnd; in CursorAnchorInfo()
[all …]
/frameworks/base/core/java/android/widget/
DSelectionActionModeHelper.java498 private int mSelectionEnd; field in SelectionActionModeHelper.SelectionTracker
517 mOriginalEnd = mSelectionEnd = selectionEnd; in onOriginalSelection()
548 mSelectionEnd = result.mEnd; in onClassifiedSelection()
549 mAllowReset = mSelectionStart != mOriginalStart || mSelectionEnd != mOriginalEnd; in onClassifiedSelection()
561 mSelectionEnd = selectionEnd; in onSelectionUpdated()
601 && textIndex >= mSelectionStart && textIndex <= mSelectionEnd in resetSelection()
607 mSelectionEnd = editor.getTextView().getSelectionEnd(); in resetSelection()
619 if (isSelectionStarted() && start == mSelectionStart && end == mSelectionEnd) { in onTextChanged()
633 return mSelectionStart >= 0 && mSelectionEnd >= 0 && mSelectionStart != mSelectionEnd; in isSelectionStarted()
660 mSelectionStart, mSelectionEnd, in run()
[all …]
DNumberPicker.java2389 private int mSelectionEnd; field in NumberPicker.SetSelectionCommand
2400 mSelectionEnd = selectionEnd; in post()
2418 mInputText.setSelection(mSelectionStart, mSelectionEnd); in run()
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTest.java431 assertEquals("The editor has selection", state.mSelectionStart, state.mSelectionEnd); in moveCursorToRightCursorableOffset()
434 state.mSelectionStart = state.mSelectionEnd = newOffset; in moveCursorToRightCursorableOffset()
438 assertEquals("The editor has selection", state.mSelectionStart, state.mSelectionEnd); in moveCursorToLeftCursorableOffset()
441 state.mSelectionStart = state.mSelectionEnd = newOffset; in moveCursorToLeftCursorableOffset()