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.java296 assertSame(STR1, mArrayAdapter.getItem(0)); in testGetItem()
297 assertSame(STR2, mArrayAdapter.getItem(1)); in testGetItem()
298 assertSame(STR3, mArrayAdapter.getItem(2)); in testGetItem()
307 mArrayAdapter.getItem(-1); in testGetItemOutOfBoundsLow()
316 mArrayAdapter.getItem(mArrayAdapter.getCount()); in testGetItemOutOfBoundsHigh()
464 assertEquals(mArrayAdapter.getItem(0), "testing"); in testAdd()
465 assertEquals(mArrayAdapter.getItem(1), "android"); in testAdd()
490 assertEquals(mArrayAdapter.getItem(0), list.get(0)); in testAddAllCollection()
491 assertEquals(mArrayAdapter.getItem(1), list.get(1)); in testAddAllCollection()
492 assertEquals(mArrayAdapter.getItem(2), list.get(2)); in testAddAllCollection()
[all …]
DPopupMenuTest.java123 assertEquals(R.id.action_highlight, menu.getItem(0).getItemId()); in verifyMenuContent()
124 assertEquals(R.id.action_edit, menu.getItem(1).getItemId()); in verifyMenuContent()
125 assertEquals(R.id.action_delete, menu.getItem(2).getItemId()); in verifyMenuContent()
126 assertEquals(R.id.action_ignore, menu.getItem(3).getItemId()); in verifyMenuContent()
127 assertEquals(R.id.action_share, menu.getItem(4).getItemId()); in verifyMenuContent()
128 assertEquals(R.id.action_print, menu.getItem(5).getItemId()); in verifyMenuContent()
130 final SubMenu shareSubMenu = menu.getItem(4).getSubMenu(); in verifyMenuContent()
133 assertEquals(R.id.action_share_email, shareSubMenu.getItem(0).getItemId()); in verifyMenuContent()
134 assertEquals(R.id.action_share_circles, shareSubMenu.getItem(1).getItemId()); in verifyMenuContent()
338 MenuItem item = menu.getItem(i); in testItemViewAttributes()
[all …]
DActionMenuViewTest.java81 assertEquals(R.id.action_highlight, menu.getItem(0).getItemId()); in testMenuContent()
82 assertEquals(R.id.action_edit, menu.getItem(1).getItemId()); in testMenuContent()
83 assertEquals(R.id.action_delete, menu.getItem(2).getItemId()); in testMenuContent()
84 assertEquals(R.id.action_ignore, menu.getItem(3).getItemId()); in testMenuContent()
85 assertEquals(R.id.action_share, menu.getItem(4).getItemId()); in testMenuContent()
86 assertEquals(R.id.action_print, menu.getItem(5).getItemId()); in testMenuContent()
DHeaderViewListAdapterTest.java254 assertSame(data1, headerViewListAdapter.getItem(0)); in testGetItem()
255 assertSame(data2, headerViewListAdapter.getItem(1)); in testGetItem()
256 assertSame(mFullAdapter.getItem(0), headerViewListAdapter.getItem(2)); in testGetItem()
257 assertSame(data3, headerViewListAdapter.getItem(3)); in testGetItem()
258 assertSame(data4, headerViewListAdapter.getItem(4)); in testGetItem()
411 public Object getItem(int position) { in getItem() method in HeaderViewListAdapterTest.HeaderViewEmptyAdapter
473 public Object getItem(int position) { in getItem() method in HeaderViewListAdapterTest.HeaderViewFullAdapter
DToolbarTest.java141 assertEquals(R.id.action_highlight, menu.getItem(0).getItemId()); in testMenuContent()
142 assertEquals(R.id.action_edit, menu.getItem(1).getItemId()); in testMenuContent()
143 assertEquals(R.id.action_delete, menu.getItem(2).getItemId()); in testMenuContent()
144 assertEquals(R.id.action_ignore, menu.getItem(3).getItemId()); in testMenuContent()
145 assertEquals(R.id.action_share, menu.getItem(4).getItemId()); in testMenuContent()
146 assertEquals(R.id.action_print, menu.getItem(5).getItemId()); in testMenuContent()
DSimpleAdapterTest.java143 assertEquals("01", ((Map<?, ?>) mSimpleAdapter.getItem(0)).get("column1")); in testGetItem()
144 assertEquals("191", ((Map<?, ?>) mSimpleAdapter.getItem(19)).get("column1")); in testGetItem()
149 mSimpleAdapter.getItem(-1); in testGetItemIndexTooLow()
154 mSimpleAdapter.getItem(20); in testGetItemIndexTooHigh()
DDummyAdapter.java39 public Object getItem(int position) { in getItem() method in DummyAdapter
DCursorAdapterTest.java300 assertNull(cursorAdapter.getItem(0)); in testGetItem()
303 Cursor c = (Cursor) cursorAdapter.getItem(0); in testGetItem()
308 c = (Cursor) cursorAdapter.getItem(1); in testGetItem()
DGalleryCtsActivity.java52 public Object getItem(int position) { in getItem() method in GalleryCtsActivity.ImageAdapter
DBaseAdapterTest.java155 public Object getItem(int position) { in getItem() method in BaseAdapterTest.MockBaseAdapter
DAbsSpinnerTest.java286 public Object getItem(int position) { in getItem() method in AbsSpinnerTest.MockSpinnerAdapter
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListAdapter.java357 return getItem(position).isTest(); in isEnabled()
362 return getItem(position).isTest() ? TEST_VIEW_TYPE : CATEGORY_HEADER_VIEW_TYPE; in getItemViewType()
376 public TestListItem getItem(int position) { in getItem() method in TestListAdapter
386 TestListItem item = getItem(position); in getTestResult()
393 TestListItem item = getItem(position); in getTestDetails()
400 TestListItem item = getItem(position); in getReportLog()
413 TestListItem item = getItem(position); in getHistoryCollection()
439 TestListItem item = getItem(position); in getView()
DAbstractTestListActivity.java57 TestListItem item = mAdapter.getItem(position); in getIntent()
DTestResultsReport.java131 TestListItem item = mAdapter.getItem(i); in generateResult()
DDialogTestListActivity.java184 .getItem(position); in handleItemClick()
/cts/tests/tests/view/src/android/view/cts/
DMenuItemTest.java70 MenuItem firstItem = mMenu.getItem(0); in testAccessIconTint()
71 MenuItem secondItem = mMenu.getItem(1); in testAccessIconTint()
72 MenuItem thirdItem = mMenu.getItem(2); in testAccessIconTint()
/cts/tests/tests/media/src/android/media/cts/
DMediaBrowserTest.java129 mMediaBrowser.getItem(StubMediaBrowserService.MEDIA_ID_CHILDREN[0], mItemCallback); in testReconnection()
144 mMediaBrowser.getItem(StubMediaBrowserService.MEDIA_ID_CHILDREN[0], mItemCallback); in testReconnection()
431 mMediaBrowser.getItem(StubMediaBrowserService.MEDIA_ID_CHILDREN[0], mItemCallback); in testGetItem()
447 mMediaBrowser.getItem(StubMediaBrowserService.MEDIA_ID_INVALID, mItemCallback); in testGetItemFailure()
461 mMediaBrowser.getItem(StubMediaBrowserService.MEDIA_ID_CHILDREN[0], mItemCallback); in testItemCallbackNotCalledAfterDisconnect()
DMediaBrowserServiceTest.java193 mMediaBrowser.getItem(StubMediaBrowserService.MEDIA_ID_CHILDREN_DELAYED, in testDelayedItem()
216 mMediaBrowser.getItem(StubMediaBrowserService.MEDIA_ID_CHILDREN[0], mItemCallback); in testGetBrowserInfo()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/
DAccessibilityEndToEndActivity.java53 textView.setText((String) getItem(position)); in onCreate()
61 public Object getItem(int position) { in onCreate()
/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/autofillservice/src/android/autofillservice/cts/
DVirtualContainerView.java140 final Item item = getItem(id); in autofill()
277 final Item item = getItem(virtualId); in isVisibleToUserForAutofill()
296 private Item getItem(int id) { in getItem() method in VirtualContainerView
370 final Item item = getItem(virtualViewId); in setCompatMode()
381 final Item item = getItem(virtualViewId); in setCompatMode()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DPolicySerializationTestActivity.java191 PolicyItem<?> item = mAdapter.getItem(i); in updateWidgets()
202 PolicyItem<?> item = mAdapter.getItem(position); in onListItemClick()
223 PolicyItem<?> item = getItem(position); in getView()
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimCtsActivity.java76 public Object getItem(int position) { in getItem() method in GridLayoutAnimCtsActivity.MockGridViewAdapter
/cts/tests/tests/widget/src/android/widget/cts/util/
DListScenario.java586 public Object getItem(int position) { in getItem() method in ListScenario.MyAdapter

12