HomeSort by relevance Sort by last modified time
    Searched refs:menu (Results 1 - 25 of 291) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/base/core/tests/coretests/src/android/view/menu/
MenuLayoutLandscape.java 17 package android.view.menu;
MenuLayoutPortrait.java 17 package 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);
  /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/webkit/WebCore/platform/qt/
ScrollbarQt.cpp 57 QMenu menu; local
58 QAction* actScrollHere = menu.addAction(QCoreApplication::translate("QWebPage", "Scroll here"));
59 menu.addSeparator();
61 QAction* actScrollTop = menu.addAction(horizontal ? QCoreApplication::translate("QWebPage", "Left edge") : QCoreApplication::translate("QWebPage", "Top"));
62 QAction* actScrollBottom = menu.addAction(horizontal ? QCoreApplication::translate("QWebPage", "Right edge") : QCoreApplication::translate("QWebPage", "Bottom"));
63 menu.addSeparator();
65 QAction* actPageUp = menu.addAction(horizontal ? QCoreApplication::translate("QWebPage", "Page left") : QCoreApplication::translate("QWebPage", "Page up"));
66 QAction* actPageDown = menu.addAction(horizontal ? QCoreApplication::translate("QWebPage", "Page right") : QCoreApplication::translate("QWebPage", "Page down"));
67 menu.addSeparator();
69 QAction* actScrollUp = menu.addAction(horizontal ? QCoreApplication::translate("QWebPage", "Scroll left") : QCoreApplication:: (…)
    [all...]
  /frameworks/base/core/java/com/android/internal/view/menu/
MenuView.java 17 package com.android.internal.view.menu;
19 import com.android.internal.view.menu.MenuBuilder;
20 import com.android.internal.view.menu.MenuItemImpl;
25 * Minimal interface for a menu view. {@link #initialize(MenuBuilder, int)} must be called for the
26 * menu to be functional.
32 * Initializes the menu to the given menu. This should be called after the
35 * @param menu The menu that this MenuView should display.
36 * @param menuType The type of this menu, one of
    [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...]
  /external/webkit/JavaScriptCore/tests/mozilla/
Makefile 3 cat menuhead.html menubody.html menufoot.html > menu.html
  /external/webkit/WebKitExamplePlugins/NetscapeCocoaPlugin/
MenuHandler.h 38 NSMenu *menu; variable
45 - (NSMenu *)menu;
MenuHandler.m 70 // Create the menu
71 menu = [[NSMenu alloc] initWithTitle:@"Menu"];
75 [menu addItem:item];
80 [menu addItem:item];
88 [menu release];
94 - (NSMenu *)menu
96 return menu;
  /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...]
  /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...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/menu/
MenuSourceViewerConfig.java 17 package com.android.ide.eclipse.adt.internal.editors.menu;
  /external/webkit/WebKitTools/QtLauncher/
webview.cpp 97 QMenu* menu = page->createStandardContextMenu(); local
103 QAction* newTabAction = menu->addAction("Open in Default &Browser", webPage, SLOT(openUrlInDefaultBrowser()));
105 menu->insertAction(menu->actions().at(2), newTabAction);
107 return menu;
128 QMenu* menu = createContextMenu(page(), event->pos().toPoint()); local
129 menu->exec(mapToScene(event->pos()).toPoint());
130 delete menu;
135 QMenu* menu = createContextMenu(page(), event->pos()); local
136 menu->exec(mapToGlobal(event->pos()))
    [all...]
  /development/tutorials/NotepadCodeLab/Notepadv1/src/com/android/demo/notepad1/
Notepadv1.java 21 import android.view.Menu;
34 public boolean onCreateOptionsMenu(Menu menu) {
36 return super.onCreateOptionsMenu(menu);
  /external/webkit/WebKit/haiku/WebCoreSupport/
ContextMenuClientHaiku.cpp 43 PlatformMenuDescription ContextMenuClientHaiku::getCustomMenuFromDefaultItems(ContextMenu* menu)
45 return menu->platformDescription();
  /external/webkit/WebKit/qt/WebCoreSupport/
ContextMenuClientQt.cpp 44 PlatformMenuDescription ContextMenuClientQt::getCustomMenuFromDefaultItems(ContextMenu* menu)
47 return menu->releasePlatformDescription();
  /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...]
  /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/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...]
  /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...]
  /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...]
  /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...]

Completed in 525 milliseconds

1 2 3 4 5 6 7 8 91011>>