Home
last modified time | relevance | path

Searched refs:setAdapter (Results 1 – 25 of 48) sorted by relevance

12

/cts/tests/tests/widget/src/android/widget/cts/
DExpandableListViewTest.java148 mExpandableListView.setAdapter((ListAdapter) null); in testSetAdapterOfWrongType()
157 mExpandableListView.setAdapter(expandableAdapter); in testGetAdapter()
167 mExpandableListView.setAdapter(expandableAdapter); in testAccessExpandableListAdapter()
199 mExpandableListView.setAdapter(expandableAdapter); in testOnInitializeAccessibilityNodeInfoForItem()
240 mExpandableListView.setAdapter(expandableAdapter); in testExpandGroup()
268 mExpandableListView.setAdapter((ExpandableListAdapter) null); in testExpandGroup()
279 () -> mExpandableListView.setAdapter(new MockExpandableListAdapter())); in testExpandGroupSmooth()
311 mExpandableListView.setAdapter((ExpandableListAdapter) null); in testExpandGroupSmooth()
324 mExpandableListView.setAdapter(expandableAdapter); in testCollapseGroup()
347 mExpandableListView.setAdapter((ExpandableListAdapter) null); in testCollapseGroup()
[all …]
DAbsListViewTest.java224 private void setAdapter() throws Throwable { in setAdapter() method in AbsListViewTest
225 setAdapter(mCountriesAdapter); in setAdapter()
228 private void setAdapter(final ListAdapter adapter) throws Throwable { in setAdapter() method in AbsListViewTest
230 () -> mListView.setAdapter(adapter)); in setAdapter()
253 setAdapter(); in testSetOnScrollListener()
293 setAdapter(); in testFling()
335 setAdapter(mShortAdapter); in testGetFocusedRect()
361 setAdapter(); in testAccessStackFromBottom()
379 setAdapter(); in testAccessSelectedItem()
401 setAdapter(); in testAccessListPadding()
[all …]
DAutoCompleteTextViewTest.java237 mAutoCompleteTextView.setAdapter(null); in testAccessAdapter()
240 mAutoCompleteTextView.setAdapter(mAdapter); in testAccessAdapter()
244 mAutoCompleteTextView.setAdapter(null); in testAccessAdapter()
256 autoCompleteTextView.setAdapter(null); in testAccessFilter()
262 autoCompleteTextView.setAdapter(mAdapter); in testAccessFilter()
267 autoCompleteTextView.setAdapter(null); in testAccessFilter()
325 autoCompleteTextView.setAdapter(mAdapter); in testConvertSelectionToString()
389 mAutoCompleteTextView.setAdapter(mAdapter); in testDropDownMetrics()
416 mActivityRule.runOnUiThread(() -> mAutoCompleteTextView.setAdapter(mAdapter)); in testDropDownBackground()
448 mAutoCompleteTextView.setAdapter(mAdapter); in refreshAutoCompleteResults_addItem()
[all …]
DAbsSpinnerTest.java105 mAbsSpinner.setAdapter(adapter); in testSetSelectionIntBoolean()
128 mAbsSpinner.setAdapter(adapter); in testSetSelectionInt()
151 mAbsSpinner.setAdapter(adapter); in testAccessAdapter()
182 mAbsSpinner.setAdapter(adapter1); in testGetCount()
189 mAbsSpinner.setAdapter(adapter2); in testGetCount()
205 absSpinner.setAdapter(adapter); in testPointToPosition()
239 absSpinner.setAdapter(adapter); in testGetSelectedView()
258 mAbsSpinner.setAdapter(adapter); in testOnSaveAndRestoreInstanceState()
DListViewTest.java210 setAdapter(mAdapter_names); in testGetMaxScrollAmount()
224 private void setAdapter(final ArrayAdapter<String> adapter) throws Throwable { in setAdapter() method in ListViewTest
226 () -> mListView.setAdapter(adapter)); in setAdapter()
232 () -> mListView.setAdapter(mAdapter_countries)); in testAccessDividerHeight()
265 () -> mListView.setAdapter(mAdapter_countries)); in testAccessAdapter()
271 () -> mListView.setAdapter(mAdapter_names)); in testAccessAdapter()
376 () -> mListView.setAdapter(mAdapter_countries)); in testAccessFooterView()
447 () -> mListView.setAdapter(adapter)); in testHeaderFooterType()
458 () -> mListView.setAdapter(mAdapter_countries)); in testAccessDivider()
480 () -> mListView.setAdapter(mAdapter_countries)); in testSetSelection()
[all …]
DGridViewTest.java153 mGridView.setAdapter(adapter); in testAccessAdapter()
156 mGridView.setAdapter(null); in testAccessAdapter()
183 mGridView.setAdapter(new ImageAdapter(mActivity)); in testPressKey()
236 mGridView.setAdapter(new ImageAdapter(mActivity)); in testSetGravity()
290 mGridView.setAdapter(new MockGridViewAdapter(3)); in verifyAccessHorizontalSpacing()
321 mGridView.setAdapter(new MockGridViewAdapter(3)); in testAccessVerticalSpacing()
346 mGridView.setAdapter(new ImageAdapter(mActivity)); in testAccessStretchMode()
429 mGridView.setAdapter(new MockGridViewAdapter(10));
465 mGridView.setAdapter(new MockGridViewAdapter(10)); in testGetNumColumns()
505 mockGridView.setAdapter(new MockGridViewAdapter(10)); in testOnFocusChanged()
[all …]
DSpinnerTest.java177 spinner.setAdapter(adapter); in verifyGetBaseline()
250 spinner.setAdapter(adapter); in verifyOnClickAccessibility()
350 mActivityRule.runOnUiThread(() -> spinner.setAdapter(adapter)); in verifyGravity()
383 mActivityRule.runOnUiThread(() -> mSpinnerDropdownMode.setAdapter(adapter)); in testDropDownMetricsDropdownMode()
415 mActivityRule.runOnUiThread(() -> mSpinnerDialogMode.setAdapter(adapter)); in testDropDownMetricsDialogMode()
445 mActivityRule.runOnUiThread(() -> mSpinnerDropdownMode.setAdapter(adapter)); in testDropDownBackgroundDropdownMode()
466 mActivityRule.runOnUiThread(() -> mSpinnerDialogMode.setAdapter(adapter)); in testDropDownBackgroundDialogMode()
DExpandableListWithHeaders.java57 setAdapter(expandableListView); in onCreate()
DGalleryCtsActivity.java40 gallery.setAdapter(adapter); in onCreate()
DAdapterViewTest.java188 mAdapterView.setAdapter(new ArrayAdapter<String>( in testAccessEmptyView()
210 mAdapterView.setAdapter(null); in testAccessEmptyView()
512 adapterView.setAdapter(new ArrayAdapter<>( in setArrayAdapter()
DGalleryTest.java245 gallery.setAdapter(new ImageAdapter(mActivity)); in testComputeHorizontalScrollOffset()
256 gallery.setAdapter(adapter); in testComputeHorizontalScrollRange()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/list/
DListPresentation.java58 listView.setAdapter(new ArrayAdapter<String>(getContext(), in onCreate()
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTestActivity.java52 listView.setAdapter(listAdapter); in onCreate()
/cts/tests/app/src/android/app/cts/
DAlertDialog_BuilderTestBase.java74 mActivityRule.getScenario().onActivity(a -> listView.setAdapter(adapter[0])); in reAttachListViewAdapter()
/cts/tests/tests/widget/src/android/widget/cts/util/
DListScenario.java322 setAdapter(mListView); in onCreate()
423 protected void setAdapter(ListView listView) { in setAdapter() method in ListScenario
424 listView.setAdapter(new MyAdapter()); in setAdapter()
DExpandableListScenario.java56 protected void setAdapter(ListView listView) { in setAdapter() method in ExpandableListScenario
59 ((ExpandableListView) listView).setAdapter(mAdapter); in setAdapter()
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimCtsActivity.java40 mGridView.setAdapter(new MockGridViewAdapter(GRID_NUM)); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DDevicePickerActivity.java77 pairedDevicesListView.setAdapter(mPairedDevicesAdapter); in onCreate()
85 newDevicesListView.setAdapter(mNewDevicesAdapter); in onCreate()
DMessageTestActivity.java109 mReceivedMessages.setAdapter(mReceivedMessagesAdapter); in onCreate()
113 mSentMessages.setAdapter(mSentMessagesAdapter); in onCreate()
DBleEncryptedServerBaseActivity.java60 listView.setAdapter(mTestAdapter); in onCreate()
DBleScannerHardwareScanFilterActivity.java59 mScanResultListView.setAdapter(mAdapter); in onCreate()
DBleConnectionPriorityServerBaseActivity.java59 listView.setAdapter(mTestAdapter); in onCreate()
DBleConnectionPriorityClientBaseActivity.java75 listView.setAdapter(mTestAdapter); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioLoopbackCalibrationDialog.java232 mInputsSpinner.setAdapter(fillAdapter(mInputDevices)); in stateChangeHandler()
235 mOutputsSpinner.setAdapter(fillAdapter(mOutputDevices)); in stateChangeHandler()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/
DAccessibilityEndToEndActivity.java75 listView.setAdapter(listAdapter); in onCreate()

12