/packages/apps/Browser/src/com/android/browser/ |
D | BrowserActivity.java | 145 public boolean onMenuOpened(int featureId, Menu menu) { in onMenuOpened() argument 147 mController.onMenuOpened(featureId, menu); in onMenuOpened() 153 public void onOptionsMenuClosed(Menu menu) { in onOptionsMenuClosed() argument 154 mController.onOptionsMenuClosed(menu); in onOptionsMenuClosed() 158 public void onContextMenuClosed(Menu menu) { in onContextMenuClosed() argument 159 super.onContextMenuClosed(menu); in onContextMenuClosed() 160 mController.onContextMenuClosed(menu); in onContextMenuClosed() 205 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument 206 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu() 207 return mController.onCreateOptionsMenu(menu); in onCreateOptionsMenu() [all …]
|
D | ActivityController.java | 26 boolean onMenuOpened(int featureId, Menu menu); in onMenuOpened() argument 28 void onOptionsMenuClosed(Menu menu); in onOptionsMenuClosed() argument 30 void onContextMenuClosed(Menu menu); in onContextMenuClosed() argument 40 boolean onCreateOptionsMenu(Menu menu); in onCreateOptionsMenu() argument 42 boolean onPrepareOptionsMenu(Menu menu); in onPrepareOptionsMenu() argument 46 void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo); in onCreateContextMenu() argument
|
D | UrlSelectionActionMode.java | 34 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument 35 mode.getMenuInflater().inflate(R.menu.url_selection, menu); in onCreateActionMode() 57 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument
|
D | Controller.java | 1263 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument 1268 inflater.inflate(R.menu.browser, menu); in onCreateOptionsMenu() 1273 public void onCreateContextMenu(ContextMenu menu, View v, in onCreateContextMenu() argument 1302 inflater.inflate(R.menu.browsercontext, menu); in onCreateContextMenu() 1307 menu.setGroupVisible(R.id.PHONE_MENU, in onCreateContextMenu() 1309 menu.setGroupVisible(R.id.EMAIL_MENU, in onCreateContextMenu() 1311 menu.setGroupVisible(R.id.GEO_MENU, in onCreateContextMenu() 1313 menu.setGroupVisible(R.id.IMAGE_MENU, in onCreateContextMenu() 1316 menu.setGroupVisible(R.id.ANCHOR_MENU, in onCreateContextMenu() 1323 menu.setGroupVisible(R.id.SELECT_TEXT_MENU, hitText); in onCreateContextMenu() [all …]
|
D | PhoneUi.java | 158 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument 159 updateMenuState(mActiveTab, menu); in onPrepareOptionsMenu() 164 public void updateMenuState(Tab tab, Menu menu) { in updateMenuState() argument 165 MenuItem bm = menu.findItem(R.id.bookmarks_menu_id); in updateMenuState() 169 MenuItem abm = menu.findItem(R.id.add_bookmark_menu_id); in updateMenuState() 173 MenuItem info = menu.findItem(R.id.page_info_menu_id); in updateMenuState() 177 MenuItem newtab = menu.findItem(R.id.new_tab_menu_id); in updateMenuState() 181 MenuItem incognito = menu.findItem(R.id.incognito_menu_id); in updateMenuState() 186 menu.setGroupVisible(R.id.LIVE_MENU, false); in updateMenuState() 187 menu.setGroupVisible(R.id.SNAPSHOT_MENU, false); in updateMenuState() [all …]
|
/packages/apps/Phone/src/com/android/phone/ |
D | FdnList.java | 59 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/QuickSearchBox/src/com/android/quicksearchbox/ |
D | Help.java | 38 public void addHelpMenuItem(Menu menu, String activityName) { in addHelpMenuItem() argument 39 addHelpMenuItem(menu, activityName, false); in addHelpMenuItem() 42 public void addHelpMenuItem(Menu menu, String activityName, boolean showAsAction) { in addHelpMenuItem() argument 46 inflater.inflate(R.menu.help, menu); in addHelpMenuItem() 47 MenuItem item = menu.findItem(R.id.menu_help); in addHelpMenuItem()
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | Calculator.java | 138 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 …]
|
D | CalculatorEditText.java | 145 public void onCreateContextMenu(ContextMenu menu) { in onCreateContextMenu() argument 155 menu.add(Menu.NONE, i, i, mMenuItemsStrings[i]).setOnMenuItemClickListener(handler); in onCreateContextMenu() 158 menu.getItem(CUT).setVisible(false); in onCreateContextMenu() 159 menu.getItem(COPY).setVisible(false); in onCreateContextMenu() 164 menu.getItem(PASTE).setVisible(false); in onCreateContextMenu() 230 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument 240 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | DialtactsActivity.java | 364 final Menu menu = popupMenu.getMenu(); 365 popupMenu.inflate(R.menu.dialtacts_search_options); 366 final MenuItem filterOptionMenuItem = menu.findItem(R.id.filter_option); 368 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() 944 final MenuItem addContactOptionMenuItem = menu.findItem(R.id.add_contact); in onCreateOptionsMenu() [all …]
|
D | GroupDetailActivity.java | 115 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument 116 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu() 119 inflater.inflate(R.menu.group_source, menu); in onCreateOptionsMenu() 125 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument 129 MenuItem groupSourceMenuItem = menu.findItem(R.id.menu_group_source); in onPrepareOptionsMenu()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppTransferHistory.java | 142 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/Browser/src/com/android/browser/stub/ |
D | NullController.java | 41 public boolean onMenuOpened(int featureId, Menu menu) { in onMenuOpened() argument 46 public void onOptionsMenuClosed(Menu menu) { in onOptionsMenuClosed() argument 50 public void onContextMenuClosed(Menu menu) { in onContextMenuClosed() argument 70 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument 75 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument 85 public void onCreateContextMenu(ContextMenu menu, View v, in onCreateContextMenu() argument
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/ |
D | HomeXLarge.java | 81 public boolean onCreateActionMenu(Menu menu) { in onCreateActionMenu() argument 83 menu.add(0, ACTION_ID_SEARCH, 0, R.string.menu_search) in onCreateActionMenu() 85 menu.add(0, ACTION_ID_ADD, 1, R.string.menu_newContact) in onCreateActionMenu() 92 public boolean onUpdateActionMenu(Menu menu) { in onUpdateActionMenu() argument 118 public boolean onCreateContextMode(int modeId, Menu menu) { in onCreateContextMode() argument 123 public boolean onPrepareContextMode(int modeId, Menu menu) { in onPrepareContextMode() argument
|
D | HomeGroupsXLarge.java | 156 public boolean onCreateActionMenu(Menu menu) { in onCreateActionMenu() argument 158 menu.add(0, ACTION_ID_SEARCH, 0, R.string.menu_search) in onCreateActionMenu() 160 menu.add(0, ACTION_ID_ADD, 1, R.string.menu_newContact) in onCreateActionMenu() 167 public boolean onUpdateActionMenu(Menu menu) { in onUpdateActionMenu() argument 193 public boolean onCreateContextMode(int modeId, Menu menu) { in onCreateContextMode() argument 198 public boolean onPrepareContextMode(int modeId, Menu menu) { in onPrepareContextMode() argument
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastListActivity.java | 119 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() argument 120 menu.add(0, MENU_DELETE_ALL, 0, R.string.menu_delete_all).setIcon( in onCreateOptionsMenu() 122 menu.add(0, MENU_PREFERENCES, 0, R.string.menu_preferences).setIcon( in onCreateOptionsMenu() 127 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument 128 menu.findItem(MENU_DELETE_ALL).setVisible(!mAdapter.isEmpty()); in onPrepareOptionsMenu() 169 public void onCreateContextMenu(ContextMenu menu, View v, 171 menu.setHeaderTitle(R.string.message_options); 172 menu.add(0, MENU_VIEW, 0, R.string.menu_view); 173 menu.add(0, MENU_DELETE, 0, R.string.menu_delete);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | MenuExecutor.java | 146 Menu menu, int id, boolean visibility) { in setMenuItemVisibility() argument 147 MenuItem item = menu.findItem(id); in setMenuItemVisibility() 151 public static void updateMenuOperation(Menu menu, int supported) { in updateMenuOperation() argument 163 setMenuItemVisibility(menu, R.id.action_delete, supportDelete); in updateMenuOperation() 164 setMenuItemVisibility(menu, R.id.action_rotate_ccw, supportRotate); in updateMenuOperation() 165 setMenuItemVisibility(menu, R.id.action_rotate_cw, supportRotate); in updateMenuOperation() 166 setMenuItemVisibility(menu, R.id.action_crop, supportCrop); in updateMenuOperation() 167 setMenuItemVisibility(menu, R.id.action_share, supportShare); in updateMenuOperation() 168 setMenuItemVisibility(menu, R.id.action_setas, supportSetAs); in updateMenuOperation() 169 setMenuItemVisibility(menu, R.id.action_show_on_map, supportShowOnMap); in updateMenuOperation() [all …]
|
/packages/apps/Email/src/com/android/email/activity/ |
D | UIControllerOnePane.java | 559 public boolean onCreateOptionsMenu(MenuInflater inflater, Menu menu) { in onCreateOptionsMenu() argument 561 inflater.inflate(R.menu.message_list_fragment_option, menu); in onCreateOptionsMenu() 565 inflater.inflate(R.menu.message_view_fragment_option, menu); in onCreateOptionsMenu() 572 public boolean onPrepareOptionsMenu(MenuInflater inflater, Menu menu) { in onPrepareOptionsMenu() argument 574 super.onPrepareOptionsMenu(inflater, menu); in onPrepareOptionsMenu() 579 menu.findItem(R.id.newer).setVisible(true); in onPrepareOptionsMenu() 580 menu.findItem(R.id.older).setVisible(true); in onPrepareOptionsMenu() 582 menu.findItem(R.id.newer).setEnabled((om != null) && om.canMoveToNewer()); in onPrepareOptionsMenu() 583 menu.findItem(R.id.older).setEnabled((om != null) && om.canMoveToOlder()); in onPrepareOptionsMenu()
|
/packages/apps/Settings/src/com/android/settings/ |
D | ZonePicker.java | 158 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() argument 159 menu.add(0, MENU_ALPHABETICAL, 0, R.string.zone_list_menu_sort_alphabetically) in onCreateOptionsMenu() 161 menu.add(0, MENU_TIMEZONE, 0, R.string.zone_list_menu_sort_by_timezone) in onCreateOptionsMenu() 163 super.onCreateOptionsMenu(menu, inflater); in onCreateOptionsMenu() 167 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument 169 menu.findItem(MENU_TIMEZONE).setVisible(false); in onPrepareOptionsMenu() 170 menu.findItem(MENU_ALPHABETICAL).setVisible(true); in onPrepareOptionsMenu() 172 menu.findItem(MENU_TIMEZONE).setVisible(true); in onPrepareOptionsMenu() 173 menu.findItem(MENU_ALPHABETICAL).setVisible(false); in onPrepareOptionsMenu()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | MenuHelper.java | 106 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 …]
|
/packages/apps/Stk/src/com/android/stk/ |
D | StkMenuActivity.java | 184 public boolean onCreateOptionsMenu(android.view.Menu menu) { in onCreateOptionsMenu() argument 185 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu() 186 menu.add(0, StkApp.MENU_ID_END_SESSION, 1, R.string.menu_end_session); in onCreateOptionsMenu() 187 menu.add(0, StkApp.MENU_ID_HELP, 2, R.string.help); in onCreateOptionsMenu() 192 public boolean onPrepareOptionsMenu(android.view.Menu menu) { in onPrepareOptionsMenu() argument 193 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu() 204 menu.findItem(StkApp.MENU_ID_END_SESSION).setVisible(mainVisible); in onPrepareOptionsMenu() 205 menu.findItem(StkApp.MENU_ID_HELP).setVisible(helpVisible); in onPrepareOptionsMenu()
|
D | StkInputActivity.java | 200 public boolean onCreateOptionsMenu(android.view.Menu menu) { in onCreateOptionsMenu() argument 201 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu() 202 menu.add(android.view.Menu.NONE, StkApp.MENU_ID_END_SESSION, 1, in onCreateOptionsMenu() 204 menu.add(0, StkApp.MENU_ID_HELP, 2, R.string.help); in onCreateOptionsMenu() 210 public boolean onPrepareOptionsMenu(android.view.Menu menu) { in onPrepareOptionsMenu() argument 211 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu() 212 menu.findItem(StkApp.MENU_ID_END_SESSION).setVisible(true); in onPrepareOptionsMenu() 213 menu.findItem(StkApp.MENU_ID_HELP).setVisible(mStkInput.helpAvailable); in onPrepareOptionsMenu()
|
/packages/experimental/BugReportSender/src/com/android/bugreportsender/ |
D | BugReportListActivity.java | 83 public void onCreateContextMenu(ContextMenu menu, View v, in onCreateContextMenu() argument 85 super.onCreateContextMenu(menu, v, menuInfo); in onCreateContextMenu() 86 menu.add(0, SYSTEM_LOG_ID, 0, "System Log"); in onCreateContextMenu() 87 menu.add(0, CPU_ID, 0, "CPU Info"); in onCreateContextMenu() 88 menu.add(0, MEMORY_ID, 0, "Memory Info"); in onCreateContextMenu() 89 menu.add(0, PROCRANK_ID, 0, "Procrank"); in onCreateContextMenu()
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | CallDetailActivityTest.java | 27 import com.android.internal.view.menu.ContextMenuBuilder; 174 Menu menu = new ContextMenuBuilder(mActivityUnderTest); in testVoicemailDoesNotHaveRemoveFromCallLog() local 175 mActivityUnderTest.onCreateOptionsMenu(menu); in testVoicemailDoesNotHaveRemoveFromCallLog() 176 mActivityUnderTest.onPrepareOptionsMenu(menu); in testVoicemailDoesNotHaveRemoveFromCallLog() 177 assertFalse(menu.findItem(R.id.menu_remove_from_call_log).isVisible()); in testVoicemailDoesNotHaveRemoveFromCallLog() 184 Menu menu = new ContextMenuBuilder(mActivityUnderTest); in testRegularCallDoesHaveRemoveFromCallLog() local 185 mActivityUnderTest.onCreateOptionsMenu(menu); in testRegularCallDoesHaveRemoveFromCallLog() 186 mActivityUnderTest.onPrepareOptionsMenu(menu); in testRegularCallDoesHaveRemoveFromCallLog() 187 assertTrue(menu.findItem(R.id.menu_remove_from_call_log).isVisible()); in testRegularCallDoesHaveRemoveFromCallLog()
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | ConversationList.java | 333 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument 334 getMenuInflater().inflate(R.menu.conversation_list_menu, menu); in onCreateOptionsMenu() 336 mSearchItem = menu.findItem(R.id.search); in onCreateOptionsMenu() 349 MenuItem cellBroadcastItem = menu.findItem(R.id.action_cell_broadcasts); in onCreateOptionsMenu() 374 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument 375 MenuItem item = menu.findItem(R.id.action_delete_all); in onPrepareOptionsMenu() 380 item = menu.findItem(R.id.action_debug_dump); in onPrepareOptionsMenu() 478 public void onCreateContextMenu(ContextMenu menu, View v, 486 menu.setHeaderTitle(recipients.formatNames(",")); 490 menu.add(0, MENU_VIEW, 0, R.string.menu_view); [all …]
|