Home
last modified time | relevance | path

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

12

/cts/tests/tests/widget/src/android/widget/cts/
DActionMenuViewTest.java89 assertEquals(R.id.action_highlight, menu.getItem(0).getItemId()); in testMenuContent()
90 assertEquals(R.id.action_edit, menu.getItem(1).getItemId()); in testMenuContent()
91 assertEquals(R.id.action_delete, menu.getItem(2).getItemId()); in testMenuContent()
92 assertEquals(R.id.action_ignore, menu.getItem(3).getItemId()); in testMenuContent()
93 assertEquals(R.id.action_share, menu.getItem(4).getItemId()); in testMenuContent()
94 assertEquals(R.id.action_print, menu.getItem(5).getItemId()); in testMenuContent()
DRemoteViewsFixedCollectionAdapterTest.java140 assertEquals(3, unparceled.getItemId(0)); in testParcelingAndUnparceling()
141 assertEquals(5, unparceled.getItemId(1)); in testParcelingAndUnparceling()
154 assertEquals(3, unparceled.getItemId(0)); in testParcelingAndUnparceling()
155 assertEquals(5, unparceled.getItemId(1)); in testParcelingAndUnparceling()
179 assertEquals(3, unparceled.getItemId(0)); in testParcelingAndUnparceling_afterAttaching()
180 assertEquals(5, unparceled.getItemId(1)); in testParcelingAndUnparceling_afterAttaching()
208 assertEquals(3, unparceled.getItemId(0)); in testParcelingAndUnparceling_multiplePackages()
209 assertEquals(5, unparceled.getItemId(1)); in testParcelingAndUnparceling_multiplePackages()
240 assertEquals(3, items.getItemId(0)); in testBuilder_viewTypeCountUnspecified()
241 assertEquals(5, items.getItemId(1)); in testBuilder_viewTypeCountUnspecified()
[all …]
DAbsSpinnerTest.java155 assertEquals(adapter.getItemId(0), mAbsSpinner.getSelectedItemId()); in testAccessAdapter()
158 assertEquals(adapter.getItemId(1), mAbsSpinner.getSelectedItemId()); in testAccessAdapter()
260 assertEquals(adapter.getItemId(0), mAbsSpinner.getSelectedItemId()); in testOnSaveAndRestoreInstanceState()
265 assertEquals(adapter.getItemId(1), mAbsSpinner.getSelectedItemId()); in testOnSaveAndRestoreInstanceState()
272 assertEquals(adapter.getItemId(0), mAbsSpinner.getSelectedItemId()); in testOnSaveAndRestoreInstanceState()
299 public long getItemId(int position) { in getItemId() method in AbsSpinnerTest.MockSpinnerAdapter
DPopupMenuTest.java134 assertEquals(R.id.action_highlight, menu.getItem(0).getItemId()); in verifyMenuContent()
135 assertEquals(R.id.action_edit, menu.getItem(1).getItemId()); in verifyMenuContent()
136 assertEquals(R.id.action_delete, menu.getItem(2).getItemId()); in verifyMenuContent()
137 assertEquals(R.id.action_ignore, menu.getItem(3).getItemId()); in verifyMenuContent()
138 assertEquals(R.id.action_share, menu.getItem(4).getItemId()); in verifyMenuContent()
139 assertEquals(R.id.action_print, menu.getItem(5).getItemId()); in verifyMenuContent()
144 assertEquals(R.id.action_share_email, shareSubMenu.getItem(0).getItemId()); in verifyMenuContent()
145 assertEquals(R.id.action_share_circles, shareSubMenu.getItem(1).getItemId()); in verifyMenuContent()
DDummyAdapter.java44 public long getItemId(int position) { in getItemId() method in DummyAdapter
DToolbarTest.java149 assertEquals(R.id.action_highlight, menu.getItem(0).getItemId()); in testMenuContent()
150 assertEquals(R.id.action_edit, menu.getItem(1).getItemId()); in testMenuContent()
151 assertEquals(R.id.action_delete, menu.getItem(2).getItemId()); in testMenuContent()
152 assertEquals(R.id.action_ignore, menu.getItem(3).getItemId()); in testMenuContent()
153 assertEquals(R.id.action_share, menu.getItem(4).getItemId()); in testMenuContent()
154 assertEquals(R.id.action_print, menu.getItem(5).getItemId()); in testMenuContent()
527 View itemView1 = mActivity.findViewById(menuItem1.getItemId()); in testItemViewAttributes()
535 View itemView2 = mActivity.findViewById(menuItem2.getItemId()); in testItemViewAttributes()
DArrayAdapterTest.java337 assertEquals(0, mArrayAdapter.getItemId(0)); in testGetItemId()
338 assertEquals(1, mArrayAdapter.getItemId(1)); in testGetItemId()
339 assertEquals(2, mArrayAdapter.getItemId(2)); in testGetItemId()
342 assertEquals(-1, mArrayAdapter.getItemId(-1)); in testGetItemId()
343 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.java87 mMenu.findItem(R.id.no_modifiers).getItemId()); in testPerformShortcut()
95 mMenu.findItem(R.id.default_modifiers).getItemId()); in testPerformShortcut()
103 mMenu.findItem(R.id.single_modifier).getItemId()); in testPerformShortcut()
111 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/src_verifier/com/example/helloverifier/
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/content/HelloWorldApp/src5/com/example/helloworld/
DMainActivity.java59 int id = item.getItemId(); in onOptionsItemSelected()
/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.java76 public long getItemId(int position) { in getItemId() method in TestAdapter
/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/managedprovisioning/
DSetSupportMessageActivity.java94 if (item.getItemId() == android.R.id.home) { in onOptionsItemSelected()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DPassFailButtons.java303 if (item.getItemId() == android.R.id.home) { in onOptionsItemSelected()
407 if (item.getItemId() == android.R.id.home) { in onOptionsItemSelected()
521 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