/cts/tests/tests/text/src/android/text/cts/ |
D | SelectionParagraphTest.java | 67 Selection.setSelection(spannable, 0); in testMoveParagraphNext_from_beginning_cursor() 84 Selection.setSelection(spannable, LOREM_IPSUM.length() / 2); in testMoveParagraphNext_from_middle_cursor() 101 Selection.setSelection(spannable, LOREM_IPSUM.length()); in testMoveParagraphNext_from_paragraph_bounds_cursor() 123 Selection.setSelection(spannable, spannable.length()); in testMoveParagraphNext_from_end_cursor() 137 Selection.setSelection(spannable, 0, LOREM_IPSUM.length() / 2); in testMoveParagraphNext_from_beginning_middle_selection() 154 Selection.setSelection(spannable, 0, LOREM_IPSUM.length()); in testMoveParagraphNext_from_beginning_paragraph_bounds_selection() 171 Selection.setSelection(spannable, 0, spannable.length()); in testMoveParagraphNext_from_beginning_end_selection() 185 Selection.setSelection(spannable, LOREM_IPSUM.length() / 3, 2 * LOREM_IPSUM.length() / 3); in testMoveParagraphNext_from_middle_middle_selection() 199 Selection.setSelection(spannable, LOREM_IPSUM.length() / 2, LOREM_IPSUM.length()); in testMoveParagraphNext_from_middle_paragraph_bounds_selection() 213 Selection.setSelection(spannable, LOREM_IPSUM.length() / 2, spannable.length()); in testMoveParagraphNext_from_middle_end_selection() [all …]
|
D | SelectionTest.java | 49 Selection.setSelection(builder, 3, 8); in testGetSelectionStart() 52 Selection.setSelection(builder, 3, 9); in testGetSelectionStart() 55 Selection.setSelection(builder, 5, 7); in testGetSelectionStart() 67 Selection.setSelection(builder, 0, 10); in testGetSelectionEnd() 70 Selection.setSelection(builder, 1, 8); in testGetSelectionEnd() 73 Selection.setSelection(builder, 2, 8); in testGetSelectionEnd() 86 Selection.setSelection(builder, 3, 6); in testSetSelection1() 90 Selection.setSelection(builder, 3, 7); in testSetSelection1() 94 Selection.setSelection(builder, 3, 7); in testSetSelection1() 98 Selection.setSelection(builder, 6, 2); in testSetSelection1() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewStyleShortcutTest.java | 183 et.setSelection(1, 9); in testStyleShortcutEnabled() 211 et.setSelection(1, 9); in testBold() 229 et.setSelection(1, 4); in testBoldOnlySelectedRegion() 234 et.setSelection(7, 10); in testBoldOnlySelectedRegion() 253 et.setSelection(1, 5); in testBoldSelectIntersectedRegion() 259 et.setSelection(3, 9); in testBoldSelectIntersectedRegion() 279 et.setSelection(3, 5); in testBoldSelectCoveredRegion() 285 et.setSelection(1, 9); in testBoldSelectCoveredRegion() 305 et.setSelection(1, 9); in testBoldSelectSubRegion() 312 et.setSelection(3, 5); in testBoldSelectSubRegion() [all …]
|
D | TextViewHandwritingGestureTest.java | 273 mEditText.setSelection(2); in performSelectGesture_betweenWords_shouldFallback() 294 mEditText.setSelection(2); in performSelectGesture_noFallback_shouldFail() 316 mEditText.setSelection(2); in previewSelectGesture_betweenWords_shouldFail() 607 mEditText.setSelection(2); in performDeleteGesture_betweenWords_shouldFallback() 628 mEditText.setSelection(2); in performDeleteGesture_noFallback_shouldFail() 650 mEditText.setSelection(2); in previewDeleteGesture_betweenWords_shouldFail() 807 mEditText.setSelection(6); in performInsertGesture_endOfText_insertTextFiltered_shouldFallback() 836 mEditText.setSelection(3); in performInsertGesture_aboveFirstLine_shouldFallback() 860 mEditText.setSelection(4); in performInsertGesture_betweenLines_shouldFallback() 887 mEditText.setSelection(11); in performInsertGesture_belowLastLine_shouldFallback() [all …]
|
D | AbsSpinnerTest.java | 108 mAbsSpinner.setSelection(1, true); in testSetSelectionIntBoolean() 111 mAbsSpinner.setSelection(mAbsSpinner.getCount() - 1, false); in testSetSelectionIntBoolean() 131 mAbsSpinner.setSelection(1); in testSetSelectionInt() 134 mAbsSpinner.setSelection(mAbsSpinner.getCount() - 1); in testSetSelectionInt() 156 mAbsSpinner.setSelection(1); in testAccessAdapter() 243 absSpinner.setSelection(1, true); in testGetSelectedView() 263 mAbsSpinner.setSelection(1); in testOnSaveAndRestoreInstanceState()
|
D | EditTextTest.java | 167 mEditText1.setSelection(position); in testSetSelectionIndex() 172 mEditText1.setSelection(position); in testSetSelectionIndex() 181 mEditText1.setSelection(-1); in testSetSelectionIndexBeforeFirst() 188 mEditText1.setSelection(mEditText1.getText().length() + 1); in testSetSelectionIndexAfterLast() 197 mEditText1.setSelection(start, end); in testSetSelectionStartEnd() 203 mEditText1.setSelection(start, end); in testSetSelectionStartEnd() 209 mEditText1.setSelection(start, end); in testSetSelectionStartEnd() 218 mEditText1.setSelection(-5, -1); in testSetSelectionStartEndBeforeFirst() 225 mEditText1.setSelection(5, mEditText1.getText().length() + 1); in testSetSelectionStartEndAfterLast() 254 mEditText1.setSelection(start, end); in testExtendSelection() [all …]
|
D | MultiAutoCompleteTextViewTest.java | 113 m.setSelection(0, c.length()); in setText() 191 multiAutoCompleteTextView.setSelection(0, 12); in testPerformFiltering() 211 multiAutoCompleteTextView.setSelection(0, text.length()); in testReplaceText()
|
D | AdapterViewTest.java | 323 () -> mAdapterView.setSelection(1)); in testAccessOnItemSelectedListener() 331 () -> mAdapterView.setSelection(FRUIT.length - 1)); in testAccessOnItemSelectedListener() 416 mAdapterView.setSelection(expectedId); in testGetSelected() 423 mAdapterView.setSelection(expectedId); in testGetSelected() 429 mAdapterView.setSelection(expectedId); in testGetSelected()
|
D | ListViewTest.java | 483 () -> mListView.setSelection(1)); in testSetSelection() 505 () -> mListView.setSelection(2)); in testPerformItemClick() 536 mListView.setSelection(positionToTest); in testSaveAndRestoreInstanceState_positionIsRestored() 540 mListView.setSelection(positionToTest - 1); in testSaveAndRestoreInstanceState_positionIsRestored() 560 () -> mListView.setSelection(1)); in testDispatchKeyEvent() 713 mListView.setSelection(1); in testNoSelectableItems() 757 () -> mListView.setSelection(800)); in testFullDetachHeaderViewOnRelayout() 815 () -> mListView.setSelection(800)); in testFullyDetachUnusedViewOnReLayout() 820 () -> mListView.setSelection(0)); in testFullyDetachUnusedViewOnReLayout() 1018 () -> listView.setSelection(targetPosition)); in testJumpDrawables() [all …]
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | ArrowKeyMovementMethodTest.java | 214 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeUp() 227 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeUp() 251 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeUp() 264 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeUp() 299 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeDown() 312 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeDown() 336 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeDown() 349 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeDown() 359 Selection.setSelection(mEditable, END_OF_ALL_TEXT - 1); in testOnKeyDownWithKeyCodeDown() 385 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeLeft() [all …]
|
D | CharacterPickerDialogTest.java | 94 Selection.setSelection(text, 0, 0); in testOnItemClick() 104 Selection.setSelection(text, 2, 2); in testOnItemClick() 115 Selection.setSelection(text, 2, 2); in testOnItemClick()
|
D | LinkMovementMethodTest.java | 131 Selection.setSelection(spannable, 0, spannable.length()); in testOnTakeFocus() 145 Selection.setSelection(spannable, 0, spannable.length()); in testOnTakeFocus() 156 Selection.setSelection(spannable, 0, spannable.length()); in testOnTakeFocus() 185 Selection.setSelection(mSpannable, mSpannable.getSpanStart(mClickable0), in testOnKeyDown() 195 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown() 214 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown() 224 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown() 521 Selection.setSelection(spannable, 0, spannable.length()); in testInitialize()
|
D | TextKeyListenerTest.java | 210 Selection.setSelection(mTextView.getText(), 0, 0); in testPressKey() 241 Selection.setSelection(mTextView.getText(), 0, 0); in testOnKeyOther()
|
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/ |
D | InputConnectionTestUtils.java | 81 Selection.setSelection(builder, selectionStart, selectionEnd); in formatString() 125 Selection.setSelection(editable, selectionStart, selectionEnd);
|
D | NoOpInputConnection.java | 104 public boolean setSelection(int start, int end) { in setSelection() method in NoOpInputConnection
|
D | HandlerInputConnection.java | 117 public boolean setSelection(int start, int end) { in setSelection() method in HandlerInputConnection
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | InputConnectionSplitter.java | 151 public boolean setSelection(int start, int end) { in setSelection() method in InputConnectionSplitter 152 mForNotify.setSelection(start, end); in setSelection() 153 return super.setSelection(start, end); in setSelection()
|
D | NoOpInputConnection.java | 102 public boolean setSelection(int start, int end) { in setSelection() method in NoOpInputConnection
|
/cts/tests/inputmethod/legacyimeclienttestlib/src/com/android/cts/inputmethod/ |
D | LegacyImeClientTestUtils.java | 116 public boolean setSelection(int start, int end) { in setSelection() method in LegacyImeClientTestUtils.MinimallyImplementedNoOpInputConnection
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputConnectionDefaultMethodTest.java | 175 verify(mMockInputConnection).setSelection(eq(2), eq(3)); in replaceText_mockInputConnection() 275 public boolean setSelection(int start, int end) { in setSelection() method in InputConnectionDefaultMethodTest.TestInputConnection 276 return mDelegate.setSelection(start, end); in setSelection()
|
D | InputConnectionWrapperTest.java | 149 wrapper.setSelection(0, 10); in testInputConnectionWrapper() 150 verify(inputConnection, times(1)).setSelection(0, 10); in testInputConnectionWrapper()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/ |
D | CheckoutActivityTest.java | 240 mActivity.onCcExpiration((v) -> v.setSelection(INDEX_CC_EXPIRATION_TOMORROW, true)); 257 mActivity.onCcExpiration((v) -> v.setSelection(INDEX_CC_EXPIRATION_TODAY)); 332 mActivity.onCcExpiration((v) -> v.setSelection(INDEX_CC_EXPIRATION_TOMORROW, true)); 340 mActivity.onCcExpiration((v) -> v.setSelection(INDEX_CC_EXPIRATION_TODAY)); 410 mActivity.onCcExpiration((v) -> v.setSelection(INDEX_CC_EXPIRATION_TOMORROW, true)); 418 mActivity.onCcExpiration((v) -> v.setSelection(INDEX_CC_EXPIRATION_TODAY)); 604 mActivity.syncRunOnUiThread(() -> spinner.setSelection(1));
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityImeTest.java | 300 connection.setSelection(targetPos, targetPos); in testSelectionChange_requestIme() 329 mEditText.setSelection(targetPos, targetPos); in testSelectionChange_notRequestIme() 346 mEditText.setSelection(mInitialText.length(), mInitialText.length()); in requestFocusAndSetCursorToEnd()
|
D | AccessibilityInputConnectionTest.java | 174 ic.setSelection(1, 2); in testSetSelection() 175 Mockito.verify(spy, Mockito.timeout(AsyncUtils.DEFAULT_TIMEOUT_MS)).setSelection(1, 2); in testSetSelection()
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | PreferenceRecycleTest.java | 115 mActivity.getListView().setSelection(mActivity.getListView().getCount() - 1); in recycleSetViaCodeTest()
|