/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
H A D | TestApp.java | 74 public boolean onCreateOptionsMenu(Menu menu) { argument 76 inflater.inflate(R.menu.loader_menu, menu);
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | ListMenuPresenter.java | 17 package com.android.internal.view.menu; 55 public static final String VIEWS_TAG = "android:menu:list"; 80 public void initForMenu(Context context, MenuBuilder menu) { argument 90 mMenu = menu; 115 * @return A ListAdapter containing the items in the menu. 147 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { argument 149 mCallback.onCloseMenu(menu, allMenusAreClosing); 174 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { argument 178 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { argument 248 // Since a menu ite [all...] |
H A D | IconMenuPresenter.java | 16 package com.android.internal.view.menu; 18 import com.android.internal.view.menu.MenuView.ItemView; 32 * MenuPresenter for the classic "six-pack" icon menu. 42 private static final String VIEWS_TAG = "android:menu:icon"; 43 private static final String OPEN_SUBMENU_KEY = "android:menu:icon:submenu"; 52 public void initForMenu(Context context, MenuBuilder menu) { argument 53 super.initForMenu(context, menu); 178 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { argument
|
H A D | MenuItemImpl.java | 17 package com.android.internal.view.menu; 19 import com.android.internal.view.menu.MenuView.ItemView; 64 /** The menu to which this item belongs */ 66 /** If this item should launch a sub menu, this is the sub menu to launch */ 91 * Current use case is for context menu: Extra information linked to the 92 * View that added this item to the context menu. 103 * Instantiates this menu item. 105 * @param menu 114 MenuItemImpl(MenuBuilder menu, in argument [all...] |
H A D | ActionMenuPresenter.java | 17 package com.android.internal.view.menu; 20 import com.android.internal.view.menu.ActionMenuView.ActionMenuChildView; 77 public void initForMenu(Context context, MenuBuilder menu) { argument 78 super.initForMenu(context, menu); 276 * Display the overflow menu if one is present. 277 * @return true if the overflow menu was shown, false otherwise. 297 * Hide the overflow menu if it is currently showing. 299 * @return true if the overflow menu was hidden, false otherwise. 340 * @return true if the overflow menu is currently showing 347 * @return true if space has been reserved in the action menu fo 488 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument 595 OverflowPopup(Context context, MenuBuilder menu, View anchorView, boolean overflowOnly) argument 655 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument [all...] |
H A D | ContextMenuBuilder.java | 17 package com.android.internal.view.menu; 29 * Most clients of the menu framework will never need to touch this 37 * call {@link #show(View, IBinder)} which will populate the menu 38 * with a view's context menu items and show the context menu. 67 * Shows this context menu, allowing the optional original view (and its 71 * context menu. 73 * menu's window. 74 * @return If the context menu was shown, the {@link MenuDialogHelper} for 80 // the context menu [all...] |
/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/view/ |
H A D | MenuInflater.java | 19 import com.android.internal.view.menu.MenuItemImpl; 37 * This class is used to instantiate menu XML files into Menu objects. 39 * For performance reasons, menu inflation relies heavily on pre-processing of 49 private static final String XML_MENU = "menu"; 71 * 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 246 private Menu menu; field in class:MenuInflater.MenuState 304 MenuState(final Menu menu) argument [all...] |
H A D | ViewParent.java | 165 * Bring up a context menu for the specified view or its ancestors. 170 * then it should override this and show the context menu.</p> 172 * @param originalView The source view where the context menu was first invoked 173 * @return true if a context menu was displayed 178 * Have the parent populate the specified context menu if it has anything to 181 * @param menu The menu to populate 183 public void createContextMenu(ContextMenu menu); argument
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | PhoneWindow.java | 31 import com.android.internal.view.menu.ContextMenuBuilder; 32 import com.android.internal.view.menu.IconMenuPresenter; 33 import com.android.internal.view.menu.ListMenuPresenter; 34 import com.android.internal.view.menu.MenuBuilder; 35 import com.android.internal.view.menu.MenuDialogHelper; 36 import com.android.internal.view.menu.MenuPresenter; 37 import com.android.internal.view.menu.MenuView; 112 * Simple callback used by the context menu and its submenus. The options 113 * menu submenus do not use this (their behavior is more complex). 387 // Init the panel state's menu 713 checkCloseActionMenu(Menu menu) argument 963 findMenuPanel(Menu menu) argument 975 onMenuItemSelected(MenuBuilder menu, MenuItem item) argument 986 onMenuModeChange(MenuBuilder menu) argument 1744 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument 1785 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument 2549 onCreateActionMode(ActionMode mode, Menu menu) argument 2553 onPrepareActionMode(ActionMode mode, Menu menu) argument 3173 callOnPanelClosed(int featureId, PanelFeatureState panel, Menu menu) argument 3282 MenuBuilder menu; field in class:PhoneWindow.PanelFeatureState 3384 setMenu(MenuBuilder menu) argument 3601 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument 3624 onCloseSubMenu(MenuBuilder menu) argument 3631 onMenuItemSelected(MenuBuilder menu, MenuItem item) argument 3637 onMenuModeChange(MenuBuilder menu) argument [all...] |
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
H A D | ActivityTestMain.java | 143 public boolean onCreateOptionsMenu(Menu menu) { argument 144 menu.add("Animate!").setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { 153 menu.add("Bind!").setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { 175 menu.add("Start!").setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { 182 menu.add("Send!").setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { 190 menu.add("Call!").setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { 208 menu.add("Send to user 0!").setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { 217 menu.add("Send to user " + mSecondUser + "!").setOnMenuItemClickListener( 227 menu.add("Bind to user 0!").setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { 249 menu [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | FindActionModeCallback.java | 185 public boolean onCreateActionMode(ActionMode mode, Menu menu) { argument 195 mode.getMenuInflater().inflate(com.android.internal.R.menu.webview_find, 196 menu); 215 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { argument 278 public boolean onCreateActionMode(ActionMode mode, Menu menu) { argument 283 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { argument
|
/frameworks/support/v4/java/android/support/v4/app/ |
H A D | FragmentActivity.java | 217 public boolean onCreatePanelMenu(int featureId, Menu menu) { argument 219 boolean show = super.onCreatePanelMenu(featureId, menu); 220 show |= mFragments.dispatchCreateOptionsMenu(menu, getMenuInflater()); 225 // menu, so we must always say we have one in case the app later 229 return super.onCreatePanelMenu(featureId, menu); 357 * Dispatch context and options menu to fragments. 381 public void onPanelClosed(int featureId, Menu menu) { argument 384 mFragments.dispatchOptionsMenuClosed(menu); 387 super.onPanelClosed(featureId, menu); 462 public boolean onPreparePanel(int featureId, View view, Menu menu) { argument [all...] |
H A D | Fragment.java | 261 // If set this fragment has menu items to contribute. 264 // Set to true to allow the fragment's menu to be shown. 754 * the options menu by receiving a call to {@link #onCreateOptionsMenu} 757 * @param hasMenu If true, the fragment has menu items to contribute. 769 * Set a hint for whether this fragment's menu should be visible. This 771 * hierarchy so that the user can not currently seen it, so any menu items 774 * @param menuVisible The default is true, meaning the fragment's menu will 775 * be shown as usual. If false, the user will not see the menu. 1182 * Initialize the contents of the Activity's standard options menu. You 1183 * should place your menu item 1194 onCreateOptionsMenu(Menu menu, MenuInflater inflater) argument 1211 onPrepareOptionsMenu(Menu menu) argument 1253 onOptionsMenuClosed(Menu menu) argument 1273 onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) argument 1537 performCreateOptionsMenu(Menu menu, MenuInflater inflater) argument 1551 performPrepareOptionsMenu(Menu menu) argument 1595 performOptionsMenuClosed(Menu menu) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | Dialog.java | 599 * {@link MenuItem#setShortcut(char, char) shortcut} property of menu items. 802 public boolean onCreatePanelMenu(int featureId, Menu menu) { argument 804 return onCreateOptionsMenu(menu); 813 public boolean onPreparePanel(int featureId, View view, Menu menu) { argument 814 if (featureId == Window.FEATURE_OPTIONS_PANEL && menu != null) { 815 boolean goforit = onPrepareOptionsMenu(menu); 816 return goforit && menu.hasVisibleItems(); 824 public boolean onMenuOpened(int featureId, Menu menu) { argument 841 public void onPanelClosed(int featureId, Menu menu) { argument 850 * menu fo 855 onCreateOptionsMenu(Menu menu) argument 867 onPrepareOptionsMenu(Menu menu) argument 881 onOptionsMenuClosed(Menu menu) argument 908 onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) argument 942 onContextMenuClosed(Menu menu) argument [all...] |
H A D | Fragment.java | 451 // If set this fragment has menu items to contribute. 454 // Set to true to allow the fragment's menu to be shown. 945 * the options menu by receiving a call to {@link #onCreateOptionsMenu} 948 * @param hasMenu If true, the fragment has menu items to contribute. 960 * Set a hint for whether this fragment's menu should be visible. This 962 * hierarchy so that the user can not currently seen it, so any menu items 965 * @param menuVisible The default is true, meaning the fragment's menu will 966 * be shown as usual. If false, the user will not see the menu. 1421 * Initialize the contents of the Activity's standard options menu. You 1422 * should place your menu item 1433 onCreateOptionsMenu(Menu menu, MenuInflater inflater) argument 1450 onPrepareOptionsMenu(Menu menu) argument 1492 onOptionsMenuClosed(Menu menu) argument 1512 onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) argument 1770 performCreateOptionsMenu(Menu menu, MenuInflater inflater) argument 1784 performPrepareOptionsMenu(Menu menu) argument 1828 performOptionsMenuClosed(Menu menu) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
H A D | MenuLayoutLandscapeTest.java | 17 package android.view.menu; 20 import com.android.internal.view.menu.IconMenuView; 21 import com.android.internal.view.menu.MenuBuilder; 53 * Asserts the layout of the menu.
|
H A D | MenuLayoutPortraitTest.java | 17 package android.view.menu; 20 import com.android.internal.view.menu.IconMenuView; 21 import com.android.internal.view.menu.MenuBuilder; 53 * Asserts the layout of the menu.
|
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
H A D | RsBench.java | 86 public boolean onCreateOptionsMenu(Menu menu) { argument 88 inflater.inflate(R.menu.loader_menu, menu);
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/ |
H A D | TrackerActivity.java | 53 * - enable/disable "start service" and "stop service" menu items as 76 * Builds the menu 78 * @param menu - menu to add items to 81 public boolean onCreateOptionsMenu(Menu menu) { argument 83 menuInflater.inflate(R.menu.menu, menu); 88 * Handles menu item selection 90 * @param item - the selected menu ite [all...] |
/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 | 157 public boolean onCreateOptionsMenu(Menu menu) { argument 159 inflater.inflate(R.menu.main_menu, menu);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | CommandParamsFactory.java | 535 Menu menu = new Menu(); 543 menu.title = ValueParser.retrieveAlphaId(ctlv); 549 menu.items.add(ValueParser.retrieveItem(ctlv)); 555 // We must have at least one menu item. 556 if (menu.items.size() == 0) { 564 menu.defaultItem = ValueParser.retrieveItemId(ctlv) - 1; 571 menu.titleIconSelfExplanatory = titleIconId.selfExplanatory; 578 menu.itemsIconSelfExplanatory = itemsIconId.selfExplanatory; 584 menu.presentationType = PresentationType.DATA_VALUES; 586 menu [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ActionBarContextView.java | 19 import com.android.internal.view.menu.ActionMenuPresenter; 20 import com.android.internal.view.menu.ActionMenuView; 21 import com.android.internal.view.menu.MenuBuilder; 110 // Mode is already active; move everything over and adjust the menu itself. 219 final MenuBuilder menu = (MenuBuilder) mode.getMenu(); 229 menu.addMenuPresenter(mActionMenuPresenter); 242 menu.addMenuPresenter(mActionMenuPresenter);
|
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/ui/ |
H A D | DirListActivity.java | 239 public boolean onCreateOptionsMenu(Menu menu) { argument 241 inflater.inflate(R.menu.gui_menu, menu);
|