Searched refs:mSelectionStart (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/text/method/ |
D | EditorState.java | 59 public int mSelectionStart = -1; field in EditorState 75 mSelectionStart = -1; in setByString() 97 if (mSelectionStart != -1 || mSelectionEnd != -1) { in setByString() 101 mSelectionStart = mSelectionEnd = sb.length(); in setByString() 103 if (mSelectionStart != -1) { in setByString() 107 mSelectionStart = sb.length(); in setByString() 131 if (mSelectionStart == -1 || mSelectionEnd == -1) { in setByString() 135 } else if (mSelectionStart != -1) { in setByString() 142 } else if (mSelectionStart > mSelectionEnd) { in setByString() 180 Assert.assertEquals(expected.mSelectionStart, mSelectionStart); in assertEquals()
|
D | ForwardDeleteTest.java | 62 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in forwardDelete() 69 state.mSelectionStart = mTextView.getSelectionStart(); in forwardDelete()
|
D | BackspaceTest.java | 64 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in backspace() 71 state.mSelectionStart = mTextView.getSelectionStart(); in backspace()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | CursorAnchorInfo.java | 50 private final int mSelectionStart; field in CursorAnchorInfo 134 mSelectionStart = source.readInt(); in CursorAnchorInfo() 156 dest.writeInt(mSelectionStart); in writeToParcel() 203 if (mSelectionStart != that.mSelectionStart || mSelectionEnd != that.mSelectionEnd) { in equals() 242 + " mSelection=" + mSelectionStart + "," + mSelectionEnd in toString() 259 private int mSelectionStart = -1; field in CursorAnchorInfo.Builder 277 mSelectionStart = newStart; in setSelectionRange() 400 mSelectionStart = -1; in reset() 428 return new CursorAnchorInfo(builder.mSelectionStart, builder.mSelectionEnd, in create() 440 mSelectionStart = selectionStart; in CursorAnchorInfo() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | SelectionActionModeHelper.java | 497 private int mSelectionStart; field in SelectionActionModeHelper.SelectionTracker 516 mOriginalStart = mSelectionStart = selectionStart; in onOriginalSelection() 547 mSelectionStart = result.mStart; in onClassifiedSelection() 549 mAllowReset = mSelectionStart != mOriginalStart || mSelectionEnd != mOriginalEnd; in onClassifiedSelection() 560 mSelectionStart = selectionStart; in onSelectionUpdated() 601 && textIndex >= mSelectionStart && textIndex <= mSelectionEnd in resetSelection() 606 mSelectionStart = editor.getTextView().getSelectionStart(); 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 …]
|
D | NumberPicker.java | 2388 private int mSelectionStart; field in NumberPicker.SetSelectionCommand 2399 mSelectionStart = selectionStart; in post() 2418 mInputText.setSelection(mSelectionStart, mSelectionEnd); in run()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | StaticLayoutTest.java | 431 assertEquals("The editor has selection", state.mSelectionStart, state.mSelectionEnd); in moveCursorToRightCursorableOffset() 433 final int newOffset = layout.getOffsetToRightOf(state.mSelectionStart); in moveCursorToRightCursorableOffset() 434 state.mSelectionStart = state.mSelectionEnd = newOffset; in moveCursorToRightCursorableOffset() 438 assertEquals("The editor has selection", state.mSelectionStart, state.mSelectionEnd); in moveCursorToLeftCursorableOffset() 440 final int newOffset = layout.getOffsetToLeftOf(state.mSelectionStart); in moveCursorToLeftCursorableOffset() 441 state.mSelectionStart = state.mSelectionEnd = newOffset; in moveCursorToLeftCursorableOffset()
|