Searched defs:menu (Results 76 - 100 of 105) sorted by relevance

12345

/frameworks/base/core/java/android/view/
H A DMenuInflater.java19 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 DWindow.java56 /** Flag for the context menu. This is enabled by default. */
64 * for an on-screen menu button on some devices.
235 * a menu) will be created for you.
246 * Initialize the contents of the menu for panel 'featureId'. This is
248 * menu in which you can place your items. It is only called once for
251 * <p>You can safely hold on to <var>menu</var> (and any items created
256 * @param menu The menu inside the panel.
261 public boolean onCreatePanelMenu(int featureId, Menu menu); argument
269 * @param menu I
277 onPreparePanel(int featureId, View view, Menu menu) argument
289 onMenuOpened(int featureId, Menu menu) argument
351 onPanelClosed(int featureId, Menu menu) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DCatService.java487 buf.write(menuId); // menu identifier chosen
632 private boolean removeMenu(Menu menu) { argument
634 if (menu.items.size() == 1 && menu.items.get(0) == null) {
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DActionBarActivityDelegateICS.java26 import android.support.v7.internal.view.menu.MenuWrapperFactory;
131 // Do not create custom options menu on HC+
136 public boolean onCreatePanelMenu(int featureId, Menu menu) { argument
139 mMenu = MenuWrapperFactory.createMenuWrapper(menu);
143 return mActivity.superOnCreatePanelMenu(featureId, menu);
147 public boolean onPreparePanel(int featureId, View view, Menu menu) { argument
151 return mActivity.superOnPreparePanel(featureId, view, menu);
279 public boolean onCreatePanelMenu(int featureId, Menu menu) { argument
280 return mWrapped.onCreatePanelMenu(featureId, menu);
284 public boolean onPreparePanel(int featureId, View view, Menu menu) { argument
289 onMenuOpened(int featureId, Menu menu) argument
324 onPanelClosed(int featureId, Menu menu) argument
[all...]
H A DActionBarActivityDelegateBase.java26 import android.support.v7.internal.view.menu.ListMenuPresenter;
27 import android.support.v7.internal.view.menu.MenuBuilder;
28 import android.support.v7.internal.view.menu.MenuPresenter;
29 import android.support.v7.internal.view.menu.MenuView;
30 import android.support.v7.internal.view.menu.MenuWrapperFactory;
68 final MenuBuilder menu = createMenu();
69 if (mActivity.superOnCreatePanelMenu(Window.FEATURE_OPTIONS_PANEL, menu) &&
70 mActivity.superOnPreparePanel(Window.FEATURE_OPTIONS_PANEL, null, menu)) {
71 setMenu(menu);
260 MenuBuilder menu
300 onCreatePanelMenu(int featureId, Menu menu) argument
308 onPreparePanel(int featureId, View view, Menu menu) argument
324 onMenuItemSelected(MenuBuilder menu, MenuItem item) argument
329 onMenuModeChange(MenuBuilder menu) argument
334 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument
380 reopenMenu(MenuBuilder menu, boolean toggleMenuMode) argument
419 setMenu(MenuBuilder menu) argument
572 onCreateActionMode(ActionMode mode, Menu menu) argument
576 onPrepareActionMode(ActionMode mode, Menu menu) argument
[all...]
H A DActionBarImplBase.java29 import android.support.v7.internal.view.menu.MenuBuilder;
30 import android.support.v7.internal.view.menu.SubMenuBuilder;
853 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { argument
862 public void onMenuModeChange(MenuBuilder menu) { argument
870 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { argument
886 public void onCloseSubMenu(SubMenuBuilder menu) { argument
889 public void onMenuModeChange(Menu menu) { argument
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/
H A DSupportMenuInflater.java25 import android.support.v7.internal.view.menu.MenuItemImpl;
45 * This class is used to instantiate menu XML files into Menu objects.
47 * For performance reasons, menu inflation relies heavily on pre-processing of
59 private static final String XML_MENU = "menu";
82 * Constructs a menu inflater.
95 * Inflate a menu hierarchy from the specified XML resource. Throws
99 * <code>R.menu.main_activity</code>)
100 * @param menu The Menu to inflate into. The items and submenus will be
104 public void inflate(int menuRes, Menu menu) { argument
106 if (!(menu instanceo
130 parseMenu(XmlPullParser parser, AttributeSet attrs, Menu menu) argument
252 private Menu menu; field in class:SupportMenuInflater.MenuState
310 MenuState(final Menu menu) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
H A DActionMenuItemView.java17 package android.support.v7.internal.view.menu;
H A DActionMenuItem.java17 package android.support.v7.internal.view.menu;
H A DMenuItemWrapperICS.java17 package android.support.v7.internal.view.menu;
239 // Make framework menu item inflate the view
/frameworks/base/core/java/android/service/dreams/
H A DDreamService.java245 public boolean onCreatePanelMenu(int featureId, Menu menu) { argument
251 public boolean onPreparePanel(int featureId, View view, Menu menu) { argument
257 public boolean onMenuOpened(int featureId, Menu menu) { argument
294 public void onPanelClosed(int featureId, Menu menu) { argument
/frameworks/base/core/java/com/android/internal/view/menu/
H A DActionMenuItem.java17 package com.android.internal.view.menu;
/frameworks/support/v4/java/android/support/v4/app/
H A DFragmentActivity.java217 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 DShareCompat.java213 * a standard activity chooser dialog for the menu item.</p>
219 * on API level 11 or above and uses the Action Bar its menu will be recreated and rebuilt.
221 * the next time the user presses the menu key to open the options menu panel. The activity
223 * the share menu item.</li>
236 * Configure a menu item to act as a sharing action.
238 * @param menu Menu containing the item to use for sharing
239 * @param menuItemId ID of the share item within menu
243 public static void configureMenuItem(Menu menu, int menuItemId, IntentBuilder shareIntent) { argument
244 MenuItem item = menu
[all...]
H A DFragment.java261 // If set this fragment has menu items to contribute.
264 // Set to true to allow the fragment's menu to be shown.
764 * the options menu by receiving a call to {@link #onCreateOptionsMenu}
767 * @param hasMenu If true, the fragment has menu items to contribute.
779 * Set a hint for whether this fragment's menu should be visible. This
781 * hierarchy so that the user can not currently seen it, so any menu items
784 * @param menuVisible The default is true, meaning the fragment's menu will
785 * be shown as usual. If false, the user will not see the menu.
1192 * Initialize the contents of the Activity's standard options menu. You
1193 * should place your menu item
1204 onCreateOptionsMenu(Menu menu, MenuInflater inflater) argument
1221 onPrepareOptionsMenu(Menu menu) argument
1263 onOptionsMenuClosed(Menu menu) argument
1283 onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) argument
1547 performCreateOptionsMenu(Menu menu, MenuInflater inflater) argument
1561 performPrepareOptionsMenu(Menu menu) argument
1605 performOptionsMenuClosed(Menu menu) argument
[all...]
H A DFragmentManager.java1940 public boolean dispatchCreateOptionsMenu(Menu menu, MenuInflater inflater) { argument
1947 if (f.performCreateOptionsMenu(menu, inflater)) {
1972 public boolean dispatchPrepareOptionsMenu(Menu menu) { argument
1978 if (f.performPrepareOptionsMenu(menu)) {
2015 public void dispatchOptionsMenuClosed(Menu menu) { argument
2020 f.performOptionsMenuClosed(menu);
/frameworks/base/core/java/android/app/
H A DDialog.java599 * {@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 DFragmentManager.java346 * Invalidate the attached activity's options menu as necessary.
1907 public boolean dispatchCreateOptionsMenu(Menu menu, MenuInflater inflater) { argument
1914 if (f.performCreateOptionsMenu(menu, inflater)) {
1939 public boolean dispatchPrepareOptionsMenu(Menu menu) { argument
1945 if (f.performPrepareOptionsMenu(menu)) {
1982 public void dispatchOptionsMenuClosed(Menu menu) { argument
1987 f.performOptionsMenuClosed(menu);
H A DFragment.java451 // 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...]
H A DActivity.java1970 * Use with {@link #setDefaultKeyMode} to execute a menu shortcut in
1973 * <p>That is, the user does not need to hold down the menu key to execute menu shortcuts.
2006 * menu without requiring the menu key be held down
2011 * handling of system keys, such as the "back" and "menu" keys, and your
2190 * {@link MenuItem#setShortcut(char, char) shortcut} property of menu items.
2488 * menu behavior.
2502 public boolean onCreatePanelMenu(int featureId, Menu menu) { argument
2504 boolean show = onCreateOptionsMenu(menu);
2520 onPreparePanel(int featureId, View view, Menu menu) argument
2534 onMenuOpened(int featureId, Menu menu) argument
2605 onPanelClosed(int featureId, Menu menu) argument
2660 onCreateOptionsMenu(Menu menu) argument
2685 onPrepareOptionsMenu(Menu menu) argument
2828 onOptionsMenuClosed(Menu menu) argument
2863 onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) argument
2940 onContextMenuClosed(Menu menu) argument
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DActionBarImpl.java20 import com.android.internal.view.menu.MenuBuilder;
21 import com.android.internal.view.menu.MenuPopupHelper;
22 import com.android.internal.view.menu.SubMenuBuilder;
960 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { argument
968 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { argument
984 public void onCloseSubMenu(SubMenuBuilder menu) { argument
987 public void onMenuModeChange(MenuBuilder menu) { argument
/frameworks/base/core/java/com/android/internal/widget/
H A DActionBarView.java20 import com.android.internal.view.menu.ActionMenuItem;
21 import com.android.internal.view.menu.ActionMenuPresenter;
22 import com.android.internal.view.menu.ActionMenuView;
23 import com.android.internal.view.menu.MenuBuilder;
24 import com.android.internal.view.menu.MenuItemImpl;
25 import com.android.internal.view.menu.MenuPresenter;
26 import com.android.internal.view.menu.MenuView;
27 import com.android.internal.view.menu.SubMenuBuilder;
170 // Only invoke the window callback if the options menu has been initialized.
308 * Set the window callback used to invoke menu item
418 setMenu(Menu menu, MenuPresenter.Callback cb) argument
1572 initForMenu(Context context, MenuBuilder menu) argument
1619 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument
1628 expandItemActionView(MenuBuilder menu, MenuItemImpl item) argument
1655 collapseItemActionView(MenuBuilder menu, MenuItemImpl item) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DActionBarView.java34 import android.support.v7.internal.view.menu.ActionMenuItem;
35 import android.support.v7.internal.view.menu.ActionMenuPresenter;
36 import android.support.v7.internal.view.menu.ActionMenuView;
37 import android.support.v7.internal.view.menu.MenuBuilder;
38 import android.support.v7.internal.view.menu.MenuItemImpl;
39 import android.support.v7.internal.view.menu.MenuPresenter;
40 import android.support.v7.internal.view.menu.MenuView;
41 import android.support.v7.internal.view.menu.SubMenuBuilder;
280 * Set the view callback used to invoke menu items; used for dispatching home button presses.
386 public void setMenu(SupportMenu menu, MenuPresente argument
1372 initForMenu(Context context, MenuBuilder menu) argument
1419 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument
1428 expandItemActionView(MenuBuilder menu, MenuItemImpl item) argument
1462 collapseItemActionView(MenuBuilder menu, MenuItemImpl item) argument
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DPhoneWindow.java27 import com.android.internal.view.menu.ContextMenuBuilder;
28 import com.android.internal.view.menu.IconMenuPresenter;
29 import com.android.internal.view.menu.ListMenuPresenter;
30 import com.android.internal.view.menu.MenuBuilder;
31 import com.android.internal.view.menu.MenuDialogHelper;
32 import com.android.internal.view.menu.MenuPresenter;
33 import com.android.internal.view.menu.MenuView;
109 * Simple callback used by the context menu and its submenus. The options
110 * menu submenus do not use this (their behavior is more complex).
388 // dispatches menu
719 checkCloseActionMenu(Menu menu) argument
969 findMenuPanel(Menu menu) argument
981 onMenuItemSelected(MenuBuilder menu, MenuItem item) argument
992 onMenuModeChange(MenuBuilder menu) argument
1757 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument
1798 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument
2560 onCreateActionMode(ActionMode mode, Menu menu) argument
2564 onPrepareActionMode(ActionMode mode, Menu menu) argument
3184 callOnPanelClosed(int featureId, PanelFeatureState panel, Menu menu) argument
3293 MenuBuilder menu; field in class:PhoneWindow.PanelFeatureState
3395 setMenu(MenuBuilder menu) argument
3612 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument
3635 onCloseSubMenu(MenuBuilder menu) argument
3642 onMenuItemSelected(MenuBuilder menu, MenuItem item) argument
3648 onMenuModeChange(MenuBuilder menu) argument
[all...]
/frameworks/ex/chips/src/com/android/ex/chips/
H A DRecipientEditTextView.java1753 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { argument
1761 public boolean onCreateActionMode(ActionMode mode, Menu menu) { argument

Completed in 643 milliseconds

12345