Home
last modified time | relevance | path

Searched refs:getItemId (Results 1 – 25 of 41) sorted by relevance

12

/cts/tests/tests/widget/src/android/widget/cts/
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()
DRemoteViewsFixedCollectionAdapterTest.java131 assertEquals(3, unparceled.getItemId(0)); in testParcelingAndUnparceling()
132 assertEquals(5, unparceled.getItemId(1)); in testParcelingAndUnparceling()
145 assertEquals(3, unparceled.getItemId(0)); in testParcelingAndUnparceling()
146 assertEquals(5, unparceled.getItemId(1)); in testParcelingAndUnparceling()
170 assertEquals(3, unparceled.getItemId(0)); in testParcelingAndUnparceling_afterAttaching()
171 assertEquals(5, unparceled.getItemId(1)); in testParcelingAndUnparceling_afterAttaching()
199 assertEquals(3, unparceled.getItemId(0)); in testParcelingAndUnparceling_multiplePackages()
200 assertEquals(5, unparceled.getItemId(1)); in testParcelingAndUnparceling_multiplePackages()
231 assertEquals(3, items.getItemId(0)); in testBuilder_viewTypeCountUnspecified()
232 assertEquals(5, items.getItemId(1)); in testBuilder_viewTypeCountUnspecified()
[all …]
DAbsSpinnerTest.java146 assertEquals(adapter.getItemId(0), mAbsSpinner.getSelectedItemId()); in testAccessAdapter()
149 assertEquals(adapter.getItemId(1), mAbsSpinner.getSelectedItemId()); in testAccessAdapter()
251 assertEquals(adapter.getItemId(0), mAbsSpinner.getSelectedItemId()); in testOnSaveAndRestoreInstanceState()
256 assertEquals(adapter.getItemId(1), mAbsSpinner.getSelectedItemId()); in testOnSaveAndRestoreInstanceState()
263 assertEquals(adapter.getItemId(0), mAbsSpinner.getSelectedItemId()); in testOnSaveAndRestoreInstanceState()
290 public long getItemId(int position) { in getItemId() method in AbsSpinnerTest.MockSpinnerAdapter
DPopupMenuTest.java126 assertEquals(R.id.action_highlight, menu.getItem(0).getItemId()); in verifyMenuContent()
127 assertEquals(R.id.action_edit, menu.getItem(1).getItemId()); in verifyMenuContent()
128 assertEquals(R.id.action_delete, menu.getItem(2).getItemId()); in verifyMenuContent()
129 assertEquals(R.id.action_ignore, menu.getItem(3).getItemId()); in verifyMenuContent()
130 assertEquals(R.id.action_share, menu.getItem(4).getItemId()); in verifyMenuContent()
131 assertEquals(R.id.action_print, menu.getItem(5).getItemId()); in verifyMenuContent()
136 assertEquals(R.id.action_share_email, shareSubMenu.getItem(0).getItemId()); in verifyMenuContent()
137 assertEquals(R.id.action_share_circles, shareSubMenu.getItem(1).getItemId()); in verifyMenuContent()
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()
519 View itemView1 = mActivity.findViewById(menuItem1.getItemId()); in testItemViewAttributes()
527 View itemView2 = mActivity.findViewById(menuItem2.getItemId()); in testItemViewAttributes()
DDummyAdapter.java44 public long getItemId(int position) { in getItemId() method in DummyAdapter
DArrayAdapterTest.java328 assertEquals(0, mArrayAdapter.getItemId(0)); in testGetItemId()
329 assertEquals(1, mArrayAdapter.getItemId(1)); in testGetItemId()
330 assertEquals(2, mArrayAdapter.getItemId(2)); in testGetItemId()
333 assertEquals(-1, mArrayAdapter.getItemId(-1)); in testGetItemId()
334 assertEquals(mArrayAdapter.getCount(), mArrayAdapter.getItemId(mArrayAdapter.getCount())); in testGetItemId()
DHeaderViewListAdapterTest.java276 assertEquals(-1, headerViewListAdapter.getItemId(0)); in testGetItemId()
277 assertEquals(mFullAdapter.getItemId(0), headerViewListAdapter.getItemId(2)); in testGetItemId()
415 public long getItemId(int position) { in getItemId() method in HeaderViewListAdapterTest.HeaderViewEmptyAdapter
480 public long getItemId(int position) { in getItemId() method in HeaderViewListAdapterTest.HeaderViewFullAdapter
DGalleryCtsActivity.java56 public long getItemId(int position) { in getItemId() method in GalleryCtsActivity.ImageAdapter
DCursorAdapterTest.java319 assertEquals(0, cursorAdapter.getItemId(0)); in testGetItemId()
322 assertEquals(FIRST_ITEM_ID, cursorAdapter.getItemId(0)); in testGetItemId()
324 assertEquals(SECOND_ITEM_ID, cursorAdapter.getItemId(1)); in testGetItemId()
327 assertEquals(0, cursorAdapter.getItemId(2)); in testGetItemId()
DSimpleAdapterTest.java159 assertEquals(0, mSimpleAdapter.getItemId(0)); in testGetItemId()
161 assertEquals(19, mSimpleAdapter.getItemId(19)); in testGetItemId()
164 assertEquals(-1, mSimpleAdapter.getItemId(-1)); in testGetItemId()
166 assertEquals(20, mSimpleAdapter.getItemId(20)); in testGetItemId()
DBaseAdapterTest.java159 public long getItemId(int position) { in getItemId() method in BaseAdapterTest.MockBaseAdapter
/cts/tests/tests/view/src/android/view/cts/
DMenuTestActivity.java31 mMenuItemIdTracker = item.getItemId(); in handleMenuItem()
DMenuTest.java76 mMenu.findItem(R.id.no_modifiers).getItemId()); in testPerformShortcut()
84 mMenu.findItem(R.id.default_modifiers).getItemId()); in testPerformShortcut()
92 mMenu.findItem(R.id.single_modifier).getItemId()); in testPerformShortcut()
100 mMenu.findItem(R.id.multiple_modifiers).getItemId()); in testPerformShortcut()
/cts/tests/tests/appwidget/src/android/appwidget/cts/service/
DMyAppWidgetService.java72 public long getItemId(int i) { in getItemId() method in MyAppWidgetService.DefaultFactory
/cts/tests/tests/content/HelloWorldApp/src7/com/example/helloworld/
DMainActivity.java49 int id = item.getItemId(); in onOptionsItemSelected()
/cts/tests/tests/content/HelloWorldApp/src5/com/example/helloworld/
DMainActivity.java49 int id = item.getItemId(); in onOptionsItemSelected()
/cts/tests/tests/content/HelloWorldApp/src_shell/com/android/shell/
DMainActivity.java49 int id = item.getItemId(); in onOptionsItemSelected()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/widget/
DWidgetCtsService.java78 public long getItemId(int position) { in getItemId() method in CtsRemoteViewsFactory
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimCtsActivity.java80 public long getItemId(int position) { in getItemId() method in GridLayoutAnimCtsActivity.MockGridViewAdapter
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DTestAdapter.java72 public long getItemId(int position) { in getItemId() method in TestAdapter
DBleScannerHardwareScanFilterActivity.java144 public long getItemId(int arg0) { in getItemId() method in BleScannerHardwareScanFilterActivity.MapAdapter
/cts/tests/app/app/src/android/app/stubs/
DTestDialog.java251 switch (item.getItemId()) { in onOptionsItemSelected()
274 switch (item.getItemId()) { in onContextItemSelected()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DPassFailButtons.java239 if (item.getItemId() == android.R.id.home) { in onOptionsItemSelected()
329 if (item.getItemId() == android.R.id.home) { in onOptionsItemSelected()
438 if (item.getItemId() == android.R.id.home) { in onOptionsItemSelected()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/
DAccessibilityEndToEndActivity.java57 public long getItemId(int position) { in onCreate()

12