Home
last modified time | relevance | path

Searched refs:menuItem (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleListEditor.java110 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument
111 switch (menuItem.getItemId()) { in onOptionsItemSelected()
126 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
213 final MenuItem menuItem = in onCreateOptionsMenu() local
215 menuItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_WITH_TEXT); in onCreateOptionsMenu()
216 menuItem.setIcon(R.drawable.ic_delete); in onCreateOptionsMenu()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DArchivedConversationListActivity.java74 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument
75 switch(menuItem.getItemId()) { in onOptionsItemSelected()
83 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
DConversationListActivity.java85 public boolean onOptionsItemSelected(final MenuItem menuItem) { in onOptionsItemSelected() argument
86 switch(menuItem.getItemId()) { in onOptionsItemSelected()
103 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
DMultiSelectActionModeCallback.java105 public boolean onActionItemClicked(ActionMode actionMode, MenuItem menuItem) { in onActionItemClicked() argument
106 switch(menuItem.getItemId()) { in onActionItemClicked()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DWebViewContextMenu.java241 final MenuItem menuItem = menu.getItem(i); in onCreateContextMenu() local
242 menuItem.setOnMenuItemClickListener(this); in onCreateContextMenu()
411 final MenuItem menuItem = menu.findItem(R.id.view_image_context_menu_id); in setupImageMenu() local
412 menuItem.setOnMenuItemClickListener(new SendIntent(intent, "view_image")); in setupImageMenu()
481 protected boolean onMenuItemSelected(MenuItem menuItem) { in onMenuItemSelected() argument
482 return mActivity.onOptionsItemSelected(menuItem); in onMenuItemSelected()
/packages/apps/Settings/src/com/android/settings/nfc/
DPaymentSettings.java97 MenuItem menuItem = menu.add(R.string.nfc_payment_how_it_works); in onCreateOptionsMenu() local
99 menuItem.setIntent(howItWorksIntent); in onCreateOptionsMenu()
100 menuItem.setShowAsActionFlags(MenuItem.SHOW_AS_ACTION_NEVER); in onCreateOptionsMenu()
/packages/apps/Messaging/src/com/android/messaging/ui/
DBugleActionBarActivity.java197 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/Settings/src/com/android/settings/accessibility/
DToggleFeaturePreferenceFragment.java118 MenuItem menuItem = menu.add(mSettingsTitle); in onCreateOptionsMenu() local
119 menuItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); in onCreateOptionsMenu()
120 menuItem.setIntent(mSettingsIntent); in onCreateOptionsMenu()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
DIngestActivity.java365 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/conversation/
DConversationActivity.java191 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()
DConversationFragment.java306 public boolean onActionItemClicked(final ActionMode actionMode, final MenuItem menuItem) {
309 switch (menuItem.getItemId()) {
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactPickerFragment.java230 public boolean onMenuItemClick(final MenuItem menuItem) { in onMenuItemClick() argument
231 switch (menuItem.getItemId()) { in onMenuItemClick()
237 menuItem.setIcon(R.drawable.ic_ime_light); in onMenuItemClick()
240 menuItem.setIcon(R.drawable.ic_numeric_dialpad); in onMenuItemClick()
/packages/apps/Calendar/src/com/android/calendar/
DSearchActivity.java255 MenuItem menuItem = menu.findItem(R.id.action_today); in onCreateOptionsMenu() local
257 LayerDrawable icon = (LayerDrawable) menuItem.getIcon(); in onCreateOptionsMenu()
261 menuItem.setIcon(R.drawable.ic_menu_today_no_date_holo_light); in onCreateOptionsMenu()
DAllInOneActivity.java743 MenuItem menuItem = menu.findItem(R.id.action_today); in onCreateOptionsMenu() local
747 LayerDrawable icon = (LayerDrawable) menuItem.getIcon(); in onCreateOptionsMenu()
750 menuItem.setIcon(R.drawable.ic_menu_today_no_date_holo_light); in onCreateOptionsMenu()
/packages/apps/Gallery2/src/com/android/photos/
DMultiChoiceManager.java157 MenuItem menuItem = menu.findItem(R.id.menu_share); in onCreateActionMode() local
158 mShareActionProvider = (ShareActionProvider) menuItem.getActionProvider(); in onCreateActionMode()
/packages/apps/Settings/src/com/android/settings/
DDreamSettings.java278 for (MenuItem menuItem : mMenuItemsWhenEnabled) {
279 menuItem.setEnabled(dreamsEnabled);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DMenuExecutor.java311 public void onMenuClicked(MenuItem menuItem, String confirmMsg, in onMenuClicked() argument
313 final int action = menuItem.getItemId(); in onMenuClicked()
/packages/apps/Camera2/src/com/android/camera/
DCameraActivity.java2286 MenuItem menuItem = menu.add(appName); in onCreateOptionsMenu() local
2287 menuItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS); in onCreateOptionsMenu()
2288 menuItem.setIntent(mGalleryIntent); in onCreateOptionsMenu()
2292 menuItem.setIcon(galleryLogo); in onCreateOptionsMenu()