/frameworks/base/core/java/android/app/ |
H A D | Activity.java | 2092 * a traditional window decor action bar. The toolbar's menu will be populated with the 2093 * Activity's options menu and the navigation button will be wired through the standard 2094 * {@link android.R.id#home home} menu select action.</p> 2265 * Use with {@link #setDefaultKeyMode} to execute a menu shortcut in 2268 * <p>That is, the user does not need to hold down the menu key to execute menu shortcuts. 2301 * menu without requiring the menu key be held down 2306 * handling of system keys, such as the "back" and "menu" keys, and your 2491 * {@link MenuItem#setShortcut(char, char) shortcut} property of menu item 2821 onCreatePanelMenu(int featureId, Menu menu) argument 2839 onPreparePanel(int featureId, View view, Menu menu) argument 2853 onMenuOpened(int featureId, Menu menu) argument 2924 onPanelClosed(int featureId, Menu menu) argument 2982 onCreateOptionsMenu(Menu menu) argument 3007 onPrepareOptionsMenu(Menu menu) argument 3150 onOptionsMenuClosed(Menu menu) argument 3190 onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) argument 3269 onContextMenuClosed(Menu menu) argument [all...] |
H A D | Dialog.java | 618 * {@link MenuItem#setShortcut(char, char) shortcut} property of menu items. 827 public boolean onCreatePanelMenu(int featureId, Menu menu) { argument 829 return onCreateOptionsMenu(menu); 838 public boolean onPreparePanel(int featureId, View view, Menu menu) { argument 839 if (featureId == Window.FEATURE_OPTIONS_PANEL && menu != null) { 840 boolean goforit = onPrepareOptionsMenu(menu); 841 return goforit && menu.hasVisibleItems(); 849 public boolean onMenuOpened(int featureId, Menu menu) { argument 866 public void onPanelClosed(int featureId, Menu menu) { argument 875 * menu fo 880 onCreateOptionsMenu(Menu menu) argument 892 onPrepareOptionsMenu(Menu menu) argument 906 onOptionsMenuClosed(Menu menu) argument 939 onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) argument 973 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 | 461 // If set this fragment has menu items to contribute. 464 // Set to true to allow the fragment's menu to be shown. 971 * the options menu by receiving a call to {@link #onCreateOptionsMenu} 974 * @param hasMenu If true, the fragment has menu items to contribute. 986 * Set a hint for whether this fragment's menu should be visible. This 988 * hierarchy so that the user can not currently seen it, so any menu items 991 * @param menuVisible The default is true, meaning the fragment's menu will 992 * be shown as usual. If false, the user will not see the menu. 1483 * Initialize the contents of the Activity's standard options menu. You 1484 * should place your menu item 1495 onCreateOptionsMenu(Menu menu, MenuInflater inflater) argument 1512 onPrepareOptionsMenu(Menu menu) argument 1554 onOptionsMenuClosed(Menu menu) argument 1574 onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) argument 2128 performCreateOptionsMenu(Menu menu, MenuInflater inflater) argument 2142 performPrepareOptionsMenu(Menu menu) argument 2186 performOptionsMenuClosed(Menu menu) argument [all...] |
H A D | FragmentManager.java | 351 * Invalidate the attached activity's options menu as necessary. 1936 public boolean dispatchCreateOptionsMenu(Menu menu, MenuInflater inflater) { argument 1943 if (f.performCreateOptionsMenu(menu, inflater)) { 1968 public boolean dispatchPrepareOptionsMenu(Menu menu) { argument 1974 if (f.performPrepareOptionsMenu(menu)) { 2011 public void dispatchOptionsMenuClosed(Menu menu) { argument 2016 f.performOptionsMenuClosed(menu);
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | ExtractEditLayout.java | 19 import com.android.internal.view.menu.MenuBuilder; 20 import com.android.internal.view.menu.MenuPopupHelper; 200 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { argument 208 public void onMenuModeChange(MenuBuilder menu) { argument
|
/frameworks/base/core/java/android/service/dreams/ |
H A D | DreamService.java | 278 public boolean onCreatePanelMenu(int featureId, Menu menu) { argument 284 public boolean onPreparePanel(int featureId, View view, Menu menu) { argument 290 public boolean onMenuOpened(int featureId, Menu menu) { argument 327 public void onPanelClosed(int featureId, Menu menu) { argument
|
/frameworks/base/core/java/android/view/ |
H A D | ActionMode.java | 27 * read the <a href="{@docRoot}guide/topics/ui/menus.html#context-menu">Menus</a> 157 * Invalidate the action mode and refresh menu content. The mode's 160 * If it returns true the menu will be scanned for updated content and any relevant changes 172 * Returns the menu of actions that this action mode presents. 173 * @return The action mode's menu. 231 * Called when action mode is first created. The menu supplied will be used to 235 * @param menu Menu used to populate action buttons 239 public boolean onCreateActionMode(ActionMode mode, Menu menu); argument 242 * Called to refresh an action mode's action menu whenever it is invalidated. 245 * @param menu Men 248 onPrepareActionMode(ActionMode mode, Menu menu) argument [all...] |
H A D | MenuInflater.java | 19 import com.android.internal.view.menu.MenuItemImpl; 38 * This class is used to instantiate menu XML files into Menu objects. 40 * For performance reasons, menu inflation relies heavily on pre-processing of 50 private static final String XML_MENU = "menu"; 72 * Constructs a menu inflater. 83 * Constructs a menu inflater. 96 * Inflate a menu hierarchy from the specified XML resource. Throws 100 * <code>R.menu.main_activity</code>) 101 * @param menu The Menu to inflate into. The items and submenus will be 104 public void inflate(int menuRes, Menu menu) { argument 124 parseMenu(XmlPullParser parser, AttributeSet attrs, Menu menu) argument 287 private Menu menu; field in class:MenuInflater.MenuState 345 MenuState(final Menu menu) argument [all...] |
H A D | View.java | 94 import com.android.internal.view.menu.MenuBuilder; 965 * context menu. 3259 * Listener used to build the context menu. 4754 * Register a callback to be invoked when the context menu for this view is 4808 * Call this view's OnLongClickListener, if it is defined. Invokes the context menu if the 4848 * Bring up the context menu for this view. 4850 * @return Whether a context menu was displayed. 4857 * Bring up the context menu for this view, referring to the item under the specified point. 4862 * @return Whether a context menu was displayed. 7087 * context menu 9130 createContextMenu(ContextMenu menu) argument 9172 onCreateContextMenu(ContextMenu menu) argument 20072 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 | 6185 public void createContextMenu(ContextMenu menu) { argument
|
H A D | Window.java | 64 /** Flag for the context menu. This is enabled by default. */ 72 * for an on-screen menu button on some devices. 285 * a menu) will be created for you. 297 * Initialize the contents of the menu for panel 'featureId'. This is 299 * menu in which you can place your items. It is only called once for 302 * <p>You can safely hold on to <var>menu</var> (and any items created 307 * @param menu The menu inside the panel. 312 public boolean onCreatePanelMenu(int featureId, Menu menu); argument 320 * @param menu I 328 onPreparePanel(int featureId, View view, Menu menu) argument 340 onMenuOpened(int featureId, Menu menu) argument 402 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 | 6187 public boolean onCreateActionMode(ActionMode mode, Menu menu) { argument 6188 if (mWrapped.onCreateActionMode(mode, menu)) { 6197 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { argument 6198 return mWrapped.onPrepareActionMode(mode, menu);
|
H A D | ActionMenuPresenter.java | 39 import com.android.internal.view.menu.ActionMenuItemView; 40 import com.android.internal.view.menu.BaseMenuPresenter; 41 import com.android.internal.view.menu.MenuBuilder; 42 import com.android.internal.view.menu.MenuItemImpl; 43 import com.android.internal.view.menu.MenuPopupHelper; 44 import com.android.internal.view.menu.MenuView; 45 import com.android.internal.view.menu.SubMenuBuilder; 91 public void initForMenu(Context context, MenuBuilder menu) { argument 92 super.initForMenu(context, menu); 298 * Display the overflow menu i 514 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument 678 OverflowPopup(Context context, MenuBuilder menu, View anchorView, boolean overflowOnly) argument 742 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument [all...] |
H A D | ActionMenuView.java | 29 import com.android.internal.view.menu.ActionMenuItemView; 30 import com.android.internal.view.menu.MenuBuilder; 31 import com.android.internal.view.menu.MenuItemImpl; 32 import com.android.internal.view.menu.MenuPresenter; 33 import com.android.internal.view.menu.MenuView; 36 * ActionMenuView is a presentation of a series of menu options as a View. It provides 38 * items in an overflow menu. This allows applications to present packs of actions inline with 82 * the same theme as the action menu view itself. 100 * 0 if menus are inflated against the action menu view theme 108 * @param presenter Menu presenter used to display popup menu 596 initialize(MenuBuilder menu) argument 729 onMenuItemSelected(MenuBuilder menu, MenuItem item) argument 735 onMenuModeChange(MenuBuilder menu) argument 744 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument [all...] |
H A D | Editor.java | 30 import com.android.internal.view.menu.MenuBuilder; 661 // Cut/copy menu entries are not available for passwords, but being able to select all 2793 public boolean onCreateActionMode(ActionMode mode, Menu menu) { argument 2796 final Context context = !legacy && menu instanceof MenuBuilder ? 2797 ((MenuBuilder) menu).getContext() : 2807 menu.add(0, TextView.ID_SELECT_ALL, 0, com.android.internal.R.string.selectAll). 2815 menu.add(0, TextView.ID_CUT, 0, com.android.internal.R.string.cut). 2824 menu.add(0, TextView.ID_COPY, 0, com.android.internal.R.string.copy). 2833 menu.add(0, TextView.ID_PASTE, 0, com.android.internal.R.string.paste). 2844 if (!mCustomSelectionActionModeCallback.onCreateActionMode(mode, menu)) { 2860 onPrepareActionMode(ActionMode mode, 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; 51 * Callback interface used to notify the application that the menu has closed. 55 * Called when the associated menu has been dismissed. 57 * @param menu The PopupMenu that was dismissed. 59 public void onDismiss(PopupMenu menu); argument 63 * Constructor to create a new popup menu with an anchor view. 65 * @param context Context the popup menu i 226 onMenuItemSelected(MenuBuilder menu, MenuItem item) argument 236 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument 260 onCloseSubMenu(SubMenuBuilder menu) argument 266 onMenuModeChange(MenuBuilder menu) argument [all...] |
H A D | Toolbar.java | 42 import com.android.internal.view.menu.MenuBuilder; 43 import com.android.internal.view.menu.MenuItemImpl; 44 import com.android.internal.view.menu.MenuPresenter; 45 import com.android.internal.view.menu.MenuView; 46 import com.android.internal.view.menu.SubMenuBuilder; 67 * <li><em>A navigation button.</em> This may be an Up arrow, navigation menu toggle, close, 85 * <li><em>An {@link ActionMenuView action menu}.</em> The menu of actions will pin to the 88 * frequent, important or typical</a> actions along with an optional overflow menu for 324 * Check whether the overflow menu i 357 setMenu(MenuBuilder menu, ActionMenuPresenter outerPresenter) argument 1877 initForMenu(Context context, MenuBuilder menu) argument 1924 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument 1933 expandItemActionView(MenuBuilder menu, MenuItemImpl item) argument 1960 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; 438 final Menu menu = mDecorToolbar.getMenu(); 439 final MenuBuilder mb = menu instanceof MenuBuilder ? (MenuBuilder) menu : null; 444 menu.clear(); 445 if (!mWindowCallback.onCreatePanelMenu(Window.FEATURE_OPTIONS_PANEL, menu) || 446 !mWindowCallback.onPreparePanel(Window.FEATURE_OPTIONS_PANEL, null, menu)) { 447 menu.clear(); 490 public boolean onPreparePanel(int featureId, View view, Menu menu) { argument 513 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument 530 onMenuItemSelected(MenuBuilder menu, MenuItem item) argument 535 onMenuModeChange(MenuBuilder menu) argument [all...] |
H A D | WindowDecorActionBar.java | 25 import com.android.internal.view.menu.MenuBuilder; 26 import com.android.internal.view.menu.MenuPopupHelper; 27 import com.android.internal.view.menu.SubMenuBuilder; 1072 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { argument 1080 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { argument 1096 public void onCloseSubMenu(SubMenuBuilder menu) { argument 1099 public void onMenuModeChange(MenuBuilder menu) { argument
|
/frameworks/base/core/java/com/android/internal/view/ |
H A D | StandaloneActionMode.java | 18 import com.android.internal.view.menu.MenuBuilder; 19 import com.android.internal.view.menu.MenuPopupHelper; 20 import com.android.internal.view.menu.SubMenuBuilder; 133 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { argument 137 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { argument 149 public void onCloseSubMenu(SubMenuBuilder menu) { argument 152 public void onMenuModeChange(MenuBuilder menu) { argument
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | ActionMenu.java | 17 package com.android.internal.view.menu;
|