Home
last modified time | relevance | path

Searched refs:setSelection (Results 1 – 25 of 27) 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.java96 editText.setSelection(position); in testSetSelectionIndex()
101 editText.setSelection(position); in testSetSelectionIndex()
106 editText.setSelection(-1); in testSetSelectionIndex()
113 editText.setSelection(string.length() + 1); in testSetSelectionIndex()
127 editText.setSelection(start, end); in testSetSelectionStartstop()
133 editText.setSelection(start, end); in testSetSelectionStartstop()
139 editText.setSelection(start, end); in testSetSelectionStartstop()
144 editText.setSelection(-5, -1); in testSetSelectionStartstop()
151 editText.setSelection(5, string.length() + 1); in testSetSelectionStartstop()
184 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()
DTextViewTest.java249 Selection.setSelection((Editable) mTextView.getText(), in testAccessMovementMethod()
268 Selection.setSelection((Editable) mTextView.getText(), in testAccessMovementMethod()
526 Selection.setSelection((Spannable) mTextView.getText(), 0); in testSetSelectAllOnFocus()
548 Selection.setSelection((Spannable) mTextView.getText(), 0); in testSetSelectAllOnFocus()
1052 Selection.setSelection((Spannable) mTextView.getText(), 3); in testSetTextKeepState1()
1060 Selection.setSelection((Spannable) mTextView.getText(), shortString.length() + 1); in testSetTextKeepState1()
1068 Selection.setSelection((Spannable) mTextView.getText(), 1, 4); in testSetTextKeepState1()
1076 Selection.setSelection((Spannable) mTextView.getText(), 2, shortString.length() + 1); in testSetTextKeepState1()
1084 Selection.setSelection((Spannable) mTextView.getText(), in testSetTextKeepState1()
1161 Selection.setSelection((Spannable) mTextView.getText(), 3); in testSetText1()
[all …]
DListViewTest.java459 mListView.setSelection(1); in testSetSelection()
500 mListView.setSelection(2); in testPerformItemClick()
553 mListView.setSelection(1); in testDispatchKeyEvent()
758 listView.setSelection(1); in testNoSelectableItems()
DGridViewTest.java125 mGridView.setSelection(0); in testSetSelection()
128 mGridView.setSelection(-1); in testSetSelection()
131 mGridView.setSelection(mGridView.getCount()); in testSetSelection()
DGalleryTest.java273 gallery.setSelection(0); in testDispatchSetPressed()
DAbsListViewTest.java153 mListView.setSelection(i); in setListSelection()
571 listView.setSelection(2); in testGetContextMenuInfo()
/cts/tests/tests/text/src/android/text/method/cts/
DArrowKeyMovementMethodTest.java189 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeUp()
202 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeUp()
226 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeUp()
239 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeUp()
273 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeDown()
286 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeDown()
310 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeDown()
323 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeDown()
333 Selection.setSelection(mEditable, END_OF_ALL_TEXT - 1); in testOnKeyDownWithKeyCodeDown()
358 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); in testOnKeyDownWithKeyCodeLeft()
[all …]
DCharacterPickerDialogTest.java77 Selection.setSelection(text, 0, 0); in testOnItemClick()
87 Selection.setSelection(text, 2, 2); in testOnItemClick()
98 Selection.setSelection(text, 2, 2); in testOnItemClick()
DLinkMovementMethodTest.java100 Selection.setSelection(spannable, 0, spannable.length()); in testOnTakeFocus()
113 Selection.setSelection(spannable, 0, spannable.length()); in testOnTakeFocus()
123 Selection.setSelection(spannable, 0, spannable.length()); in testOnTakeFocus()
151 Selection.setSelection(mSpannable, mSpannable.getSpanStart(mClickable0), in testOnKeyDown()
161 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown()
180 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown()
190 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown()
442 Selection.setSelection(spannable, 0, spannable.length()); in testInitialize()
DTextKeyListenerTest.java187 Selection.setSelection((Editable) mTextView.getText(), 0, 0); in testPressKey()
219 Selection.setSelection((Editable) mTextView.getText(), 0, 0); in testOnKeyOther()
DNumberKeyListenerTest.java135 Selection.setSelection((Editable) mTextView.getText(), 0, 0); in testPressKey()
DQwertyKeyListenerTest.java140 Selection.setSelection(mTextView.getEditableText(), 0, 0); in prepareEmptyTextView()
DMultiTapKeyListenerTest.java175 Selection.setSelection(mTextView.getEditableText(), 0, 0); in prepareEmptyTextView()
/cts/tests/tests/widget/src/android/widget/cts/util/
DListUtil.java47 mListView.setSelection(pos); in setSelectedPosition()
DListScenario.java340 mListView.setSelection(mStartingSelectionPosition); in onCreate()
/cts/tests/tests/view/src/android/view/inputmethod/cts/
DInputConnectionWrapperTest.java81 wrapper.setSelection(0, 10); in testInputConnectionWrapper()
215 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()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DSimpleReaderActivity.java70 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()
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java84 listView.setSelection(1); in testTypeViewSelectedAccessibilityEvent()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DPhotoCaptureActivity.java224 mResolutionSpinner.setSelection(mResolutionSpinnerIndex); in onResume()

12