Home
last modified time | relevance | path

Searched refs:mSelectionStart (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/text/src/android/text/method/cts/
DEditorState.java56 public int mSelectionStart = -1; field in EditorState
85 mSelectionStart = -1; in setByString()
107 if (mSelectionStart != -1 || mSelectionEnd != -1) { in setByString()
111 mSelectionStart = mSelectionEnd = sb.length(); in setByString()
113 if (mSelectionStart != -1) { in setByString()
117 mSelectionStart = sb.length(); in setByString()
141 if (mSelectionStart == -1 || mSelectionEnd == -1) { in setByString()
145 } else if (mSelectionStart != -1) { in setByString()
152 } else if (mSelectionStart > mSelectionEnd) { in setByString()
183 Assert.assertEquals(expected.mSelectionStart, mSelectionStart); in assertEquals()
DForwardDeleteTest.java42 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in forwardDelete()
57 state.mSelectionStart = mTextView.getSelectionStart(); in forwardDelete()
DBackspaceTest.java42 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in backspace()
57 state.mSelectionStart = mTextView.getSelectionStart(); in backspace()
/cts/tests/tests/text/src/android/text/cts/
DStaticLayoutTest.java988 assertEquals("The editor has selection", state.mSelectionStart, state.mSelectionEnd); in moveCursorToRightCursorableOffset()
991 final int newOffset = layout.getOffsetToRightOf(state.mSelectionStart); in moveCursorToRightCursorableOffset()
992 state.mSelectionStart = state.mSelectionEnd = newOffset; in moveCursorToRightCursorableOffset()
996 assertEquals("The editor has selection", state.mSelectionStart, state.mSelectionEnd); in moveCursorToLeftCursorableOffset()
999 final int newOffset = layout.getOffsetToLeftOf(state.mSelectionStart); in moveCursorToLeftCursorableOffset()
1000 state.mSelectionStart = state.mSelectionEnd = newOffset; in moveCursorToLeftCursorableOffset()
/cts/tools/dex-tools/dex/
Dclasses.out.dex95454 public int mSelectionStart