/frameworks/base/core/java/android/app/ |
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 | 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 | 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...] |
/frameworks/support/v4/java/android/support/v4/app/ |
H A D | Fragment.java | 276 // If set this fragment has menu items to contribute. 279 // Set to true to allow the fragment's menu to be shown. 832 * the options menu by receiving a call to {@link #onCreateOptionsMenu} 835 * @param hasMenu If true, the fragment has menu items to contribute. 847 * Set a hint for whether this fragment's menu should be visible. This 849 * hierarchy so that the user can not currently seen it, so any menu items 852 * @param menuVisible The default is true, meaning the fragment's menu will 853 * be shown as usual. If false, the user will not see the menu. 1419 * Initialize the contents of the Activity's standard options menu. You 1420 * should place your menu item 1431 onCreateOptionsMenu(Menu menu, MenuInflater inflater) argument 1448 onPrepareOptionsMenu(Menu menu) argument 1490 onOptionsMenuClosed(Menu menu) argument 1511 onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) argument 2039 performCreateOptionsMenu(Menu menu, MenuInflater inflater) argument 2053 performPrepareOptionsMenu(Menu menu) argument 2097 performOptionsMenuClosed(Menu menu) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | CommandParams.java | 155 SelectItemParams(CommandDetails cmdDet, Menu menu, boolean loadTitleIcon) { argument 157 mMenu = menu;
|
H A D | CommandParamsFactory.java | 582 Menu menu = new Menu(); 590 menu.title = ValueParser.retrieveAlphaId(ctlv); 596 menu.items.add(ValueParser.retrieveItem(ctlv)); 602 // We must have at least one menu item. 603 if (menu.items.size() == 0) { 611 menu.defaultItem = ValueParser.retrieveItemId(ctlv) - 1; 618 menu.titleIconSelfExplanatory = titleIconId.selfExplanatory; 625 menu.itemsIconSelfExplanatory = itemsIconId.selfExplanatory; 631 menu.presentationType = PresentationType.DATA_VALUES; 633 menu [all...] |
/frameworks/support/design/src/android/support/design/internal/ |
H A D | NavigationMenuItemView.java | 28 import android.support.v7.internal.view.menu.MenuItemImpl; 29 import android.support.v7.internal.view.menu.MenuView;
|
/frameworks/base/core/java/android/view/ |
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
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | NavigationView.java | 39 import android.support.v7.internal.view.menu.MenuBuilder; 40 import android.support.v7.internal.view.menu.MenuItemImpl; 49 * Represents a standard navigation menu for application. The menu contents can be populated 50 * by a menu resource file. 68 * app:menu="@menu/my_navigation_items" /> 98 // Create the menu 145 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { 150 public void onMenuModeChange(MenuBuilder menu) {} [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) {
|
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/ |
H A D | NetworkActivity.java | 166 // Populates the activity's options menu. 168 public boolean onCreateOptionsMenu(Menu menu) { argument 170 inflater.inflate(R.menu.mainmenu, menu); 174 // Handles the user's menu selection.
|
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
H A D | BiDiTestActivity.java | 156 public boolean onCreateOptionsMenu(Menu menu) { argument 158 inflater.inflate(R.menu.main_menu, menu);
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/ |
H A D | OnePlayerActivity.java | 90 public boolean onCreateOptionsMenu(Menu menu) { argument 91 // Inflate the menu; this adds items to the action bar if it is present. 92 getMenuInflater().inflate(R.menu.main, menu);
|
/frameworks/data-binding/samples/BindingDemo/app/src/main/java/com/android/example/bindingdemo/ |
H A D | MainActivity.java | 116 public boolean onCreateOptionsMenu(Menu menu) { argument 117 // Inflate the menu; this adds items to the action bar if it is present. 118 getMenuInflater().inflate(R.menu.menu_main, menu);
|
/frameworks/base/core/java/android/widget/ |
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/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | Toolbar.java | 43 import android.support.v7.internal.view.menu.MenuBuilder; 44 import android.support.v7.internal.view.menu.MenuItemImpl; 45 import android.support.v7.internal.view.menu.MenuPresenter; 46 import android.support.v7.internal.view.menu.MenuView; 47 import android.support.v7.internal.view.menu.SubMenuBuilder; 89 * <li><em>A navigation button.</em> This may be an Up arrow, navigation menu toggle, close, 107 * <li><em>An {@link ActionMenuView action menu}.</em> The menu of actions will pin to the 110 * frequent, important or typical</a> actions along with an optional overflow menu for 366 * Check whether the overflow menu i 399 setMenu(MenuBuilder menu, ActionMenuPresenter outerPresenter) argument 1954 initForMenu(Context context, MenuBuilder menu) argument 2001 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument 2010 expandItemActionView(MenuBuilder menu, MenuItemImpl item) argument 2037 collapseItemActionView(MenuBuilder menu, MenuItemImpl item) argument [all...] |
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
H A D | IPControls.java | 92 public boolean onCreateOptionsMenu(Menu menu) { argument 93 // Inflate the menu items for use in the action bar 95 inflater.inflate(R.menu.main_activity_actions, menu); 97 MenuItem searchItem = menu.findItem(R.id.action_res); 122 return super.onCreateOptionsMenu(menu);
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | IPControlsJB.java | 94 public boolean onCreateOptionsMenu(Menu menu) { argument 95 // Inflate the menu items for use in the action bar 97 inflater.inflate(R.menu.main_activity_actions, menu); 99 MenuItem searchItem = menu.findItem(R.id.action_res); 118 return super.onCreateOptionsMenu(menu);
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | DocumentsActivity.java | 451 public boolean onCreateOptionsMenu(Menu menu) { argument 452 boolean showMenu = super.onCreateOptionsMenu(menu); 456 expandMenus(menu); 462 public boolean onPrepareOptionsMenu(Menu menu) { argument 463 super.onPrepareOptionsMenu(menu); 468 final MenuItem createDir = menu.findItem(R.id.menu_create_dir); 469 final MenuItem grid = menu.findItem(R.id.menu_grid); 470 final MenuItem list = menu.findItem(R.id.menu_list); 471 final MenuItem advanced = menu.findItem(R.id.menu_advanced); 472 final MenuItem fileSize = menu [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | NavigationBarView.java | 242 return mCurrentView.findViewById(R.id.menu); 304 // Update menu button in case the IME state has changed. 541 View menu = navBar.findViewById(R.id.menu); 543 if (menu != null) { 544 FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) menu.getLayoutParams(); 546 menu.setLayoutParams(lp); 648 pw.println(String.format(" disabled=0x%08x vertical=%s menu=%s", 656 dumpButton(pw, "menu", getMenuButton());
|
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/ |
H A D | CaptivePortalLoginActivity.java | 172 public boolean onCreateOptionsMenu(Menu menu) { argument 173 getMenuInflater().inflate(R.menu.captive_portal_login, menu);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | FrameworkActionBarWrapper.java | 25 import com.android.internal.view.menu.MenuBuilder; 130 // Framework menu. 134 // Project menu. 152 * The context used to inflate the popup menu. 175 * Margin between the menu popup and the action bar. 199 // Inflating the menus doesn't initialize the ActionMenuPresenter. Setting a fake menu 201 MenuBuilder menu = getMenuBuilder(); 204 decorToolbar.setMenu(menu, null); 298 // The super implementation doesn't set the menu on the view. Set it here.
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | IconMenuView.java | 17 package com.android.internal.view.menu; 19 import com.android.internal.view.menu.MenuBuilder.ItemInvoker; 39 * The icon menu view is an icon-based menu usually with a subset of all the menu items. 40 * It is opened as the default menu, and shows either the first five or all six of the menu items 43 * all the menu items. 60 /** Maximum number of items to show in the icon menu. */ 87 /** Default animations for this menu */ 315 initialize(MenuBuilder menu) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ActionBarContextView.java | 22 import com.android.internal.view.menu.MenuBuilder; 108 // Mode is already active; move everything over and adjust the menu itself. 217 final MenuBuilder menu = (MenuBuilder) mode.getMenu(); 227 menu.addMenuPresenter(mActionMenuPresenter, mPopupContext); 240 menu.addMenuPresenter(mActionMenuPresenter, mPopupContext);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
H A D | BaseMenuWrapper.java | 17 package android.support.v7.internal.view.menu;
|