/cts/tests/tests/view/src/android/view/cts/ |
MenuInflaterTest.java | 20 import com.android.internal.view.menu.MenuBuilder; 35 import android.view.Menu; 72 notes = "Test {@link MenuInflater#inflate(int, Menu)}", 74 args = {int.class, android.view.Menu.class} 77 + "MenuInflater#inflate(int, Menu) when param menu is null") 79 Menu menu = new MenuBuilder(mActivity); local 80 assertEquals(0, menu.size()); 82 mMenuInflater.inflate(com.android.cts.stub.R.menu.browser, menu) 107 Menu menu = new MenuBuilder(mActivity); local [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
ListContextMenu.java | 26 import android.view.Menu; 98 public boolean onCreateOptionsMenu(Menu menu) { 99 MenuItem item = menu.add(0, 0, 0, "Really long menu item name"); 103 SubMenu sm = menu.addSubMenu(0, 0, 0, "The 2nd item, a sub menu").setIcon(R.drawable.black_square_stretchable); 105 item.setTitleCondensed("Sub menu"); 110 menu.add(0, 0, 0, "Item 3"); 111 menu.add(0, 0, 0, "Item 4") [all...] |
/external/opencore/protocols/sdp/parser/build/cml2/ |
symbols.cml | 2 sdpparser_plugins_menu 'Menu for configuring SDPParser'
|
/cts/tests/src/android/view/cts/ |
WindowStubActivity.java | 24 import android.view.Menu; 41 public boolean onCreateOptionsMenu(Menu menu) { 42 menu.add(Menu.NONE, Menu.NONE, Menu.NONE, "Quit").setAlphabeticShortcut('q'); 43 menu.add(Menu.NONE, Menu.NONE, Menu.NONE, "Action").setAlphabeticShortcut('a') [all...] |
/frameworks/base/docs/html/guide/topics/ui/ |
menus.jd | 10 <li>{@link android.view.Menu}</li> 16 <li><a href="#options-menu">Options Menu</a></li> 17 <li><a href="#context-menu">Context Menu</a></li> 20 <li><a href="#features">Menu Features</a> 22 <li><a href="#groups">Menu groups</a></li> 23 <li><a href="#checkable">Checkable menu items</a></li> 25 <li><a href="#intents">Menu item intents</a></li> 38 <dt><strong>Options Menu</strong></dt [all...] |
/external/opencore/build_config/opencore_dynamic/ |
pv_config_selected.mk | 12 # Menu for selecting supported features 19 # Menu for configuring runtime loadable modules 26 # Menu for selecting streaming features 43 # Menu for configuring Baselibs 56 # Menu for configuring File Formats 81 # Menu for configuring Codecs 85 # Menu for configuring OMX Support 108 # Menu for configuring audio codecs 123 # Menu for configuring video codecs 135 # Menu for configuring codecs utilitie [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ |
Makefile | 3 cat menuhead.html menubody.html menufoot.html > menu.html
|
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
MenuLayout.java | 17 package android.view.menu; 19 import android.view.menu.MenuScenario.Params; 22 import android.view.Menu; 41 public boolean onPrepareOptionsMenu(Menu menu) { 44 * This activity is meant to try a bunch of different menu layouts. So, 45 * we recreate the menu every time it is prepared. 47 menu.clear(); 48 onCreateOptionsMenu(menu);
|
MenuScenario.java | 17 package android.view.menu; 20 import com.android.internal.view.menu.MenuBuilder; 21 import com.android.internal.view.menu.MenuBuilder.MenuAdapter; 26 import android.view.Menu; 31 * Utility base class for creating various Menu scenarios. Configurable by the 32 * number of menu items. Used @link {@link ListScenario} as a reference. 36 private Menu mMenu; 64 public boolean onCreateOptionsMenu(Menu menu) { 66 mMenu = menu; [all...] |
/cts/tests/src/android/app/cts/ |
TestDialog.java | 23 import android.view.Menu; 32 private static final int OPTIONS_MENU_ITEM_0 = Menu.FIRST; 33 private static final int OPTIONS_MENU_ITEM_1 = Menu.FIRST + 1; 34 private static final int OPTIONS_MENU_ITEM_2 = Menu.FIRST + 2; 35 private static final int OPTIONS_MENU_ITEM_3 = Menu.FIRST + 3; 36 private static final int OPTIONS_MENU_ITEM_4 = Menu.FIRST + 4; 37 private static final int OPTIONS_MENU_ITEM_5 = Menu.FIRST + 5; 38 private static final int OPTIONS_MENU_ITEM_6 = Menu.FIRST + 6; 39 private static final int CONTEXT_MENU_ITEM_0 = Menu.FIRST + 7; 40 private static final int CONTEXT_MENU_ITEM_1 = Menu.FIRST + 8 [all...] |
AppStubActivity.java | 24 import android.view.Menu; 87 public void onOptionsMenuClosed(Menu menu) { 88 super.onOptionsMenuClosed(menu); 93 public boolean onPrepareOptionsMenu(Menu menu) { 95 return super.onPrepareOptionsMenu(menu); 99 public boolean onCreateOptionsMenu(Menu menu) { 101 if(menu != null [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
MenuHelper.java | 24 import android.view.Menu; 49 public static void onPrepareOptionsMenu(Activity activity, Menu menu) { 52 menu.setGroupVisible(MENU_GROUP_AGENDA, true); 53 menu.setGroupEnabled(MENU_GROUP_AGENDA, false); 55 menu.setGroupVisible(MENU_GROUP_AGENDA, true); 56 menu.setGroupEnabled(MENU_GROUP_AGENDA, true); 60 menu.setGroupVisible(MENU_GROUP_DAY, true); 61 menu.setGroupEnabled(MENU_GROUP_DAY, false); 63 menu.setGroupVisible(MENU_GROUP_DAY, true) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
LinearLayout8.java | 25 import android.view.Menu; 38 // Menu item Ids 39 public static final int VERTICAL_ID = Menu.FIRST; 40 public static final int HORIZONTAL_ID = Menu.FIRST + 1; 42 public static final int TOP_ID = Menu.FIRST + 2; 43 public static final int MIDDLE_ID = Menu.FIRST + 3; 44 public static final int BOTTOM_ID = Menu.FIRST + 4; 46 public static final int LEFT_ID = Menu.FIRST + 5; 47 public static final int CENTER_ID = Menu.FIRST + 6; 48 public static final int RIGHT_ID = Menu.FIRST + 7 [all...] |
/frameworks/base/docs/html/guide/practices/ui_guidelines/ |
menu_design.jd | 1 page.title=Menu Design Guidelines 7 <h2>Menu design quickview</h2> 10 <li>An Options menu is for any commands that are global to the current activity. </li> 11 <li>A Context menu is for any commands that apply to the current selection. </li> 14 <li>The commands on the Context menu that appears when you touch & hold on an item should be duplicated on the activity you get to by a normal press on that item. 23 <li style="padding-top: 4px;"><a href=#options_menu>Options Menu</a></li> 24 <li style="padding-top: 4px;"><a href=#context_menu>Context Menu</a></li> 33 <li style="padding-top: 4px;"><a href=#dont_put_commands>Don't put commands <em>only</em> in a Context menu</li> 34 <li style="padding-top: 4px;"><a href=#first_in_context_menu>First command in Context menu should be most intuitive</li> 36 <li style="padding-top: 4px;"><a href=#context_menu_should_identify>A Context menu should identify the selected item</li [all...] |
/packages/apps/Gallery3D/src/com/cooliris/media/ |
MenuBar.java | 51 private Menu[] mMenus = {}; 72 public Menu[] getMenus() { 76 public void setMenus(Menu[] menus) { 81 public void updateMenu(Menu menu, int index) { 82 mMenus[index] = menu; 127 Menu[] menus = mMenus; 146 Menu menu = menus[i]; local 147 ResourceTexture icon = view.getResource(menu.icon) 175 Menu menu = mMenus[touchMenu]; local 228 Menu menu = mMenus[index]; local 308 Menu menu = mMenus[hit]; local 359 Menu menu = menus[i]; local 399 Menu menu = menus[i]; local [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
MenuInflateFromXml.java | 23 import android.view.Menu; 33 * Demonstrates inflating menus from XML. There are different menu XML resources 35 * the spinner, and then hit the menu button. To choose another, back out of the 40 * Different example menu resources. 43 R.menu.title_only, R.menu.title_icon, R.menu.submenu, R.menu.groups, 44 R.menu.checkable, R.menu.shortcuts, R.menu.order, R.menu.category_order [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
ExpandedMenuView.java | 17 package com.android.internal.view.menu; 30 import com.android.internal.view.menu.MenuBuilder.ItemInvoker; 33 * The expanded menu view is a list-like menu with all of the available menu items. It is opened 34 * by the user clicking no the 'More' button on the icon menu view. 39 /** Default animations for this menu */ 44 * @param menu The model for the menu which this MenuView will display 56 public void initialize(MenuBuilder menu, int menuType) [all...] |
MenuDialogHelper.java | 17 package com.android.internal.view.menu; 39 public MenuDialogHelper(MenuBuilder menu) { 40 mMenu = menu; 44 * Shows menu as a dialog. 50 final MenuBuilder menu = mMenu; local 52 // Get an adapter for the menu item views 53 mAdapter = menu.getMenuAdapter(MenuBuilder.TYPE_DIALOG); 56 final AlertDialog.Builder builder = new AlertDialog.Builder(menu.getContext()) 60 final View headerView = menu.getHeaderView(); 62 // Menu's client has given a custom header view, use i [all...] |
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...] |
/development/samples/SkeletonApp/src/com/example/android/skeletonapp/ |
SkeletonActivity.java | 22 import android.view.Menu; 36 static final private int BACK_ID = Menu.FIRST; 37 static final private int CLEAR_ID = Menu.FIRST + 1; 72 * Called when your activity's options menu needs to be created. 75 public boolean onCreateOptionsMenu(Menu menu) { 76 super.onCreateOptionsMenu(menu); 81 menu.add(0, BACK_ID, 0, R.string.back).setShortcut('0', 'b'); 82 menu.add(0, CLEAR_ID, 0, R.string.clear).setShortcut('1', 'c'); 88 * Called right before your activity's option menu is displayed [all...] |
/external/webkit/WebCore/manual-tests/chromium/ |
onchange-reload-popup.html | 19 container.innerHTML = '<select id="menu"> \ 24 var menu = document.getElementById('menu'); 25 addEvent(menu, 'change', reloadSelect);
|
/frameworks/base/core/java/android/view/ |
MenuItem.java | 26 * Interface for direct access to a previously created menu item. 28 * An Item is returned by calling one of the {@link android.view.Menu#add} 31 * For a feature set of specific menu types, see {@link Menu}. 35 * Interface definition for a callback to be invoked when a menu item is 43 * Called when a menu item has been invoked. This is the first code 47 * @param item The menu item that was invoked. 56 * Return the identifier for this menu item. The identifier can not 57 * be changed after the menu is created. 59 * @return The menu item's identifier [all...] |
/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
MyRssReader.java | 21 import android.view.Menu; 57 // Add our initial menu options. We will tweak this menu when it's loaded swap out 60 public boolean onCreateOptionsMenu(Menu menu){ 63 super.onCreateOptionsMenu(menu); 65 menu.add(0, 0, "Start RSS Service", null); 66 menu.add(0, 1, "Stop RSS Service", null); 67 menu.add(0, 2, "Add New Feed", null); 68 menu.add(0, 3, "Delete Feed", null) [all...] |
/frameworks/base/docs/html/guide/topics/resources/ |
menu-resource.jd | 1 page.title=Menu Resource 15 <p>A menu resource defines an application menu (Options Menu, Context Menu, or Sub Menu) that 21 <dd><code>res/menu/<em>filename</em>.xml</code><br/> 25 <dd>Resource pointer to a {@link android.view.Menu} (or subclass) resource.</dd> 29 In Java: <code>R.menu.<em>filename</em></code><br/> 30 In XML: <code>@[<em>package</em>:]menu.<em>filename</em></code [all...] |
/packages/apps/Phone/src/com/android/phone/ |
FdnList.java | 22 import android.view.Menu; 47 public boolean onCreateOptionsMenu(Menu menu) { 48 super.onCreateOptionsMenu(menu); 52 // Added the icons to the context menu 53 menu.add(0, MENU_ADD, 0, r.getString(R.string.menu_add)) 55 menu.add(0, MENU_EDIT, 0, r.getString(R.string.menu_edit)) 57 menu.add(0, MENU_DELETE, 0, r.getString(R.string.menu_delete)) 63 public boolean onPrepareOptionsMenu(Menu menu) { [all...] |