Home
last modified time | relevance | path

Searched refs:getItem (Results 1 – 25 of 28) sorted by relevance

12

/cts/tests/tests/widget/src/android/widget/cts/
DArrayAdapterTest.java263 assertSame(STR1, mArrayAdapter.getItem(0)); in testGetItem()
264 assertSame(STR2, mArrayAdapter.getItem(1)); in testGetItem()
265 assertSame(STR3, mArrayAdapter.getItem(2)); in testGetItem()
269 mArrayAdapter.getItem(-1); in testGetItem()
276 mArrayAdapter.getItem(mArrayAdapter.getCount()); in testGetItem()
420 assertEquals(mArrayAdapter.getItem(0), "testing"); in testAdd()
421 assertEquals(mArrayAdapter.getItem(1), "android"); in testAdd()
445 assertEquals(mArrayAdapter.getItem(0), list.get(0)); in testAddAllCollection()
446 assertEquals(mArrayAdapter.getItem(1), list.get(1)); in testAddAllCollection()
447 assertEquals(mArrayAdapter.getItem(2), list.get(2)); in testAddAllCollection()
[all …]
DHeaderViewListAdapterTest.java245 assertSame(data1, headerViewListAdapter.getItem(0)); in testGetItem()
246 assertSame(data2, headerViewListAdapter.getItem(1)); in testGetItem()
247 assertSame(headerViewFullAdapter.getItem(0), headerViewListAdapter.getItem(2)); in testGetItem()
248 assertSame(data3, headerViewListAdapter.getItem(3)); in testGetItem()
249 assertSame(data4, headerViewListAdapter.getItem(4)); in testGetItem()
403 public Object getItem(int position) { in getItem() method in HeaderViewListAdapterTest.HeaderViewEmptyAdapter
465 public Object getItem(int position) { in getItem() method in HeaderViewListAdapterTest.HeaderViewFullAdapter
DSimpleAdapterTest.java120 assertEquals("01", ((Map<?, ?>) mSimpleAdapter.getItem(0)).get("column1")); in testGetItem()
121 assertEquals("191", ((Map<?, ?>) mSimpleAdapter.getItem(19)).get("column1")); in testGetItem()
124 mSimpleAdapter.getItem(-1); in testGetItem()
130 mSimpleAdapter.getItem(20); in testGetItem()
DGalleryCtsActivity.java53 public Object getItem(int position) { in getItem() method in GalleryCtsActivity.ImageAdapter
DBaseAdapterTest.java113 public Object getItem(int position) { in getItem() method in BaseAdapterTest.MockBaseAdapter
DCursorAdapterTest.java273 assertNull(cursorAdapter.getItem(0)); in testGetItem()
276 Cursor c = (Cursor) cursorAdapter.getItem(0); in testGetItem()
281 c = (Cursor) cursorAdapter.getItem(1); in testGetItem()
DListViewTest.java822 adapter.remove(adapter.getItem(0)); in testTransientStateUnstableIds()
859 adapter.remove(adapter.getItem(0)); in testTransientStateStableIds()
881 return getItem(position).hashCode(); in getItemId()
DCheckedTextViewTest.java344 public Object getItem(int position) {
DAbsSpinnerTest.java289 public Object getItem(int position) { in getItem() method in AbsSpinnerTest.MockSpinnerAdapter
DGridViewTest.java683 public Object getItem(int position) {
747 public Object getItem(int position) {
DGalleryTest.java319 public Object getItem(int position) { in getItem() method in GalleryTest.ImageAdapter
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndActivity.java44 textView.setText((String) getItem(position)); in onCreate()
52 public Object getItem(int position) { in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListAdapter.java319 return getItem(position).isTest(); in isEnabled()
324 return getItem(position).isTest() ? TEST_VIEW_TYPE : CATEGORY_HEADER_VIEW_TYPE; in getItemViewType()
338 public TestListItem getItem(int position) { in getItem() method in TestListAdapter
348 TestListItem item = getItem(position); in getTestResult()
355 TestListItem item = getItem(position); in getTestDetails()
362 TestListItem item = getItem(position); in getReportLog()
388 TestListItem item = getItem(position); in getView()
DAbstractTestListActivity.java42 TestListItem item = mAdapter.getItem(position); in getIntent()
DTestResultsReport.java120 TestListItem item = mAdapter.getItem(i); in getContents()
DDialogTestListActivity.java168 .getItem(position); in handleItemClick()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleScannerHardwareScanFilterActivity.java139 public Object getItem(int position) { in getItem() method in BleScannerHardwareScanFilterActivity.MapAdapter
165 String value = getItem(pos).toString(); in getView()
DTestAdapter.java63 public Object getItem(int position) { in getItem() method in TestAdapter
/cts/tests/tests/media/src/android/media/cts/
DMediaBrowserTest.java124 mMediaBrowser.getItem(StubMediaBrowserService.MEDIA_ID_CHILDREN[0], mItemCallback); in testGetItem()
140 mMediaBrowser.getItem("does-not-exist", mItemCallback); in testGetItemFailure()
DMediaBrowserServiceTest.java138 mMediaBrowser.getItem(StubMediaBrowserService.MEDIA_ID_CHILDREN_DELAYED, in testDelayedItem()
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimCtsActivity.java77 public Object getItem(int position) { in getItem() method in GridLayoutAnimCtsActivity.MockGridViewAdapter
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/
DBackupTestActivity.java375 public BackupItem getItem(int position) {
396 return getItem(position).getViewType();
401 return getItem(position).getView(mLayoutInflater, position, convertView, parent);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DPolicySerializationTestActivity.java188 PolicyItem<?> item = mAdapter.getItem(i); in updateWidgets()
199 PolicyItem<?> item = mAdapter.getItem(position); in onListItemClick()
220 PolicyItem<?> item = getItem(position); in getView()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/suid/
DSuidFilesActivity.java121 File file = mAdapter.getItem(position); in onListItemClick()
161 File file = getItem(position); in getView()
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/
DTest4DetailFragment.java129 public Fragment getItem(int i) { in getItem() method in Test4DetailFragment.SectionsPagerAdapter

12