/frameworks/base/core/java/com/android/internal/view/menu/ |
SubMenuBuilder.java | 17 package com.android.internal.view.menu; 21 import android.view.Menu; 27 * The model for a sub menu, which is an extension of the menu. Most methods are proxied to 28 * the parent menu. 61 public Menu getParentMenu() { 80 boolean dispatchMenuItemSelected(MenuBuilder menu, MenuItem item) { 81 return super.dispatchMenuItemSelected(menu, item) || 82 mParentMenu.dispatchMenuItemSelected(menu, item);
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
SimpleModel.java | 31 import android.view.Menu; 73 public boolean onCreateOptionsMenu(Menu menu) { 75 inflater.inflate(R.menu.loader_menu, menu);
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
TestApp.java | 31 import android.view.Menu; 74 public boolean onCreateOptionsMenu(Menu menu) { 76 inflater.inflate(R.menu.loader_menu, menu);
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
ActionBarActivityDelegateICS.java | 26 import android.support.v7.internal.view.menu.MenuWrapperFactory; 29 import android.view.Menu; 39 Menu mMenu; 137 // Do not create custom options menu on HC+ 142 public boolean onCreatePanelMenu(int featureId, Menu menu) { 145 mMenu = MenuWrapperFactory.createMenuWrapper(menu); 149 return mActivity.superOnCreatePanelMenu(featureId, menu); 153 public boolean onPreparePanel(int featureId, View view, Menu menu) { [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
PopupMenu.java | 21 import android.support.v7.internal.view.menu.MenuBuilder; 22 import android.support.v7.internal.view.menu.MenuPopupHelper; 23 import android.support.v7.internal.view.menu.MenuPresenter; 24 import android.support.v7.internal.view.menu.SubMenuBuilder; 25 import android.view.Menu; 46 * Callback interface used to notify the application that the menu has closed. 50 * Called when the associated menu has been dismissed. 52 * @param menu The PopupMenu that was dismissed. 54 public void onDismiss(PopupMenu menu); 74 * @return the {@link Menu} associated with this popup. Populate the returned Menu wit [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
SwapButton.java | 22 import android.view.Menu; 38 private Menu mMenu;
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
SearchMailActionBarView.java | 23 import android.view.Menu; 33 * custom views, but it shows/hides various menu items based on the viewmode. 50 public boolean onPrepareOptionsMenu(Menu menu) { 51 super.onPrepareOptionsMenu(menu); 52 Utils.setMenuItemVisibility(menu, R.id.manage_folders_item, false); 88 // Remove focus from the search action menu in search results mode so 123 // When the action menu is collapsed, the search activity has finished. We should exit
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/ |
MenuLoader.java | 16 import android.view.Menu; 38 throw new RuntimeException("Expected only one top-level item in menu file " + xmlFile.getName()); 39 if (items.item(0).getNodeName().compareTo("menu") != 0) 40 throw new RuntimeException("Expected a top-level item called 'menu' in menu file " + xmlFile.getName()); 43 menuNodesByMenuName.put("menu/" + xmlFile.getName().replace(".xml", ""), topLevelNode); 78 throw new RuntimeException("Unknown menu node" 93 || nodei.getNodeName().equals("menu") 97 public void inflateMenu(Context context, String key, Menu root) { 101 public void inflateMenu(Context context, int resourceId, Menu root) [all...] |
/packages/apps/Browser/src/com/android/browser/ |
BrowserActivity.java | 31 import android.view.Menu; 146 public boolean onMenuOpened(int featureId, Menu menu) { 148 mController.onMenuOpened(featureId, menu); 154 public void onOptionsMenuClosed(Menu menu) { 155 mController.onOptionsMenuClosed(menu); 159 public void onContextMenuClosed(Menu menu) { 160 super.onContextMenuClosed(menu); [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
RunLintAction.java | 42 import org.eclipse.swt.widgets.Menu; 56 * pulldown menu in the toolbar for selecting specifically which projects to 63 private Menu mMenu; 109 public Menu getMenu(Control parent) { 110 mMenu = new Menu(parent); 170 public Menu getMenu(Menu parent) { 179 * Actions in the pulldown context menu: run lint or clear lint markers on 187 * Creates a new context menu action
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
WifiSettings.java | 61 import android.view.Menu; 95 private static final int MENU_ID_WPS_PBC = Menu.FIRST; 96 private static final int MENU_ID_WPS_PIN = Menu.FIRST + 1; 97 private static final int MENU_ID_P2P = Menu.FIRST + 2; 98 private static final int MENU_ID_ADD_NETWORK = Menu.FIRST + 3; 99 private static final int MENU_ID_ADVANCED = Menu.FIRST + 4; 100 private static final int MENU_ID_SCAN = Menu.FIRST + 5; 101 private static final int MENU_ID_CONNECT = Menu.FIRST + 6; 102 private static final int MENU_ID_FORGET = Menu.FIRST + 7; 103 private static final int MENU_ID_MODIFY = Menu.FIRST + 8 [all...] |
/development/samples/Support7Demos/src/com/example/android/supportv7/app/ |
ActionBarFragmentMenu.java | 20 import android.view.Menu; 36 * Demonstrates how fragments can participate in the options menu. 60 // Make sure the two menu fragments are created. 126 * A fragment that displays a menu. This fragment happens to not 138 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { 139 MenuItemCompat.setShowAsAction(menu.add("Menu 1a"), MenuItem.SHOW_AS_ACTION_IF_ROOM); 140 MenuItemCompat.setShowAsAction(menu.add("Menu 1b"), MenuItem.SHOW_AS_ACTION_IF_ROOM) [all...] |
/frameworks/base/core/java/android/webkit/ |
FindActionModeCallback.java | 29 import android.view.Menu; 196 public boolean onCreateActionMode(ActionMode mode, Menu menu) { 206 mode.getMenuInflater().inflate(com.android.internal.R.menu.webview_find, 207 menu); 227 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { 290 public boolean onCreateActionMode(ActionMode mode, Menu menu) { 295 public boolean onPrepareActionMode(ActionMode mode, Menu menu) [all...] |
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
PowerUsageSummary.java | 35 import android.view.Menu; 58 private static final int MENU_STATS_TYPE = Menu.FIRST; 59 private static final int MENU_STATS_REFRESH = Menu.FIRST + 1; 60 private static final int MENU_HELP = Menu.FIRST + 2; 152 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { 154 menu.add(0, MENU_STATS_TYPE, 0, R.string.menu_stats_total) 158 MenuItem refresh = menu.add(0, MENU_STATS_REFRESH, 0, R.string.menu_stats_refresh) 166 final MenuItem help = menu.add(0, MENU_HELP, 0, R.string.help_label);
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/ |
HomeGroupsXLarge.java | 31 import android.view.Menu; 156 public boolean onCreateActionMenu(Menu menu) { 158 menu.add(0, ACTION_ID_SEARCH, 0, R.string.menu_search) 160 menu.add(0, ACTION_ID_ADD, 1, R.string.menu_newContact) 167 public boolean onUpdateActionMenu(Menu menu) { 193 public boolean onCreateContextMode(int modeId, Menu menu) { 198 public boolean onPrepareContextMode(int modeId, Menu menu) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
DeviceMenuListener.java | 39 import org.eclipse.swt.widgets.Menu; 51 * menu in the {@link ConfigurationChooser}. 73 Menu menu = new Menu(chooser.getShell(), SWT.POP_UP); local 87 MenuItem item = new MenuItem(menu, SWT.CHECK); 98 MenuItem separator = new MenuItem(menu, SWT.SEPARATOR); 103 // Group the devices by manufacturer, then put them in the menu. 127 Menu manufacturerMenu = menu; [all...] |
LocaleMenuListener.java | 31 import org.eclipse.swt.widgets.Menu; 40 * menu in the {@link ConfigurationChooser}. 79 Menu menu = new Menu(chooser.getShell(), SWT.POP_UP); local 86 MenuItem item = new MenuItem(menu, SWT.CHECK); 103 MenuItem separator = new MenuItem(menu, SWT.SEPARATOR); 105 ConfigurationMenuListener.addTogglePreviewModeAction(menu, 110 MenuItem separator = new MenuItem(menu, SWT.SEPARATOR); 112 MenuItem item = new MenuItem(menu, SWT.PUSH) [all...] |
TargetMenuListener.java | 30 import org.eclipse.swt.widgets.Menu; 39 * generating the rendering target menu in the {@link ConfigurationChooser}. 78 Menu menu = new Menu(chooser.getShell(), SWT.POP_UP); local 84 MenuItem menuItem = new MenuItem(menu, SWT.CHECK); 92 MenuItem separator = new MenuItem(menu, SWT.SEPARATOR); 109 MenuItem item = new MenuItem(menu, SWT.CHECK); 123 menu.setLocation(location.x, location.y); 124 menu.setVisible(true) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
MenuInflateFromXml.java | 23 import android.view.Menu; 35 * Demonstrates inflating menus from XML. There are different menu XML resources 37 * the spinner, and then hit the menu button. To choose another, back out of the 42 * Different example menu resources. 45 R.menu.title_only, R.menu.title_icon, R.menu.submenu, R.menu.groups, 46 R.menu.checkable, R.menu.shortcuts, R.menu.order, R.menu.category_order [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
Grid3.java | 26 import android.view.Menu; 133 public boolean onCreateActionMode(ActionMode mode, Menu menu) { 139 public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/res/ |
MenuLoaderTest.java | 18 import android.view.Menu; 46 new DocumentLoader(menuLoader).loadResourceXmlDir(resourceFile("res", "menu")); 55 Menu testMenu = new TestMenu(); 57 menuLoader.inflateMenu(Robolectric.application, R.menu.test, testMenu); 60 public class TestMenu implements Menu {
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
GroupDetailActivity.java | 26 import android.view.Menu; 115 public boolean onCreateOptionsMenu(Menu menu) { 116 super.onCreateOptionsMenu(menu); 119 inflater.inflate(R.menu.group_source, menu); 125 public boolean onPrepareOptionsMenu(Menu menu) { 129 MenuItem groupSourceMenuItem = menu.findItem(R.id.menu_group_source);
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
UserDictionaryAddWordFragment.java | 23 import android.view.Menu; 47 private static final int OPTIONS_MENU_DELETE = Menu.FIRST; 86 public void onCreateOptionsMenu(final Menu menu, final MenuInflater inflater) { 87 MenuItem actionItem = menu.add(0, OPTIONS_MENU_DELETE, 0, R.string.delete) 94 * Callback for the framework when a menu option is pressed. 96 * This class only supports the delete menu item. 98 * @return false to allow normal menu processing to proceed, true to consume it here
|
/packages/services/Telephony/src/com/android/phone/ |
FdnList.java | 24 import android.view.Menu; 59 public boolean onCreateOptionsMenu(Menu menu) { 60 super.onCreateOptionsMenu(menu); 64 // Added the icons to the context menu 65 menu.add(0, MENU_ADD, 0, r.getString(R.string.menu_add)) 67 menu.add(0, MENU_EDIT, 0, r.getString(R.string.menu_edit)) 69 menu.add(0, MENU_DELETE, 0, r.getString(R.string.menu_delete)) 75 public boolean onPrepareOptionsMenu(Menu menu) { [all...] |
/developers/samples/android/connectivity/network/BasicNetworkDemo/BasicNetworkDemo/src/main/java/com/example/android/networkbasic/ |
MainActivity.java | 25 import android.view.Menu; 69 public boolean onCreateOptionsMenu(Menu menu) { 70 getMenuInflater().inflate(R.menu.main, menu);
|