Home
last modified time | relevance | path

Searched refs:getItem (Results 1 – 25 of 33) 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 …]
DPopupMenuTest.java84 assertEquals(R.id.action_highlight, menu.getItem(0).getItemId()); in verifyMenuContent()
85 assertEquals(R.id.action_edit, menu.getItem(1).getItemId()); in verifyMenuContent()
86 assertEquals(R.id.action_delete, menu.getItem(2).getItemId()); in verifyMenuContent()
87 assertEquals(R.id.action_ignore, menu.getItem(3).getItemId()); in verifyMenuContent()
88 assertEquals(R.id.action_share, menu.getItem(4).getItemId()); in verifyMenuContent()
89 assertEquals(R.id.action_print, menu.getItem(5).getItemId()); in verifyMenuContent()
91 final SubMenu shareSubMenu = menu.getItem(4).getSubMenu(); in verifyMenuContent()
94 assertEquals(R.id.action_share_email, shareSubMenu.getItem(0).getItemId()); in verifyMenuContent()
95 assertEquals(R.id.action_share_circles, shareSubMenu.getItem(1).getItemId()); in verifyMenuContent()
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
DToolbarTest.java150 assertEquals(R.id.action_highlight, menu.getItem(0).getItemId()); in testMenuContent()
151 assertEquals(R.id.action_edit, menu.getItem(1).getItemId()); in testMenuContent()
152 assertEquals(R.id.action_delete, menu.getItem(2).getItemId()); in testMenuContent()
153 assertEquals(R.id.action_ignore, menu.getItem(3).getItemId()); in testMenuContent()
154 assertEquals(R.id.action_share, menu.getItem(4).getItemId()); in testMenuContent()
155 assertEquals(R.id.action_print, menu.getItem(5).getItemId()); in testMenuContent()
DDummyAdapter.java39 public Object getItem(int position) { in getItem() method in DummyAdapter
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.java112 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.java921 adapter.remove(adapter.getItem(0)); in testTransientStateUnstableIds()
950 adapter.remove(adapter.getItem(0)); in testTransientStateStableIds()
970 return getItem(position).hashCode(); in getItemId()
DAbsSpinnerTest.java289 public Object getItem(int position) { in getItem() method in AbsSpinnerTest.MockSpinnerAdapter
/cts/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.java119 TestListItem item = mAdapter.getItem(i); in getContents()
DDialogTestListActivity.java165 .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/apps/CtsVerifier/src/com/android/cts/verifier/backup/
DBackupAccessibilityTestActivity.java313 public BackupItem getItem(int position) {
334 return getItem(position).getViewType();
339 return getItem(position).getView(mLayoutInflater, position, convertView, parent);
DBackupTestActivity.java375 public BackupItem getItem(int position) {
396 return getItem(position).getViewType();
401 return getItem(position).getView(mLayoutInflater, position, convertView, parent);
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimCtsActivity.java77 public Object getItem(int position) { in getItem() method in GridLayoutAnimCtsActivity.MockGridViewAdapter
/cts/tests/tests/media/src/android/media/cts/
DMediaBrowserTest.java199 mMediaBrowser.getItem(StubMediaBrowserService.MEDIA_ID_CHILDREN[0], mItemCallback); in testGetItem()
215 mMediaBrowser.getItem(StubMediaBrowserService.MEDIA_ID_INVALID, mItemCallback); in testGetItemFailure()
DMediaBrowserServiceTest.java183 mMediaBrowser.getItem(StubMediaBrowserService.MEDIA_ID_CHILDREN_DELAYED, in testDelayedItem()
/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/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DPolicySerializationTestActivity.java189 PolicyItem<?> item = mAdapter.getItem(i); in updateWidgets()
200 PolicyItem<?> item = mAdapter.getItem(position); in onListItemClick()
221 PolicyItem<?> item = getItem(position); in getView()

12