Home
last modified time | relevance | path

Searched refs:menu (Results 1 – 25 of 191) sorted by relevance

12345678

/packages/apps/Browser/src/com/android/browser/
DController.java1270 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
1275 inflater.inflate(R.menu.browser, menu); in onCreateOptionsMenu()
1280 public void onCreateContextMenu(ContextMenu menu, View v, in onCreateContextMenu() argument
1309 inflater.inflate(R.menu.browsercontext, menu); in onCreateContextMenu()
1314 menu.setGroupVisible(R.id.PHONE_MENU, in onCreateContextMenu()
1316 menu.setGroupVisible(R.id.EMAIL_MENU, in onCreateContextMenu()
1318 menu.setGroupVisible(R.id.GEO_MENU, in onCreateContextMenu()
1320 menu.setGroupVisible(R.id.IMAGE_MENU, in onCreateContextMenu()
1323 menu.setGroupVisible(R.id.ANCHOR_MENU, in onCreateContextMenu()
1330 menu.setGroupVisible(R.id.SELECT_TEXT_MENU, hitText); in onCreateContextMenu()
[all …]
DBrowserActivity.java146 public boolean onMenuOpened(int featureId, Menu menu) { in onMenuOpened() argument
148 mController.onMenuOpened(featureId, menu); in onMenuOpened()
154 public void onOptionsMenuClosed(Menu menu) { in onOptionsMenuClosed() argument
155 mController.onOptionsMenuClosed(menu); in onOptionsMenuClosed()
159 public void onContextMenuClosed(Menu menu) { in onContextMenuClosed() argument
160 super.onContextMenuClosed(menu); in onContextMenuClosed()
161 mController.onContextMenuClosed(menu); in onContextMenuClosed()
206 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
207 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
208 return mController.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
[all …]
DPhoneUi.java167 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
168 updateMenuState(mActiveTab, menu); in onPrepareOptionsMenu()
173 public void updateMenuState(Tab tab, Menu menu) { in updateMenuState() argument
174 MenuItem bm = menu.findItem(R.id.bookmarks_menu_id); in updateMenuState()
178 MenuItem abm = menu.findItem(R.id.add_bookmark_menu_id); in updateMenuState()
182 MenuItem info = menu.findItem(R.id.page_info_menu_id); in updateMenuState()
186 MenuItem newtab = menu.findItem(R.id.new_tab_menu_id); in updateMenuState()
190 MenuItem incognito = menu.findItem(R.id.incognito_menu_id); in updateMenuState()
194 MenuItem closeOthers = menu.findItem(R.id.close_other_tabs_id); in updateMenuState()
203 menu.setGroupVisible(R.id.LIVE_MENU, false); in updateMenuState()
[all …]
DBrowserHistoryPage.java286 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() argument
287 super.onCreateOptionsMenu(menu, inflater); in onCreateOptionsMenu()
288 inflater.inflate(R.menu.history, menu); in onCreateOptionsMenu()
343 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { in onCreateContextMenu() argument
354 inflater.inflate(R.menu.historycontext, menu); in onCreateContextMenu()
364 menu.setHeaderView(mContextHeader); in onCreateContextMenu()
368 menu.findItem(R.id.new_window_context_menu_id).setVisible(false); in onCreateContextMenu()
372 MenuItem item = menu.findItem(R.id.save_to_bookmarks_menu_id); in onCreateContextMenu()
380 menu.findItem(R.id.share_link_context_menu_id).setVisible(ri != null); in onCreateContextMenu()
382 super.onCreateContextMenu(menu, v, menuInfo); in onCreateContextMenu()
/packages/apps/Dialer/src/com/android/dialer/
DDialtactsActivity.java361 final Menu menu = popupMenu.getMenu();
362 popupMenu.inflate(R.menu.dialtacts_search_options);
363 final MenuItem filterOptionMenuItem = menu.findItem(R.id.filter_option);
365 final MenuItem addContactOptionMenuItem = menu.findItem(R.id.add_contact);
936 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
938 inflater.inflate(R.menu.dialtacts_options, menu); in onCreateOptionsMenu()
941 final MenuItem callSettingsMenuItem = menu.findItem(R.id.menu_call_settings); in onCreateOptionsMenu()
942 final MenuItem searchMenuItem = menu.findItem(R.id.search_on_action_bar); in onCreateOptionsMenu()
943 final MenuItem filterOptionMenuItem = menu.findItem(R.id.filter_option); in onCreateOptionsMenu()
953 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
[all …]
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallLogFragment.java325 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() argument
326 super.onCreateOptionsMenu(menu, inflater); in onCreateOptionsMenu()
327 inflater.inflate(R.menu.call_log_options, menu); in onCreateOptionsMenu()
331 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
332 final MenuItem itemDeleteAll = menu.findItem(R.id.delete_all); in onPrepareOptionsMenu()
338 showAllFilterMenuOptions(menu); in onPrepareOptionsMenu()
339 hideCurrentFilterMenuOption(menu); in onPrepareOptionsMenu()
343 menu.findItem(R.id.show_voicemails_only).setVisible(false); in onPrepareOptionsMenu()
348 private void hideCurrentFilterMenuOption(Menu menu) { in hideCurrentFilterMenuOption() argument
352 item = menu.findItem(R.id.show_all_calls); in hideCurrentFilterMenuOption()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DMenuExecutor.java168 public static void updateMenuOperation(Menu menu, int supported) { in updateMenuOperation() argument
181 setMenuItemVisible(menu, R.id.action_delete, supportDelete); in updateMenuOperation()
182 setMenuItemVisible(menu, R.id.action_rotate_ccw, supportRotate); in updateMenuOperation()
183 setMenuItemVisible(menu, R.id.action_rotate_cw, supportRotate); in updateMenuOperation()
184 setMenuItemVisible(menu, R.id.action_crop, supportCrop); in updateMenuOperation()
185 setMenuItemVisible(menu, R.id.action_trim, supportTrim); in updateMenuOperation()
186 setMenuItemVisible(menu, R.id.action_mute, supportMute); in updateMenuOperation()
188 setMenuItemVisible(menu, R.id.action_share_panorama, false); in updateMenuOperation()
189 setMenuItemVisible(menu, R.id.action_share, supportShare); in updateMenuOperation()
190 setMenuItemVisible(menu, R.id.action_setas, supportSetAs); in updateMenuOperation()
[all …]
/packages/apps/Calculator/src/com/android/calculator2/
DCalculator.java138 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
139 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
140 getMenuInflater().inflate(R.menu.menu, menu); in onCreateOptionsMenu()
145 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
146 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
147 menu.findItem(R.id.basic).setVisible(!getBasicVisibility()); in onPrepareOptionsMenu()
148 menu.findItem(R.id.advanced).setVisible(!getAdvancedVisibility()); in onPrepareOptionsMenu()
165 PopupMenu menu = constructPopupMenu(); in onClick() local
166 if (menu != null) { in onClick()
167 menu.show(); in onClick()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DMenuHelper.java106 public void gettingReadyToOpen(Menu menu, IImage image); in gettingReadyToOpen() argument
166 public static void enableShareMenuItem(Menu menu, boolean enabled) { in enableShareMenuItem() argument
167 MenuItem item = menu.findItem(MENU_IMAGE_SHARE); in enableShareMenuItem()
181 public static void enableShowOnMapMenuItem(Menu menu, boolean enabled) { in enableShowOnMapMenuItem() argument
182 MenuItem item = menu.findItem(MENU_IMAGE_SHOWMAP); in enableShowOnMapMenuItem()
578 Menu menu, in addImageMenuItems() argument
594 SubMenu rotateSubmenu = menu.addSubMenu(Menu.NONE, Menu.NONE, in addImageMenuItems()
627 MenuItem autoCrop = menu.add(Menu.NONE, Menu.NONE, in addImageMenuItems()
641 MenuItem setMenu = menu.add(Menu.NONE, Menu.NONE, in addImageMenuItems()
654 MenuItem item1 = menu.add(Menu.NONE, MENU_IMAGE_SHARE, in addImageMenuItems()
[all …]
DImageGallery.java166 private MenuItem addSlideShowMenu(Menu menu) { in addSlideShowMenu() argument
167 return menu.add(Menu.NONE, Menu.NONE, MenuHelper.POSITION_SLIDESHOW, in addSlideShowMenu()
476 public boolean onCreateOptionsMenu(Menu menu) {
481 MenuHelper.addCapturePictureMenuItems(menu, this);
483 MenuHelper.addCaptureVideoMenuItems(menu, this);
487 MenuHelper.addCaptureMenuItems(menu, this);
489 mSlideShowItem = addSlideShowMenu(menu);
492 MenuItem item = menu.add(Menu.NONE, Menu.NONE,
508 item = menu.add(Menu.NONE, Menu.NONE,
528 public boolean onPrepareOptionsMenu(Menu menu) {
[all …]
/packages/apps/Gallery2/src/com/android/photos/
DMultiChoiceManager.java132 private void updateActionItemVisibilities(Menu menu, int supportedOperations) { in updateActionItemVisibilities() argument
133 MenuItem editItem = menu.findItem(R.id.menu_edit); in updateActionItemVisibilities()
134 MenuItem deleteItem = menu.findItem(R.id.menu_delete); in updateActionItemVisibilities()
135 MenuItem shareItem = menu.findItem(R.id.menu_share); in updateActionItemVisibilities()
136 MenuItem cropItem = menu.findItem(R.id.menu_crop); in updateActionItemVisibilities()
137 MenuItem trimItem = menu.findItem(R.id.menu_trim); in updateActionItemVisibilities()
138 MenuItem muteItem = menu.findItem(R.id.menu_mute); in updateActionItemVisibilities()
139 MenuItem setAsItem = menu.findItem(R.id.menu_set_as); in updateActionItemVisibilities()
151 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
155 inflater.inflate(R.menu.gallery_multiselect, menu); in onCreateActionMode()
[all …]
/packages/apps/Mms/src/com/android/mms/ui/
DSlideshowEditActivity.java226 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
227 menu.clear(); in onPrepareOptionsMenu()
233 menu.add(0, MENU_MOVE_UP, 0, R.string.move_up).setIcon(R.drawable.ic_menu_move_up); in onPrepareOptionsMenu()
237 menu.add(0, MENU_MOVE_DOWN, 0, R.string.move_down).setIcon( in onPrepareOptionsMenu()
241menu.add(0, MENU_ADD_SLIDE, 0, R.string.add_slide).setIcon(R.drawable.ic_menu_add_slide); in onPrepareOptionsMenu()
243 menu.add(0, MENU_REMOVE_SLIDE, 0, R.string.remove_slide).setIcon( in onPrepareOptionsMenu()
246menu.add(0, MENU_ADD_SLIDE, 0, R.string.add_slide).setIcon(R.drawable.ic_menu_add_slide); in onPrepareOptionsMenu()
249 menu.add(0, MENU_DISCARD_SLIDESHOW, 0, in onPrepareOptionsMenu()
412 public void onCreateContextMenu(ContextMenu menu, View v, in onCreateContextMenu() argument
414 menu.setHeaderTitle(R.string.slideshow_options); in onCreateContextMenu()
[all …]
DConversationList.java387 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
388 getMenuInflater().inflate(R.menu.conversation_list_menu, menu); in onCreateOptionsMenu()
390 mSearchItem = menu.findItem(R.id.search); in onCreateOptionsMenu()
403 MenuItem cellBroadcastItem = menu.findItem(R.id.action_cell_broadcasts); in onCreateOptionsMenu()
428 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
429 MenuItem item = menu.findItem(R.id.action_delete_all); in onPrepareOptionsMenu()
434 item = menu.findItem(R.id.action_debug_dump); in onPrepareOptionsMenu()
532 public void onCreateContextMenu(ContextMenu menu, View v,
540 menu.setHeaderTitle(recipients.formatNames(","));
544 menu.add(0, MENU_VIEW, 0, R.string.menu_view);
[all …]
DComposeMessageActivity.java822 public void onCreateContextMenu(ContextMenu menu, View v,
828 menu.setHeaderTitle(c.getName());
831 menu.add(0, MENU_VIEW_CONTACT, 0, R.string.menu_view_contact)
834 menu.add(0, MENU_ADD_TO_CONTACTS, 0, R.string.menu_add_to_contacts)
899 private void addPositionBasedMenuItems(ContextMenu menu, View v, ContextMenuInfo menuInfo) { in addPositionBasedMenuItems() argument
910 addUriSpecificMenuItems(menu, v, position); in addPositionBasedMenuItems()
956 private void addUriSpecificMenuItems(ContextMenu menu, View v, int position) { in addUriSpecificMenuItems() argument
962 menu.addIntentOptions(0, 0, 0, in addUriSpecificMenuItems()
969 ContextMenu menu, MsgListMenuClickListener l, MessageItem msgItem) { in addCallAndContactMenuItems() argument
1004 menu.add(0, MENU_ADD_ADDRESS_TO_CONTACTS, 0, addContactString) in addCallAndContactMenuItems()
[all …]
DSlideEditorActivity.java340 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
344 menu.clear(); in onPrepareOptionsMenu()
353 menu.add(0, MENU_PREVIEW_SLIDESHOW, 0, R.string.preview_slideshow).setIcon( in onPrepareOptionsMenu()
359 menu.add(0, MENU_REMOVE_TEXT, 0, R.string.remove_text).setIcon( in onPrepareOptionsMenu()
365 menu.add(0, MENU_DEL_PICTURE, 0, R.string.remove_picture).setIcon( in onPrepareOptionsMenu()
368 menu.add(0, MENU_ADD_PICTURE, 0, R.string.add_picture).setIcon( in onPrepareOptionsMenu()
370 menu.add(0, MENU_TAKE_PICTURE, 0, R.string.attach_take_photo).setIcon( in onPrepareOptionsMenu()
376 menu.add(0, MENU_DEL_AUDIO, 0, R.string.remove_music).setIcon( in onPrepareOptionsMenu()
380 SubMenu subMenu = menu.addSubMenu(0, MENU_SUB_AUDIO, 0, R.string.add_music) in onPrepareOptionsMenu()
385 menu.add(0, MENU_RECORD_SOUND, 0, R.string.attach_record_sound) in onPrepareOptionsMenu()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransferHistory.java142 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
145 inflater.inflate(R.menu.transferhistory, menu); in onCreateOptionsMenu()
151 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
154 menu.findItem(R.id.transfer_menu_clear_all).setEnabled(showClear); in onPrepareOptionsMenu()
156 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
189 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { in onCreateContextMenu() argument
200 menu.setHeaderTitle(fileName); in onCreateContextMenu()
204 inflater.inflate(R.menu.receivedfilescontextfinished, menu); in onCreateContextMenu()
206 inflater.inflate(R.menu.transferhistorycontextfinished, menu); in onCreateContextMenu()
/packages/apps/Phone/src/com/android/phone/
DFdnList.java59 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
60 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
65 menu.add(0, MENU_ADD, 0, r.getString(R.string.menu_add)) in onCreateOptionsMenu()
67 menu.add(0, MENU_EDIT, 0, r.getString(R.string.menu_edit)) in onCreateOptionsMenu()
69 menu.add(0, MENU_DELETE, 0, r.getString(R.string.menu_delete)) in onCreateOptionsMenu()
75 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
76 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
79 menu.findItem(MENU_ADD).setVisible(true); in onPrepareOptionsMenu()
80 menu.findItem(MENU_EDIT).setVisible(hasSelection); in onPrepareOptionsMenu()
81 menu.findItem(MENU_DELETE).setVisible(hasSelection); in onPrepareOptionsMenu()
/packages/apps/Music/src/com/android/music/
DArtistAlbumBrowserActivity.java284 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
285 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
286menu.add(0, PARTY_SHUFFLE, 0, R.string.party_shuffle); // icon will be set in onPrepareOptionsMenu… in onCreateOptionsMenu()
287 menu.add(0, SHUFFLE_ALL, 0, R.string.shuffle_all).setIcon(R.drawable.ic_menu_shuffle); in onCreateOptionsMenu()
292 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
293 MusicUtils.setPartyShuffleMenuIcon(menu); in onPrepareOptionsMenu()
294 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
321 public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfoIn) { in onCreateContextMenu() argument
322 menu.add(0, PLAY_SELECTION, 0, R.string.play_selection); in onCreateContextMenu()
323 SubMenu sub = menu.addSubMenu(0, ADD_TO_PLAYLIST, 0, R.string.add_to_playlist); in onCreateContextMenu()
[all …]
DAlbumBrowserActivity.java272 public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfoIn) { in onCreateContextMenu() argument
273 menu.add(0, PLAY_SELECTION, 0, R.string.play_selection); in onCreateContextMenu()
274 SubMenu sub = menu.addSubMenu(0, ADD_TO_PLAYLIST, 0, R.string.add_to_playlist); in onCreateContextMenu()
276 menu.add(0, DELETE_ITEM, 0, R.string.delete_item); in onCreateContextMenu()
289 menu.setHeaderTitle(getString(R.string.unknown_album_name)); in onCreateContextMenu()
291 menu.setHeaderTitle(mCurrentAlbumName); in onCreateContextMenu()
294 menu.add(0, SEARCH, 0, R.string.search_title); in onCreateContextMenu()
415 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
416 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
417menu.add(0, PARTY_SHUFFLE, 0, R.string.party_shuffle); // icon will be set in onPrepareOptionsMenu… in onCreateOptionsMenu()
[all …]
DPlaylistBrowserActivity.java269 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
271menu.add(0, PARTY_SHUFFLE, 0, R.string.party_shuffle); // icon will be set in onPrepareOptionsMenu… in onCreateOptionsMenu()
273 return super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
277 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
278 MusicUtils.setPartyShuffleMenuIcon(menu); in onPrepareOptionsMenu()
279 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
293 public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfoIn) { in onCreateContextMenu() argument
300 menu.add(0, PLAY_SELECTION, 0, R.string.play_selection); in onCreateContextMenu()
303 menu.add(0, DELETE_PLAYLIST, 0, R.string.delete_playlist_menu); in onCreateContextMenu()
307 menu.add(0, EDIT_PLAYLIST, 0, R.string.edit_playlist_menu); in onCreateContextMenu()
[all …]
/packages/apps/Email/src/com/android/email/activity/
DUIControllerOnePane.java564 public boolean onCreateOptionsMenu(MenuInflater inflater, Menu menu) { in onCreateOptionsMenu() argument
566 inflater.inflate(R.menu.message_list_fragment_option, menu); in onCreateOptionsMenu()
570 inflater.inflate(R.menu.message_view_fragment_option, menu); in onCreateOptionsMenu()
577 public boolean onPrepareOptionsMenu(MenuInflater inflater, Menu menu) { in onPrepareOptionsMenu() argument
579 super.onPrepareOptionsMenu(inflater, menu); in onPrepareOptionsMenu()
584 menu.findItem(R.id.newer).setVisible(true); in onPrepareOptionsMenu()
585 menu.findItem(R.id.older).setVisible(true); in onPrepareOptionsMenu()
587 menu.findItem(R.id.newer).setEnabled((om != null) && om.canMoveToNewer()); in onPrepareOptionsMenu()
588 menu.findItem(R.id.older).setEnabled((om != null) && om.canMoveToOlder()); in onPrepareOptionsMenu()
/packages/apps/Contacts/src/com/android/contacts/activities/
DPeopleActivity.java1364 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
1369 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
1372 inflater.inflate(R.menu.people_options, menu); in onCreateOptionsMenu()
1376 menu.add(mContactDetailLoaderFragment.getLoadStreamItems() ? "less" : "more"); in onCreateOptionsMenu()
1419 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
1426 final MenuItem addContactMenu = menu.findItem(R.id.menu_add_contact); in onPrepareOptionsMenu()
1427 final MenuItem contactsFilterMenu = menu.findItem(R.id.menu_contacts_filter); in onPrepareOptionsMenu()
1429 MenuItem addGroupMenu = menu.findItem(R.id.menu_add_group); in onPrepareOptionsMenu()
1431 final MenuItem clearFrequentsMenu = menu.findItem(R.id.menu_clear_frequents); in onPrepareOptionsMenu()
1432 final MenuItem helpMenu = menu.findItem(R.id.menu_help); in onPrepareOptionsMenu()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiSettings.java231 pm.inflate(R.menu.wifi_setup); in onCreateView()
450 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() argument
457 menu.add(Menu.NONE, MENU_ID_WPS_PBC, 0, R.string.wifi_menu_wps_pbc) in onCreateOptionsMenu()
461 menu.add(Menu.NONE, MENU_ID_ADD_NETWORK, 0, R.string.wifi_add_network) in onCreateOptionsMenu()
465 menu.add(Menu.NONE, MENU_ID_WPS_PBC, 0, R.string.wifi_menu_wps_pbc) in onCreateOptionsMenu()
469 menu.add(Menu.NONE, MENU_ID_ADD_NETWORK, 0, R.string.wifi_add_network) in onCreateOptionsMenu()
473 menu.add(Menu.NONE, MENU_ID_SCAN, 0, R.string.wifi_menu_scan) in onCreateOptionsMenu()
477 menu.add(Menu.NONE, MENU_ID_WPS_PIN, 0, R.string.wifi_menu_wps_pin) in onCreateOptionsMenu()
481 menu.add(Menu.NONE, MENU_ID_P2P, 0, R.string.wifi_menu_p2p) in onCreateOptionsMenu()
485 menu.add(Menu.NONE, MENU_ID_ADVANCED, 0, R.string.wifi_menu_advanced) in onCreateOptionsMenu()
[all …]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastListActivity.java121 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() argument
122 menu.add(0, MENU_DELETE_ALL, 0, R.string.menu_delete_all).setIcon( in onCreateOptionsMenu()
124 menu.add(0, MENU_PREFERENCES, 0, R.string.menu_preferences).setIcon( in onCreateOptionsMenu()
129 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
130 menu.findItem(MENU_DELETE_ALL).setVisible(!mAdapter.isEmpty()); in onPrepareOptionsMenu()
183 public void onCreateContextMenu(ContextMenu menu, View v,
185 menu.setHeaderTitle(R.string.message_options);
186 menu.add(0, MENU_VIEW_DETAILS, 0, R.string.menu_view_details);
187 menu.add(0, MENU_DELETE, 0, R.string.menu_delete);
/packages/apps/Contacts/src/com/android/contacts/detail/
DContactLoaderFragment.java227 public void onCreateOptionsMenu(Menu menu, final MenuInflater inflater) { in onCreateOptionsMenu() argument
228 inflater.inflate(R.menu.view_contact, menu); in onCreateOptionsMenu()
239 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
251 final MenuItem optionsSendToVoicemail = menu.findItem(R.id.menu_send_to_voicemail); in onPrepareOptionsMenu()
256 final MenuItem optionsRingtone = menu.findItem(R.id.menu_set_ringtone); in onPrepareOptionsMenu()
261 final MenuItem editMenu = menu.findItem(R.id.menu_edit); in onPrepareOptionsMenu()
264 final MenuItem deleteMenu = menu.findItem(R.id.menu_delete); in onPrepareOptionsMenu()
267 final MenuItem shareMenu = menu.findItem(R.id.menu_share); in onPrepareOptionsMenu()
270 final MenuItem createContactShortcutMenu = menu.findItem(R.id.menu_create_contact_shortcut); in onPrepareOptionsMenu()

12345678