/packages/apps/Settings/tests/robotests/src/com/android/settings/users/ |
D | UserSettingsTest.java | 247 MenuItem menuItem = mock(MenuItem.class); in withDisallowRemoveUser_ShouldDisableRemoveUser() local 250 doReturn(title).when(menuItem).getTitle(); in withDisallowRemoveUser_ShouldDisableRemoveUser() 251 doReturn(menuItem).when(menu).add( in withDisallowRemoveUser_ShouldDisableRemoveUser() 260 verify(menuItem).setOnMenuItemClickListener(notNull()); in withDisallowRemoveUser_ShouldDisableRemoveUser() 262 verify(menuItem).setTitle(AdditionalMatchers.not(eq(defaultTitle))); in withDisallowRemoveUser_ShouldDisableRemoveUser() 272 MenuItem menuItem = mock(MenuItem.class); in withoutDisallowRemoveUser_ShouldNotDisableRemoveUser() local 275 doReturn(title).when(menuItem).getTitle(); in withoutDisallowRemoveUser_ShouldNotDisableRemoveUser() 276 doReturn(menuItem).when(menu).add( in withoutDisallowRemoveUser_ShouldNotDisableRemoveUser() 284 verify(menuItem, never()).setOnMenuItemClickListener(notNull()); in withoutDisallowRemoveUser_ShouldNotDisableRemoveUser() 286 verify(menuItem, never()).setTitle(AdditionalMatchers.not(eq(defaultTitle))); in withoutDisallowRemoveUser_ShouldNotDisableRemoveUser()
|
/packages/apps/Dialer/java/com/android/dialer/speeddial/ |
D | ContextMenu.java | 101 public boolean onMenuItemClick(MenuItem menuItem) { in onMenuItemClick() argument 102 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/localepicker/ |
D | LocaleListEditor.java | 136 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument 137 switch (menuItem.getItemId()) { in onOptionsItemSelected() 152 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected() 252 final MenuItem menuItem = in onCreateOptionsMenu() local 254 menuItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_WITH_TEXT); in onCreateOptionsMenu() 255 menuItem.setIcon(R.drawable.ic_delete); in onCreateOptionsMenu()
|
/packages/apps/Settings/src/com/android/settings/localepicker/ |
D | LocaleListEditor.java | 136 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument 137 switch (menuItem.getItemId()) { in onOptionsItemSelected() 152 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected() 252 final MenuItem menuItem = in onCreateOptionsMenu() local 254 menuItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_WITH_TEXT); in onCreateOptionsMenu() 255 menuItem.setIcon(R.drawable.ic_delete); in onCreateOptionsMenu()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | InstantAppButtonsPreferenceControllerTest.java | 157 final MenuItem menuItem = mock(MenuItem.class); in onPrepareOptionsMenu_noAppStoreLink_shoulDisableInstallInstantAppMenu() local 158 when(menu.findItem(AppInfoDashboardFragment.INSTALL_INSTANT_APP_MENU)).thenReturn(menuItem); in onPrepareOptionsMenu_noAppStoreLink_shoulDisableInstallInstantAppMenu() 162 verify(menuItem).setEnabled(false); in onPrepareOptionsMenu_noAppStoreLink_shoulDisableInstallInstantAppMenu() 175 final MenuItem menuItem = mock(MenuItem.class); in onPrepareOptionsMenu_hasAppStoreLink_shoulNotDisableInstallInstantAppMenu() local 176 when(menu.findItem(AppInfoDashboardFragment.INSTALL_INSTANT_APP_MENU)).thenReturn(menuItem); in onPrepareOptionsMenu_hasAppStoreLink_shoulNotDisableInstallInstantAppMenu() 180 verify(menuItem, never()).setEnabled(false); in onPrepareOptionsMenu_hasAppStoreLink_shoulNotDisableInstallInstantAppMenu()
|
/packages/apps/Settings/src/com/android/settings/location/ |
D | RecentLocationRequestSeeAllFragment.java | 73 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument 74 switch (menuItem.getItemId()) { in onOptionsItemSelected() 77 mShowSystem = menuItem.getItemId() == MENU_SHOW_SYSTEM; in onOptionsItemSelected() 84 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
|
/packages/apps/DeskClock/src/com/android/deskclock/actionbarmenu/ |
D | OptionsMenuManager.kt | 60 val menuItem: MenuItem? = menu.findItem(controller.id) in onPrepareOptionsMenu() constant 61 if (menuItem != null) { in onPrepareOptionsMenu() 62 controller.onPrepareOptionsItem(menuItem) in onPrepareOptionsMenu()
|
D | OptionsMenuManager.java | 64 final MenuItem menuItem = menu.findItem(controller.getId()); in onPrepareOptionsMenu() local 65 if (menuItem != null) { in onPrepareOptionsMenu() 66 controller.onPrepareOptionsItem(menuItem); in onPrepareOptionsMenu()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | UiBot.java | 279 UiObject2 menuItem = null; in findMenuWithName() local 281 menuItem = it.next(); in findMenuWithName() 282 UiObject2 text = menuItem.findObject(By.text(label)); in findMenuWithName() 283 if (text != null && menuItem.isClickable()) { in findMenuWithName() 287 return menuItem; in findMenuWithName()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
D | ArchivedConversationListActivity.java | 74 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument 75 switch(menuItem.getItemId()) { in onOptionsItemSelected() 83 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
|
D | ConversationListActivity.java | 85 public boolean onOptionsItemSelected(final MenuItem menuItem) { in onOptionsItemSelected() argument 86 switch(menuItem.getItemId()) { in onOptionsItemSelected() 103 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ |
D | IngestActivity.java | 365 private void setSwitcherMenuState(MenuItem menuItem, boolean inFullscreenMode) { in setSwitcherMenuState() argument 366 if (menuItem == null) { in setSwitcherMenuState() 370 menuItem.setIcon(android.R.drawable.ic_menu_zoom); in setSwitcherMenuState() 371 menuItem.setTitle(R.string.ingest_switch_photo_fullscreen); in setSwitcherMenuState() 373 menuItem.setIcon(android.R.drawable.ic_dialog_dialer); in setSwitcherMenuState() 374 menuItem.setTitle(R.string.ingest_switch_photo_grid); in setSwitcherMenuState()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | BugleActionBarActivity.java | 197 public boolean onOptionsItemSelected(final MenuItem menuItem) { in onOptionsItemSelected() argument 199 mActionMode.getCallback().onActionItemClicked(mActionMode, menuItem)) { in onOptionsItemSelected() 203 switch (menuItem.getItemId()) { in onOptionsItemSelected() 210 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | SettingsPreferenceFragment.java | 146 public boolean onOptionsItemSelected(final MenuItem menuItem) { in onOptionsItemSelected() argument 147 boolean lifecycleHandled = mLifecycle.onOptionsItemSelected(menuItem); in onOptionsItemSelected() 149 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
D | PaymentSettings.java | 99 MenuItem menuItem = menu.add(R.string.nfc_payment_how_it_works); in onCreateOptionsMenu() local 101 menuItem.setIntent(howItWorksIntent); in onCreateOptionsMenu() 102 menuItem.setShowAsActionFlags(MenuItem.SHOW_AS_ACTION_NEVER); in onCreateOptionsMenu()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/nfc/ |
D | PaymentSettings.java | 99 MenuItem menuItem = menu.add(R.string.nfc_payment_how_it_works); in onCreateOptionsMenu() local 101 menuItem.setIntent(howItWorksIntent); in onCreateOptionsMenu() 102 menuItem.setShowAsActionFlags(MenuItem.SHOW_AS_ACTION_NEVER); in onCreateOptionsMenu()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/ |
D | BluetoothDeviceDetailsFragment.java | 150 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument 151 if (menuItem.getItemId() == EDIT_DEVICE_NAME_ITEM_ID) { in onOptionsItemSelected() 156 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/ |
D | WifiNetworkDetailsFragment.java | 106 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument 107 switch (menuItem.getItemId()) { in onOptionsItemSelected() 117 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/ |
D | WifiDppQrCodeGeneratorFragment.java | 98 final MenuItem menuItem = menu.findItem(Menu.FIRST); in onCreateOptionsMenu() local 99 if (menuItem != null) { in onCreateOptionsMenu() 100 menuItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER); in onCreateOptionsMenu()
|
/packages/apps/Settings/src/com/android/settings/wifi/dpp/ |
D | WifiDppQrCodeGeneratorFragment.java | 98 final MenuItem menuItem = menu.findItem(Menu.FIRST); in onCreateOptionsMenu() local 99 if (menuItem != null) { in onCreateOptionsMenu() 100 menuItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER); in onCreateOptionsMenu()
|
/packages/apps/Settings/src/com/android/settings/wifi/details/ |
D | WifiNetworkDetailsFragment.java | 108 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument 109 switch (menuItem.getItemId()) { in onOptionsItemSelected() 119 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothDeviceDetailsFragment.java | 152 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument 153 if (menuItem.getItemId() == EDIT_DEVICE_NAME_ITEM_ID) { in onOptionsItemSelected() 158 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
|
/packages/apps/Dialer/java/com/android/dialer/main/impl/ |
D | MainSearchController.java | 470 public boolean onMenuItemClicked(MenuItem menuItem) { in onMenuItemClicked() argument 471 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/ |
D | MobileNetworkSettings.java | 244 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument 247 if (menuItem.getItemId() == R.id.edit_sim_name) { in onOptionsItemSelected() 253 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationActivity.java | 191 public boolean onOptionsItemSelected(final MenuItem menuItem) { in onOptionsItemSelected() argument 192 if (super.onOptionsItemSelected(menuItem)) { in onOptionsItemSelected() 195 if (menuItem.getItemId() == android.R.id.home) { in onOptionsItemSelected()
|