/frameworks/base/core/java/android/app/ |
H A D | Activity.java | 2110 * a traditional window decor action bar. The toolbar's menu will be populated with the 2111 * Activity's options menu and the navigation button will be wired through the standard 2112 * {@link android.R.id#home home} menu select action.</p> 2286 * Use with {@link #setDefaultKeyMode} to execute a menu shortcut in 2289 * <p>That is, the user does not need to hold down the menu key to execute menu shortcuts. 2322 * menu without requiring the menu key be held down 2327 * handling of system keys, such as the "back" and "menu" keys, and your 2512 * {@link MenuItem#setShortcut(char, char) shortcut} property of menu item 2844 onCreatePanelMenu(int featureId, Menu menu) argument 2862 onPreparePanel(int featureId, View view, Menu menu) argument 2876 onMenuOpened(int featureId, Menu menu) argument 2947 onPanelClosed(int featureId, Menu menu) argument 3005 onCreateOptionsMenu(Menu menu) argument 3030 onPrepareOptionsMenu(Menu menu) argument 3173 onOptionsMenuClosed(Menu menu) argument 3213 onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) argument 3292 onContextMenuClosed(Menu menu) argument [all...] |
H A D | Dialog.java | 640 * {@link MenuItem#setShortcut(char, char) shortcut} property of menu items. 849 public boolean onCreatePanelMenu(int featureId, Menu menu) { argument 851 return onCreateOptionsMenu(menu); 860 public boolean onPreparePanel(int featureId, View view, Menu menu) { argument 861 if (featureId == Window.FEATURE_OPTIONS_PANEL && menu != null) { 862 boolean goforit = onPrepareOptionsMenu(menu); 863 return goforit && menu.hasVisibleItems(); 871 public boolean onMenuOpened(int featureId, Menu menu) { argument 888 public void onPanelClosed(int featureId, Menu menu) { argument 897 * menu fo 902 onCreateOptionsMenu(Menu menu) argument 914 onPrepareOptionsMenu(Menu menu) argument 928 onOptionsMenuClosed(Menu menu) argument 961 onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) argument 995 onContextMenuClosed(Menu menu) argument [all...] |
H A D | ExpandableListActivity.java | 163 * Override this to populate the context menu when an item is long pressed. menuInfo 172 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { argument
|
H A D | Fragment.java | 463 // If set this fragment has menu items to contribute. 466 // Set to true to allow the fragment's menu to be shown. 988 * the options menu by receiving a call to {@link #onCreateOptionsMenu} 991 * @param hasMenu If true, the fragment has menu items to contribute. 1003 * Set a hint for whether this fragment's menu should be visible. This 1005 * hierarchy so that the user can not currently seen it, so any menu items 1008 * @param menuVisible The default is true, meaning the fragment's menu will 1009 * be shown as usual. If false, the user will not see the menu. 1649 * Initialize the contents of the Activity's standard options menu. You 1650 * should place your menu item 1661 onCreateOptionsMenu(Menu menu, MenuInflater inflater) argument 1678 onPrepareOptionsMenu(Menu menu) argument 1720 onOptionsMenuClosed(Menu menu) argument 1740 onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) argument 2295 performCreateOptionsMenu(Menu menu, MenuInflater inflater) argument 2309 performPrepareOptionsMenu(Menu menu) argument 2353 performOptionsMenuClosed(Menu menu) argument [all...] |
H A D | FragmentController.java | 258 * know they should create an options menu. 259 * <p>Call when the Fragment should create an options menu. 261 * @return {@code true} if the options menu contains items to display 264 public boolean dispatchCreateOptionsMenu(Menu menu, MenuInflater inflater) { argument 265 return mHost.mFragmentManager.dispatchCreateOptionsMenu(menu, inflater); 270 * know they should prepare their options menu for display. 271 * <p>Call immediately before displaying the Fragment's options menu. 273 * @return {@code true} if the options menu contains items to display 276 public boolean dispatchPrepareOptionsMenu(Menu menu) { argument 277 return mHost.mFragmentManager.dispatchPrepareOptionsMenu(menu); 313 dispatchOptionsMenuClosed(Menu menu) argument [all...] |
H A D | FragmentManager.java | 355 * Invalidate the attached activity's options menu as necessary. 2020 public boolean dispatchCreateOptionsMenu(Menu menu, MenuInflater inflater) { argument 2027 if (f.performCreateOptionsMenu(menu, inflater)) { 2052 public boolean dispatchPrepareOptionsMenu(Menu menu) { argument 2058 if (f.performPrepareOptionsMenu(menu)) { 2095 public void dispatchOptionsMenuClosed(Menu menu) { argument 2100 f.performOptionsMenuClosed(menu);
|
/frameworks/base/core/java/android/service/dreams/ |
H A D | DreamService.java | 282 public boolean onCreatePanelMenu(int featureId, Menu menu) { argument 288 public boolean onPreparePanel(int featureId, View view, Menu menu) { argument 294 public boolean onMenuOpened(int featureId, Menu menu) { argument 331 public void onPanelClosed(int featureId, Menu menu) { argument
|
/frameworks/base/core/java/android/view/ |
H A D | ActionMode.java | 30 * read the <a href="{@docRoot}guide/topics/ui/menus.html#context-menu">Menus</a> 198 * Invalidate the action mode and refresh menu content. The mode's 201 * If it returns true the menu will be scanned for updated content and any relevant changes 235 * Returns the menu of actions that this action mode presents. 236 * @return The action mode's menu. 304 * Called when action mode is first created. The menu supplied will be used to 308 * @param menu Menu used to populate action buttons 312 public boolean onCreateActionMode(ActionMode mode, Menu menu); argument 315 * Called to refresh an action mode's action menu whenever it is invalidated. 318 * @param menu Men 321 onPrepareActionMode(ActionMode mode, Menu menu) argument [all...] |
H A D | MenuInflater.java | 19 import com.android.internal.view.menu.MenuItemImpl; 39 * This class is used to instantiate menu XML files into Menu objects. 41 * For performance reasons, menu inflation relies heavily on pre-processing of 51 private static final String XML_MENU = "menu"; 73 * Constructs a menu inflater. 84 * Constructs a menu inflater. 97 * Inflate a menu hierarchy from the specified XML resource. Throws 101 * <code>R.menu.main_activity</code>) 102 * @param menu The Menu to inflate into. The items and submenus will be 105 public void inflate(@MenuRes int menuRes, Menu menu) { argument 125 parseMenu(XmlPullParser parser, AttributeSet attrs, Menu menu) argument 288 private Menu menu; field in class:MenuInflater.MenuState 346 MenuState(final Menu menu) argument [all...] |
H A D | View.java | 107 import com.android.internal.view.menu.MenuBuilder; 984 * context menu. 3441 * Listener used to build the context menu. 5172 * Register a callback to be invoked when the context menu for this view is 5226 * Call this view's OnLongClickListener, if it is defined. Invokes the context menu if the 5287 * Bring up the context menu for this view. 5289 * @return Whether a context menu was displayed. 5296 * Bring up the context menu for this view, referring to the item under the specified point. 5301 * @return Whether a context menu was displayed. 7818 * context menu 9986 createContextMenu(ContextMenu menu) argument 10028 onCreateContextMenu(ContextMenu menu) argument 21366 onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) argument [all...] |
H A D | ViewParent.java | 172 * Bring up a context menu for the specified view or its ancestors. 177 * then it should override this and show the context menu.</p> 179 * @param originalView The source view where the context menu was first invoked 180 * @return true if a context menu was displayed 185 * Have the parent populate the specified context menu if it has anything to 188 * @param menu The menu to populate 190 public void createContextMenu(ContextMenu menu); argument
|
H A D | ViewRootImpl.java | 6324 public void createContextMenu(ContextMenu menu) { argument
|
H A D | Window.java | 67 /** Flag for the context menu. This is enabled by default. */ 75 * for an on-screen menu button on some devices. 288 * a menu) will be created for you. 300 * Initialize the contents of the menu for panel 'featureId'. This is 302 * menu in which you can place your items. It is only called once for 305 * <p>You can safely hold on to <var>menu</var> (and any items created 310 * @param menu The menu inside the panel. 315 public boolean onCreatePanelMenu(int featureId, Menu menu); argument 323 * @param menu I 331 onPreparePanel(int featureId, View view, Menu menu) argument 343 onMenuOpened(int featureId, Menu menu) argument 405 onPanelClosed(int featureId, Menu menu) argument [all...] |
H A D | WindowCallbackWrapper.java | 75 public boolean onCreatePanelMenu(int featureId, Menu menu) { argument 76 return mWrapped.onCreatePanelMenu(featureId, menu); 80 public boolean onPreparePanel(int featureId, View view, Menu menu) { argument 81 return mWrapped.onPreparePanel(featureId, view, menu); 85 public boolean onMenuOpened(int featureId, Menu menu) { argument 86 return mWrapped.onMenuOpened(featureId, menu); 120 public void onPanelClosed(int featureId, Menu menu) { argument 121 mWrapped.onPanelClosed(featureId, menu);
|
/frameworks/base/core/java/android/webkit/ |
H A D | FindActionModeCallback.java | 198 public boolean onCreateActionMode(ActionMode mode, Menu menu) { argument 208 mode.getMenuInflater().inflate(com.android.internal.R.menu.webview_find, 209 menu); 229 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { argument 292 public boolean onCreateActionMode(ActionMode mode, Menu menu) { argument 297 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { argument
|
/frameworks/base/core/java/android/widget/ |
H A D | AbsListView.java | 6226 public boolean onCreateActionMode(ActionMode mode, Menu menu) { argument 6227 if (mWrapped.onCreateActionMode(mode, menu)) { 6236 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { argument 6237 return mWrapped.onPrepareActionMode(mode, menu);
|
H A D | ActionMenuPresenter.java | 42 import com.android.internal.view.menu.ActionMenuItemView; 43 import com.android.internal.view.menu.BaseMenuPresenter; 44 import com.android.internal.view.menu.MenuBuilder; 45 import com.android.internal.view.menu.MenuItemImpl; 46 import com.android.internal.view.menu.MenuPopupHelper; 47 import com.android.internal.view.menu.MenuView; 48 import com.android.internal.view.menu.SubMenuBuilder; 91 // These collections are used to store pre- and post-layout information for menu items, 98 // The list of currently running animations on menu items. 132 public void initForMenu(Context context, MenuBuilder menu) { argument 741 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument 912 OverflowPopup(Context context, MenuBuilder menu, View anchorView, boolean overflowOnly) argument 976 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument [all...] |
H A D | ActionMenuView.java | 34 import com.android.internal.view.menu.ActionMenuItemView; 35 import com.android.internal.view.menu.MenuBuilder; 36 import com.android.internal.view.menu.MenuItemImpl; 37 import com.android.internal.view.menu.MenuPresenter; 38 import com.android.internal.view.menu.MenuView; 41 * ActionMenuView is a presentation of a series of menu options as a View. It provides 43 * items in an overflow menu. This allows applications to present packs of actions inline with 87 * the same theme as the action menu view itself. 105 * 0 if menus are inflated against the action menu view theme 113 * @param presenter Menu presenter used to display popup menu 625 initialize(MenuBuilder menu) argument 759 onMenuItemSelected(MenuBuilder menu, MenuItem item) argument 765 onMenuModeChange(MenuBuilder menu) argument 774 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument [all...] |
H A D | Editor.java | 134 // Ordering constants used to place the Action Mode items in their menu. 780 // Cut/copy menu entries are not available for passwords, but being able to select all 3138 public boolean onCreateActionMode(ActionMode mode, Menu menu) { argument 3142 populateMenuWithItems(menu); 3146 if (!customCallback.onCreateActionMode(mode, menu)) { 3155 mProcessTextIntentActionsHandler.onInitializeMenu(menu); 3158 if (menu.hasVisibleItems() || mode.getCustomView() != null) { 3172 private void populateMenuWithItems(Menu menu) { argument 3174 menu.add(Menu.NONE, TextView.ID_CUT, MENU_ITEM_ORDER_CUT, 3181 menu 3205 onPrepareActionMode(ActionMode mode, Menu menu) argument 3216 updateSelectAllItem(Menu menu) argument 3228 updateReplaceItem(Menu menu) argument 5583 onInitializeMenu(Menu menu) argument [all...] |
H A D | PopupMenu.java | 20 import com.android.internal.view.menu.MenuBuilder; 21 import com.android.internal.view.menu.MenuPopupHelper; 22 import com.android.internal.view.menu.MenuPresenter; 23 import com.android.internal.view.menu.SubMenuBuilder; 52 * Callback interface used to notify the application that the menu has closed. 56 * Called when the associated menu has been dismissed. 58 * @param menu The PopupMenu that was dismissed. 60 public void onDismiss(PopupMenu menu); argument 64 * Constructor to create a new popup menu with an anchor view. 66 * @param context Context the popup menu i 250 onMenuItemSelected(MenuBuilder menu, MenuItem item) argument 260 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument 284 onCloseSubMenu(SubMenuBuilder menu) argument 290 onMenuModeChange(MenuBuilder menu) argument [all...] |
H A D | Toolbar.java | 46 import com.android.internal.view.menu.MenuBuilder; 47 import com.android.internal.view.menu.MenuItemImpl; 48 import com.android.internal.view.menu.MenuPresenter; 49 import com.android.internal.view.menu.MenuView; 50 import com.android.internal.view.menu.SubMenuBuilder; 71 * <li><em>A navigation button.</em> This may be an Up arrow, navigation menu toggle, close, 89 * <li><em>An {@link ActionMenuView action menu}.</em> The menu of actions will pin to the 92 * frequent, important or typical</a> actions along with an optional overflow menu for 349 * Check whether the overflow menu i 382 setMenu(MenuBuilder menu, ActionMenuPresenter outerPresenter) argument 1937 initForMenu(Context context, MenuBuilder menu) argument 1984 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument 1993 expandItemActionView(MenuBuilder menu, MenuItemImpl item) argument 2020 collapseItemActionView(MenuBuilder menu, MenuItemImpl item) argument [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
H A D | ToolbarActionBar.java | 35 import com.android.internal.view.menu.MenuBuilder; 36 import com.android.internal.view.menu.MenuPresenter; 440 final Menu menu = mDecorToolbar.getMenu(); 441 final MenuBuilder mb = menu instanceof MenuBuilder ? (MenuBuilder) menu : null; 446 menu.clear(); 447 if (!mWindowCallback.onCreatePanelMenu(Window.FEATURE_OPTIONS_PANEL, menu) || 448 !mWindowCallback.onPreparePanel(Window.FEATURE_OPTIONS_PANEL, null, menu)) { 449 menu.clear(); 468 Menu menu 504 onPreparePanel(int featureId, View view, Menu menu) argument 527 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument 544 onMenuItemSelected(MenuBuilder menu, MenuItem item) argument 549 onMenuModeChange(MenuBuilder menu) argument [all...] |
H A D | WindowDecorActionBar.java | 26 import com.android.internal.view.menu.MenuBuilder; 27 import com.android.internal.view.menu.MenuPopupHelper; 28 import com.android.internal.view.menu.SubMenuBuilder; 1091 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { argument 1099 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { argument 1115 public void onCloseSubMenu(SubMenuBuilder menu) { argument 1118 public void onMenuModeChange(MenuBuilder menu) { argument
|
/frameworks/base/core/java/com/android/internal/policy/ |
H A D | PhoneWindow.java | 64 import com.android.internal.view.menu.ContextMenuBuilder; 65 import com.android.internal.view.menu.IconMenuPresenter; 66 import com.android.internal.view.menu.ListMenuPresenter; 67 import com.android.internal.view.menu.MenuBuilder; 68 import com.android.internal.view.menu.MenuDialogHelper; 69 import com.android.internal.view.menu.MenuPresenter; 70 import com.android.internal.view.menu.MenuView; 150 * Simple callback used by the context menu and its submenus. The options 151 * menu submenus do not use this (their behavior is more complex). 542 // dispatches menu 873 checkCloseActionMenu(Menu menu) argument 1134 findMenuPanel(Menu menu) argument 1146 onMenuItemSelected(MenuBuilder menu, MenuItem item) argument 1157 onMenuModeChange(MenuBuilder menu) argument 2146 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument 2187 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument 3530 onCreateActionMode(ActionMode mode, Menu menu) argument 3534 onPrepareActionMode(ActionMode mode, Menu menu) argument 4393 callOnPanelClosed(int featureId, PanelFeatureState panel, Menu menu) argument 4661 MenuBuilder menu; field in class:PhoneWindow.PanelFeatureState 4763 setMenu(MenuBuilder menu) argument 4980 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument 5003 onCloseSubMenu(MenuBuilder menu) argument 5010 onMenuItemSelected(MenuBuilder menu, MenuItem item) argument 5016 onMenuModeChange(MenuBuilder menu) argument [all...] |
/frameworks/base/core/java/com/android/internal/view/ |
H A D | FloatingActionMode.java | 30 import com.android.internal.view.menu.MenuBuilder; 81 public void onMenuModeChange(MenuBuilder menu) {} 84 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) {
|