Home
last modified time | relevance | path

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

/cts/tests/tests/view/src/android/view/inputmethod/cts/util/
DInputConnectionTestUtils.java46 int selectionStart = -1; in formatString() local
52 selectionStart = builder.length(); in formatString()
68 if (selectionStart < 0) { in formatString()
74 Selection.setSelection(builder, selectionStart, selectionEnd); in formatString()
/cts/tests/tests/view/src/android/view/inputmethod/cts/
DExtractedTextTest.java30 extractedText.selectionStart = 2; in testWriteToParcel()
40 assertEquals(extractedText.selectionStart, target.selectionStart); in testWriteToParcel()
DBaseInputConnectionTest.java272 final int selectionStart = Selection.getSelectionStart(source); in createDummyConnectionWithSelection() local
275 Selection.setSelection(editable, selectionStart, selectionEnd); in createDummyConnectionWithSelection()
/cts/tests/tests/text/src/android/text/method/cts/
DBaseKeyListenerTest.java550 final boolean selectInTextView, final int selectionStart, final int selectionEnd) { in prepTextViewSync() argument
557 selectionStart, selectionEnd); in prepTextViewSync()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java249 final int selectionStart = 10; in testAccessMovementMethod() local
258 selectionStart, selectionEnd); in testAccessMovementMethod()
265 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); in testAccessMovementMethod()
270 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); in testAccessMovementMethod()
271 assertEquals(selectionStart, Selection.getSelectionEnd(mTextView.getText())); in testAccessMovementMethod()
277 selectionStart, selectionEnd); in testAccessMovementMethod()
284 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); in testAccessMovementMethod()
289 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); in testAccessMovementMethod()
2547 int selectionStart = 5;
2549 Selection.setSelection((Spannable) mTextView.getText(), selectionStart);
[all …]