Searched refs:selectionStart (Results 1 – 6 of 6) sorted by relevance
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | InputConnectionTestUtils.java | 47 int selectionStart = -1; in formatString() local 53 selectionStart = builder.length(); in formatString() 69 if (selectionStart < 0) { in formatString() 75 Selection.setSelection(builder, selectionStart, selectionEnd); in formatString()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | CursorAnchorInfoTest.java | 92 final int selectionStart = 30; in testBuilder() local 107 builder.setSelectionRange(selectionStart, selectionEnd) in testBuilder() 120 assertEquals(selectionStart, info.getSelectionStart()); in testBuilder() 145 assertEquals(selectionStart, info2.getSelectionStart()); in testBuilder() 172 assertEquals(selectionStart, info3.getSelectionStart()); in testBuilder() 398 final int selectionStart = 30; in testMatrixIsRequired() local 413 builder.setSelectionRange(selectionStart, selectionEnd) in testMatrixIsRequired()
|
D | ExtractedTextTest.java | 76 extractedText.selectionStart = EXPECTED_SELECTION_START; in createForTest() 94 assertEquals(EXPECTED_SELECTION_START, extractedText.selectionStart); in assertTestInstance()
|
D | BaseInputConnectionTest.java | 200 final int selectionStart = Selection.getSelectionStart(source); in createConnectionWithSelection() local 203 Selection.setSelection(editable, selectionStart, selectionEnd); in createConnectionWithSelection()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | BaseKeyListenerTest.java | 589 final boolean selectInTextView, final int selectionStart, final int selectionEnd) in prepTextViewSync() argument 596 selectionStart, selectionEnd); in prepTextViewSync()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 453 final int selectionStart = 10; in testAccessMovementMethod() local 461 selectionStart, selectionEnd); in testAccessMovementMethod() local 467 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); in testAccessMovementMethod() 472 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); in testAccessMovementMethod() 473 assertEquals(selectionStart, Selection.getSelectionEnd(mTextView.getText())); in testAccessMovementMethod() 478 selectionStart, selectionEnd); in testAccessMovementMethod() local 484 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); in testAccessMovementMethod() 489 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); in testAccessMovementMethod() 3140 int selectionStart = 5; in testSelection() local 3142 Selection.setSelection((Spannable) mTextView.getText(), selectionStart); in testSelection() local [all …]
|