Searched refs:mSelectionStart (Results 1 – 9 of 9) sorted by relevance
/aosp12/frameworks/base/core/tests/coretests/src/android/text/method/ |
H A 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()
|
H A D | ForwardDeleteTest.java | 62 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in forwardDelete() 69 state.mSelectionStart = mTextView.getSelectionStart(); in forwardDelete()
|
H A D | BackspaceTest.java | 64 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in backspace() 71 state.mSelectionStart = mTextView.getSelectionStart(); in backspace()
|
/aosp12/frameworks/base/core/java/android/view/inputmethod/ |
H A 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() 417 mSelectionStart = builder.mSelectionStart; in CursorAnchorInfo() 447 return mSelectionStart; in getSelectionStart()
|
H A D | SurroundingText.java | 45 private final int mSelectionStart; field in SurroundingText 79 mSelectionStart = selectionStart; in SurroundingText() 101 return mSelectionStart; in getSelectionStart() 130 out.writeInt(mSelectionStart); in writeToParcel()
|
/aosp12/frameworks/base/core/java/android/widget/ |
H A D | SelectionActionModeHelper.java | 532 private int mSelectionStart; field in SelectionActionModeHelper.SelectionTracker 551 mOriginalStart = mSelectionStart = selectionStart; in onOriginalSelection() 583 mSelectionStart = result.mStart; in onClassifiedSelection() 596 mSelectionStart = selectionStart; in onSelectionUpdated() 645 mSelectionStart = sortedSelectionIndices[0]; in resetSelection() 672 return mSelectionStart >= 0 && mSelectionEnd >= 0 && mSelectionStart != mSelectionEnd; in isSelectionStarted() 699 mSelectionStart, mSelectionEnd, in run() 702 mSelectionStart = mSelectionEnd = -1; in run() 1073 private int mSelectionStart; field in SelectionActionModeHelper.TextClassificationHelper 1113 mSelectionStart = selectionStart; in init() [all …]
|
H A D | NumberPicker.java | 2389 private int mSelectionStart; field in NumberPicker.SetSelectionCommand 2400 mSelectionStart = selectionStart; in post() 2419 mInputText.setSelection(mSelectionStart, mSelectionEnd); in run()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/text/ |
H A 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()
|
/aosp12/frameworks/base/boot/hiddenapi/ |
H A D | hiddenapi-max-target-o.txt | 63716 Landroid/view/inputmethod/CursorAnchorInfo$Builder;->mSelectionStart:I 63730 Landroid/view/inputmethod/CursorAnchorInfo;->mSelectionStart:I 71704 Landroid/widget/NumberPicker$SetSelectionCommand;->mSelectionStart:I 72945 Landroid/widget/SelectionActionModeHelper$SelectionTracker;->mSelectionStart:I 72982 Landroid/widget/SelectionActionModeHelper$TextClassificationHelper;->mSelectionStart:I
|