Home
last modified time | relevance | path

Searched refs:setSelection (Results 1 – 25 of 33) sorted by relevance

12

/cts/tests/tests/text/src/android/text/cts/
DSelectionTest.java32 Selection.setSelection(builder, 3, 8); in testGetSelectionStart()
35 Selection.setSelection(builder, 3, 9); in testGetSelectionStart()
38 Selection.setSelection(builder, 5, 7); in testGetSelectionStart()
49 Selection.setSelection(builder, 0, 10); in testGetSelectionEnd()
52 Selection.setSelection(builder, 1, 8); in testGetSelectionEnd()
55 Selection.setSelection(builder, 2, 8); in testGetSelectionEnd()
67 Selection.setSelection(builder, 3, 6); in testSetSelection1()
71 Selection.setSelection(builder, 3, 7); in testSetSelection1()
75 Selection.setSelection(builder, 3, 7); in testSetSelection1()
79 Selection.setSelection(builder, 6, 2); in testSetSelection1()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DEditTextTest.java97 editText.setSelection(position); in testSetSelectionIndex()
102 editText.setSelection(position); in testSetSelectionIndex()
107 editText.setSelection(-1); in testSetSelectionIndex()
114 editText.setSelection(string.length() + 1); in testSetSelectionIndex()
128 editText.setSelection(start, end); in testSetSelectionStartstop()
134 editText.setSelection(start, end); in testSetSelectionStartstop()
140 editText.setSelection(start, end); in testSetSelectionStartstop()
145 editText.setSelection(-5, -1); in testSetSelectionStartstop()
152 editText.setSelection(5, string.length() + 1); in testSetSelectionStartstop()
185 editText.setSelection(start, end); in testExtendSelection()
[all …]
DAbsSpinnerTest.java86 absSpinner.setSelection(1, true); in testSetSelectionIntBoolean()
89 absSpinner.setSelection(absSpinner.getCount() - 1, false); in testSetSelectionIntBoolean()
109 absSpinner.setSelection(1); in testSetSelectionInt()
112 absSpinner.setSelection(absSpinner.getCount() - 1); in testSetSelectionInt()
134 absSpinner.setSelection(1); in testAccessAdapter()
225 absSpinner.setSelection(1, true); in testGetSelectedView()
246 absSpinner.setSelection(1); in testOnSaveAndRestoreInstanceState()
DMultiAutoCompleteTextViewTest.java97 m.setSelection(0, c.length()); in setText()
171 multiAutoCompleteTextView.setSelection(0, 12); in testPerformFiltering()
190 multiAutoCompleteTextView.setSelection(0, text.length()); in testReplaceText()
DAdapterViewTest.java369 mAdapterView.setSelection(expectedId); in testGetSelected()
376 mAdapterView.setSelection(expectedId); in testGetSelected()
382 mAdapterView.setSelection(expectedId); in testGetSelected()
DListViewTest.java373 () -> mListView.setSelection(1)); in testSetSelection()
398 () -> mListView.setSelection(2)); in testPerformItemClick()
434 () -> mListView.setSelection(1)); in testDispatchKeyEvent()
605 listView.setSelection(1); in testNoSelectableItems()
647 mListView.setSelection(800); in testFullDetachHeaderViewOnRelayout()
706 mListView.setSelection(800); in testFullyDetachUnusedViewOnReLayout()
712 mListView.setSelection(0); in testFullyDetachUnusedViewOnReLayout()
DTextViewTest.java257 Selection.setSelection((Editable) mTextView.getText(), in testAccessMovementMethod()
276 Selection.setSelection((Editable) mTextView.getText(), in testAccessMovementMethod()
534 Selection.setSelection((Spannable) mTextView.getText(), 0); in testSetSelectAllOnFocus()
556 Selection.setSelection((Spannable) mTextView.getText(), 0); in testSetSelectAllOnFocus()
1093 Selection.setSelection((Spannable) mTextView.getText(), 3); in testSetTextKeepState1()
1101 Selection.setSelection((Spannable) mTextView.getText(), shortString.length() + 1); in testSetTextKeepState1()
1109 Selection.setSelection((Spannable) mTextView.getText(), 1, 4); in testSetTextKeepState1()
1117 Selection.setSelection((Spannable) mTextView.getText(), 2, shortString.length() + 1); in testSetTextKeepState1()
1125 Selection.setSelection((Spannable) mTextView.getText(), in testSetTextKeepState1()
1202 Selection.setSelection((Spannable) mTextView.getText(), 3); in testSetText1()
[all …]
DGridViewTest.java127 mGridView.setSelection(0); in testSetSelection()
130 mGridView.setSelection(-1); in testSetSelection()
133 mGridView.setSelection(mGridView.getCount()); in testSetSelection()
607 mGridView.setSelection(800); in testFullyDetachUnusedViewOnReLayout()
613 mGridView.setSelection(0); in testFullyDetachUnusedViewOnReLayout()
DListPopupWindowTest.java523 () -> mPopupWindow.setSelection(1)); in testAccessSelection()
538 () -> mPopupWindow.setSelection(3)); in testAccessSelection()
618 () -> mPopupWindow.setSelection(1)); in testListSelectionWithDPad()
/cts/tests/tests/text/src/android/text/method/cts/
DArrowKeyMovementMethodTest.java190 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeUp()
203 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeUp()
227 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeUp()
240 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeUp()
274 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeDown()
287 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeDown()
311 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeDown()
324 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeDown()
334 Selection.setSelection(mEditable, END_OF_ALL_TEXT - 1); in testOnKeyDownWithKeyCodeDown()
359 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeLeft()
[all …]
DCharacterPickerDialogTest.java73 Selection.setSelection(text, 0, 0); in testOnItemClick()
83 Selection.setSelection(text, 2, 2); in testOnItemClick()
94 Selection.setSelection(text, 2, 2); in testOnItemClick()
DLinkMovementMethodTest.java102 Selection.setSelection(spannable, 0, spannable.length()); in testOnTakeFocus()
115 Selection.setSelection(spannable, 0, spannable.length()); in testOnTakeFocus()
125 Selection.setSelection(spannable, 0, spannable.length()); in testOnTakeFocus()
153 Selection.setSelection(mSpannable, mSpannable.getSpanStart(mClickable0), in testOnKeyDown()
163 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown()
182 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown()
192 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown()
444 Selection.setSelection(spannable, 0, spannable.length()); in testInitialize()
DTextKeyListenerTest.java193 Selection.setSelection((Editable) mTextView.getText(), 0, 0); in testPressKey()
225 Selection.setSelection((Editable) mTextView.getText(), 0, 0); in testOnKeyOther()
DForwardDeleteTest.java42 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in forwardDelete()
DBackspaceTest.java42 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in backspace()
DNumberKeyListenerTest.java141 Selection.setSelection((Editable) mTextView.getText(), 0, 0); in testPressKey()
DQwertyKeyListenerTest.java137 Selection.setSelection(mTextView.getEditableText(), 0, 0); in prepareEmptyTextView()
DMultiTapKeyListenerTest.java175 Selection.setSelection(mTextView.getEditableText(), 0, 0); in prepareEmptyTextView()
/cts/tests/tests/view/src/android/view/inputmethod/cts/util/
DInputConnectionTestUtils.java74 Selection.setSelection(builder, selectionStart, selectionEnd); in formatString()
/cts/tests/tests/widget/src/android/widget/cts/util/
DListUtil.java47 mListView.setSelection(pos); in setSelectedPosition()
/cts/tests/tests/view/src/android/view/inputmethod/cts/
DInputConnectionWrapperTest.java84 wrapper.setSelection(0, 10); in testInputConnectionWrapper()
231 public boolean setSelection(int start, int end) { in setSelection() method in InputConnectionWrapperTest.MockInputConnection
DBaseInputConnectionTest.java143 mConnection.setSelection(0, 0); in testOpTextMethods()
168 mConnection.setSelection(end, end); in testOpTextMethods()
275 Selection.setSelection(editable, selectionStart, selectionEnd); in createDummyConnectionWithSelection()
/cts/tests/app/src/android/app/cts/
DListActivityTest.java76 mActivity.setSelection(2); in testSelection()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DSimpleReaderActivity.java71 spinner.setSelection(1); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java384 mResolutionSpinner.setSelection(0); in setUpCamera()
387 mFormatSpinner.setSelection(0); in setUpCamera()

12