Home
last modified time | relevance | path

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

12345678910>>...14

/packages/apps/Dialer/java/com/android/dialer/speeddial/
DContextMenu.java102 if (menuItem.getItemId() == R.id.voice_call_container) { in onMenuItemClick()
104 } else if (menuItem.getItemId() == R.id.video_call_container) { in onMenuItemClick()
106 } else if (menuItem.getItemId() == R.id.send_message_container) { in onMenuItemClick()
108 } else if (menuItem.getItemId() == R.id.remove_container) { in onMenuItemClick()
110 } else if (menuItem.getItemId() == R.id.contact_info_container) { in onMenuItemClick()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastListActivityTest.java214 doReturn(MENU_DELETE).when(mockMenuItem).getItemId(); in testOnContextItemSelectedDelete()
245 doReturn(MENU_VIEW_DETAILS).when(mockMenuItem).getItemId(); in testOnContextItemSelectedViewDetails()
294 doReturn(android.R.id.home).when(mockMenuItem).getItemId(); in testOnOptionsItemSelected()
306 doReturn(MENU_DELETE_ALL).when(mockMenuItem).getItemId(); in testFragmentOnOptionsItemSelected()
324 doReturn(MENU_SHOW_ALL_MESSAGES).when(mockMenuItem).getItemId(); in testFragmentOnOptionsItemSelected()
326 doReturn(MENU_SHOW_REGULAR_MESSAGES).when(mockMenuItem).getItemId(); in testFragmentOnOptionsItemSelected()
/packages/apps/Contacts/tests/src/com/android/contacts/widget/
DCompositeListAdapterTest.java155 assertEquals(0, adapter.getItemId(0)); in testGetItemId()
156 assertEquals(1, adapter.getItemId(1)); in testGetItemId()
157 assertEquals(0, adapter.getItemId(2)); in testGetItemId()
158 assertEquals(1, adapter.getItemId(3)); in testGetItemId()
159 assertEquals(2, adapter.getItemId(4)); in testGetItemId()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/
DManageApplicationsTest.java465 adapter.rebuild(mSortRecent.getItemId()); in sortOrderSavedOnRebuild()
466 assertThat(mFragment.mSortOrder).isEqualTo(mSortRecent.getItemId()); in sortOrderSavedOnRebuild()
468 adapter.rebuild(mSortFrequent.getItemId()); in sortOrderSavedOnRebuild()
469 assertThat(mFragment.mSortOrder).isEqualTo(mSortFrequent.getItemId()); in sortOrderSavedOnRebuild()
501 if (id == mAppReset.getItemId()) { in setUpOptionMenus()
504 if (id == mSortFrequent.getItemId()) { in setUpOptionMenus()
507 if (id == mSortRecent.getItemId()) { in setUpOptionMenus()
/packages/services/Telephony/src/com/android/phone/settings/fdn/
DFdnList.java52 if (item.getItemId() == MENU_EDIT) {
54 } else if (item.getItemId() == MENU_DELETE) {
56 } else if (item.getItemId() == MENU_DIAL) {
165 switch (item.getItemId()) { in onOptionsItemSelected()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DBaseTimeZoneAdapter.java108 public long getItemId(int position) { in getItemId() method in BaseTimeZoneAdapter
110 return isPositionHeader(position) ? -1 : getDataItem(position).getItemId(); in getItemId()
168 long getItemId(); in getItemId() method
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/timezone/
DBaseTimeZoneAdapter.java108 public long getItemId(int position) { in getItemId() method in BaseTimeZoneAdapter
110 return isPositionHeader(position) ? -1 : getDataItem(position).getItemId(); in getItemId()
168 long getItemId(); in getItemId() method
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogActivity.java157 if (item.getItemId() == android.R.id.home) { in onOptionsItemSelected()
163 } else if (item.getItemId() == R.id.delete_all) { in onOptionsItemSelected()
235 public long getItemId(int position) { in getItemId() method in CallLogActivity.ViewPagerAdapter
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/
DPumpActivity.java129 if (item.getItemId() == android.R.id.home) { in onOptionsItemSelected()
139 if (pages.getId() == item.getItemId()) { in onNavigationItemSelected()
207 public long getItemId(int position) { in getItemId() method in PumpActivity.ActivityPagerAdapter
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditorDraw.java173 if (item.getItemId() != R.id.draw_menu_clear) { in showPopupMenu()
206 switch (item.getItemId()) { in selectMenuItem()
220 if (item.getItemId() != R.id.draw_menu_clear) { in selectMenuItem()
DEditorColorBorder.java150 switch (item.getItemId()) { in selectMenuItem()
164 if (item.getItemId() != R.id.color_border_menu_clear) { in selectMenuItem()
/packages/providers/MediaProvider/src/com/android/providers/media/
DRingtonePickerActivity.java398 if (mAdapter.getItemId(i) == mCheckedItemId) { in requeryForAdapter()
479 mCheckedItemId = mAdapter.getItemId(getRingtoneManagerPosition(pos)); in setCheckedItem()
725 public long getItemId(int position) { in getItemId() method in RingtonePickerActivity.BadgedRingtoneAdapter
729 return super.getItemId(position); in getItemId()
/packages/apps/Settings/src/com/android/settings/location/
DRecentLocationRequestSeeAllFragment.java74 switch (menuItem.getItemId()) { in onOptionsItemSelected()
77 mShowSystem = menuItem.getItemId() == MENU_SHOW_SYSTEM; in onOptionsItemSelected()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastListActivity.java90 switch (item.getItemId()) { in onOptionsItemSelected()
382 switch (item.getItemId()) { in onContextItemSelected()
403 switch(item.getItemId()) { in onOptionsItemSelected()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
DUserDictionaryAddWordFragment.java111 if (item.getItemId() == OPTIONS_MENU_ADD) { in onOptionsItemSelected()
116 if (item.getItemId() == OPTIONS_MENU_DELETE) { in onOptionsItemSelected()
/packages/apps/Contacts/src/com/android/contacts/widget/
DCompositeListAdapter.java153 public long getItemId(int position) { in getItemId() method in CompositeListAdapter
159 return mAdapters[i].getItemId(position - start); in getItemId()
/packages/apps/Contacts/src/com/android/contacts/list/
DAccountFilterActivity.java158 public long getItemId(int position) { in getItemId() method in AccountFilterActivity.FilterListAdapter
187 switch (item.getItemId()) { in onOptionsItemSelected()
/packages/apps/Messaging/src/com/android/messaging/ui/
DCompositeAdapter.java216 public long getItemId(final int position) { in getItemId() method in CompositeAdapter
229 return mPartitions[i].getAdapter().getItemId(offset); in getItemId()
/packages/apps/Dialer/java/com/android/dialer/main/impl/
DMainSearchController.java471 if (menuItem.getItemId() == R.id.settings) { in onMenuItemClicked()
475 } else if (menuItem.getItemId() == R.id.clear_frequents) { in onMenuItemClicked()
479 } else if (menuItem.getItemId() == R.id.menu_call_history) { in onMenuItemClicked()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DApnEditorTest.java345 doReturn(Menu.FIRST + 1).when(item).getItemId(); in testSaveApnData_pressSaveButtonWithValidApnData_shouldSaveApnData()
365 doReturn(Menu.FIRST + 1).when(item).getItemId(); in testSaveApnData_apnDataInvalid_shouldNotSaveApnData()
385 doReturn(Menu.FIRST).when(item).getItemId(); in testDeleteApnData_shouldDeleteData()
/packages/apps/ThemePicker/src/com/android/customization/picker/
DCustomizationPickerActivity.java134 navigateToSection(mBottomNav.getMenu().getItem(section).getItemId()); in onCreate()
237 int id = item.getItemId(); in setUpBottomNavView()
246 int id = item.getItemId(); in setUpBottomNavView()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/television/
DManagePermissionsFragment.java71 if (item.getItemId() == android.R.id.home) { in onOptionsItemSelected()
207 switch (item.getItemId()) { in onOptionsItemSelected()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransferHistory.java169 switch (item.getItemId()) { in onOptionsItemSelected()
184 switch (item.getItemId()) { in onContextItemSelected()
/packages/apps/Contacts/src/com/android/contacts/editor/
DPickRawContactDialogFragment.java79 public long getItemId(int position) { in getItemId() method in PickRawContactDialogFragment.RawContactAccountListAdapter
216 final long rawContactId = mAdapter.getItemId(which); in onCreateDialog()
/packages/apps/Gallery2/src/com/android/photos/views/
DHeaderGridView.java353 public long getItemId(int position) { in getItemId() method in HeaderGridView.HeaderViewGridAdapter
359 return mAdapter.getItemId(adjPosition); in getItemId()

12345678910>>...14