HomeSort by relevance Sort by last modified time
    Searched refs:menu (Results 126 - 150 of 1223) sorted by null

1 2 3 4 56 7 8 91011>>

  /packages/apps/DeskClock/src/com/android/deskclock/actionbarmenu/
AbstractMenuItemController.java 18 import android.view.Menu;
38 public void setInitialState(Menu menu) {
SearchMenuItemController.java 23 import android.view.Menu;
31 * {@link MenuItemController} for search menu.
63 public void setInitialState(Menu menu) {
64 super.setInitialState(menu);
65 final MenuItem search = menu.findItem(SEARCH_MENU_RES_ID);
79 public void showMenuItem(Menu menu) {
80 menu.findItem(SEARCH_MENU_RES_ID).setVisible(true);
  /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
MockSearchSettings.java 19 import android.view.Menu;
26 public void addMenuItems(Menu menu, boolean showDisabled) {
  /packages/services/Car/car-lib/src/android/car/app/menu/
SubscriptionCallbacks.java 16 package android.car.app.menu;
23 * The callbacks to receive menu items updates.
29 * @param items The list of menu items. To retrieve the content of the item, use the keys
40 * Called when the car menu items with the specified parent id are changed.
42 * @param item The new menu item. To retrieve the content of the item, use the keys
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/menu/
MenuContentAssist.java 17 package com.android.ide.eclipse.adt.internal.editors.menu;
23 * Content Assist Processor for /res/menu XML files
  /external/autotest/frontend/client/src/autotest/afe/
HostListView.java 137 ContextMenu menu = new ContextMenu(); local
138 menu.addItem("Reverify hosts", new Command() {
143 menu.addItem("Lock hosts for testing", new Command() {
148 menu.addItem("Lock hosts for recovery", new Command() {
153 menu.addItem("Lock hosts for resource exclusion", new Command() {
158 menu.addItem("Lock hosts for defects", new Command() {
163 menu.addItem("Unlock hosts", new Command() {
168 menu.addItem("Reinstall hosts", new Command() {
175 menu.setEnabled(false);
176 return menu;
    [all...]
  /frameworks/base/core/java/android/widget/
MenuPopupWindow.java 30 import com.android.internal.view.menu.ListMenuItemView;
31 import com.android.internal.view.menu.MenuAdapter;
32 import com.android.internal.view.menu.MenuBuilder;
35 * A MenuPopupWindow represents the popup window for menu.
77 public void onItemHoverEnter(@NonNull MenuBuilder menu, @NonNull MenuItem item) {
80 mHoverListener.onItemHoverEnter(menu, item);
85 public void onItemHoverExit(@NonNull MenuBuilder menu, @NonNull MenuItem item) {
88 mHoverListener.onItemHoverExit(menu, item);
140 // Close only the top-level menu.
164 // Find the menu item for the view at the event coordinates
178 final MenuBuilder menu = menuAdapter.getAdapterMenu(); local
    [all...]
  /frameworks/support/v7/appcompat/src/android/support/v7/view/
WindowCallbackWrapper.java 22 import android.view.Menu;
87 public boolean onCreatePanelMenu(int featureId, Menu menu) {
88 return mWrapped.onCreatePanelMenu(featureId, menu);
92 public boolean onPreparePanel(int featureId, View view, Menu menu) {
93 return mWrapped.onPreparePanel(featureId, view, menu);
97 public boolean onMenuOpened(int featureId, Menu menu) {
98 return mWrapped.onMenuOpened(featureId, menu);
    [all...]
SupportActionModeWrapper.java 25 import android.support.v7.view.menu.MenuWrapperFactory;
27 import android.view.Menu;
82 public Menu getMenu() {
144 final SimpleArrayMap<Menu, Menu> mMenus;
154 public boolean onCreateActionMode(android.support.v7.view.ActionMode mode, Menu menu) {
156 getMenuWrapper(menu));
160 public boolean onPrepareActionMode(android.support.v7.view.ActionMode mode, Menu menu) {
    [all...]
  /frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
BaseTestActivity.java 28 import android.view.Menu;
34 private Menu mMenu;
83 public boolean onMenuOpened(int featureId, Menu menu) {
85 return super.onMenuOpened(featureId, menu);
89 public void onPanelClosed(int featureId, Menu menu) {
91 super.onPanelClosed(featureId, menu);
133 public boolean onCreateOptionsMenu(Menu menu) {
    [all...]
  /packages/services/Telephony/src/com/android/phone/settings/fdn/
FdnList.java 24 import android.view.Menu;
73 public boolean onCreateOptionsMenu(Menu menu) {
74 super.onCreateOptionsMenu(menu);
78 // Added the icons to the context menu
79 menu.add(0, MENU_ADD, 0, r.getString(R.string.menu_add))
81 menu.add(0, MENU_EDIT, 0, r.getString(R.string.menu_edit))
83 menu.add(0, MENU_DELETE, 0, r.getString(R.string.menu_delete))
89 public boolean onPrepareOptionsMenu(Menu menu) {
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/app/
ActionBarShareActionProviderActivity.java 24 import android.view.Menu;
38 * a menu item with ShareActionProvider as its action provider. The
52 public boolean onCreateOptionsMenu(Menu menu) {
53 // Inflate your menu.
54 getMenuInflater().inflate(R.menu.action_bar_share_action_provider, menu);
57 MenuItem actionItem = menu.findItem(R.id.menu_item_share_action_provider_action_bar);
65 MenuItem overflowItem = menu.findItem(R.id.menu_item_share_action_provider_overflow);
SearchInvoke.java 26 import android.view.Menu;
45 // Menu mode spinner choices
77 // Create listener for the menu mode dropdown. We use this to demonstrate control
106 * Called when your activity's options menu needs to be updated.
109 public boolean onPrepareOptionsMenu(Menu menu) {
110 super.onPrepareOptionsMenu(menu);
114 menu.removeItem(0);
115 menu.removeItem(1);
117 // next, add back item(s) based on current menu mod
    [all...]
  /development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/
Notepadv2.java 24 import android.view.Menu;
35 private static final int INSERT_ID = Menu.FIRST;
36 private static final int DELETE_ID = Menu.FIRST + 1;
69 public boolean onCreateOptionsMenu(Menu menu) {
70 super.onCreateOptionsMenu(menu);
71 menu.add(0, INSERT_ID,0, R.string.menu_insert);
87 public void onCreateContextMenu(ContextMenu menu, View v,
89 super.onCreateContextMenu(menu, v, menuInfo);
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
OverflowMenuAdapter.java 19 import com.android.internal.view.menu.MenuBuilder;
20 import com.android.internal.view.menu.MenuItemImpl;
21 import com.android.internal.view.menu.MenuView;
32 * Provides an adapter for Overflow menu popup. This is very similar to
41 public OverflowMenuAdapter(MenuBuilder menu, Context context) {
42 mMenu = menu;
67 // Since a menu item's ID is optional, we'll use the position as an
  /packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
ArchivedConversationListActivity.java 21 import android.view.Menu;
60 public boolean onCreateOptionsMenu(Menu menu) {
61 if (super.onCreateOptionsMenu(menu)) {
64 getMenuInflater().inflate(R.menu.archived_conversation_list_menu, menu);
65 final MenuItem item = menu.findItem(R.id.action_debug_options);
  /development/samples/NotePad/src/com/example/android/notepad/
NotesList.java 33 import android.view.Menu;
75 // The user does not need to hold down the key to use menu shortcuts.
92 * Sets the callback for context menu activation for the ListView. The listener is set
94 * ListView, and the context menu is handled by a method in NotesList.
141 * Called when the user clicks the device's Menu button the first time for
142 * this Activity. Android passes in a Menu object that is populated with items.
144 * Sets up a menu that provides the Insert option plus a list of alternative actions for
149 * the menu will offer the user other applications that can handle notes.
150 * @param menu A Menu object, to which menu items should be added
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
ListViewTypeMenu.java 38 import org.eclipse.swt.widgets.Menu;
42 * "Preview List Content" context menu which lists available data types and layouts
48 /** When true, this menu is for a grid rather than a simple list */
50 /** When true, this menu is for a spinner rather than a simple list */
54 * Creates a "Preview List Content" menu
57 * @param isGrid whether the menu is for a grid rather than a list
58 * @param isSpinner whether the menu is for a spinner rather than a list
69 protected void addMenuItems(Menu menu) {
73 new ActionContributionItem(action).fill(menu, -1)
    [all...]
  /frameworks/base/core/java/com/android/internal/view/menu/
CascadingMenuPopup.java 1 package com.android.internal.view.menu;
44 * A popup for a menu which will allow multiple submenus to appear in a cascading fashion, side by
59 * Delay between hovering over a menu item with a mouse and receiving
60 * side-effects (ex. opening a sub-menu or closing unrelated menus).
75 * List of open menus. The first item is the root menu and each
121 public void onItemHoverExit(@NonNull MenuBuilder menu, @NonNull MenuItem item) {
124 // pending runnables, only cancel runnables for the host menu.
125 mSubMenuHoverHandler.removeCallbacksAndMessages(menu);
130 @NonNull final MenuBuilder menu, @NonNull final MenuItem item) {
134 // Find the position of the hovered menu within the added menus
734 public final MenuBuilder menu; field in class:CascadingMenuPopup.CascadingMenuInfo
    [all...]
BaseMenuPresenter.java 17 package com.android.internal.view.menu;
52 * @param menuLayoutRes Layout resource ID for the menu container view
63 public void initForMenu(@NonNull Context context, @Nullable MenuBuilder menu) {
66 mMenu = menu;
171 * @return View that presents the requested menu item
197 * @return true if this item should be included in this menu presentation; false otherwise
203 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) {
205 mCallback.onCloseMenu(menu, allMenusAreClosing);
209 public boolean onSubMenuSelected(SubMenuBuilder menu) {
211 return mCallback.onOpenSubMenu(menu);
    [all...]
  /frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
CascadingMenuPopup.java 17 package android.support.v7.view.menu;
60 * A popup for a menu which will allow multiple submenus to appear in a cascading fashion, side by
74 * Delay between hovering over a menu item with a mouse and receiving
75 * side-effects (ex. opening a sub-menu or closing unrelated menus).
90 * List of open menus. The first item is the root menu and each
118 public void onItemHoverExit(@NonNull MenuBuilder menu, @NonNull MenuItem item) {
121 // pending runnables, only cancel runnables for the host menu.
122 mSubMenuHoverHandler.removeCallbacksAndMessages(menu);
127 @NonNull final MenuBuilder menu, @NonNull final MenuItem item) {
131 // Find the position of the hovered menu within the added menus
730 public final MenuBuilder menu; field in class:CascadingMenuPopup.CascadingMenuInfo
    [all...]
BaseMenuPresenter.java 17 package android.support.v7.view.menu;
54 * @param menuLayoutRes Layout resource ID for the menu container view
65 public void initForMenu(Context context, MenuBuilder menu) {
68 mMenu = menu;
173 * @return View that presents the requested menu item
199 * @return true if this item should be included in this menu presentation; false otherwise
205 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) {
207 mCallback.onCloseMenu(menu, allMenusAreClosing);
211 public boolean onSubMenuSelected(SubMenuBuilder menu) {
213 return mCallback.onOpenSubMenu(menu);
    [all...]
  /external/toybox/kconfig/
confdata.c 382 struct menu *next_menu(struct menu *menu)
384 if (menu->list) return menu->list;
386 if (menu->next) {
387 menu = menu->next;
390 } while ((menu = menu->parent))
401 struct menu *menu; local
    [all...]
  /frameworks/support/v7/appcompat/src/android/support/v7/app/
ToolbarActionBar.java 27 import android.support.v7.view.menu.ListMenuPresenter;
28 import android.support.v7.view.menu.MenuBuilder;
29 import android.support.v7.view.menu.MenuPresenter;
38 import android.view.Menu;
447 final Menu menu = getMenu(); local
448 final MenuBuilder mb = menu instanceof MenuBuilder ? (MenuBuilder) menu : null;
453 menu.clear();
454 if (!mWindowCallback.onCreatePanelMenu(Window.FEATURE_OPTIONS_PANEL, menu) ||
475 Menu menu = getMenu(); local
579 final Menu menu = mDecorToolbar.getMenu(); local
    [all...]
  /developers/build/prebuilts/gradle/ActiveNotifications/Application/src/main/java/com/example/android/activenotifications/
MainActivity.java 22 import android.view.Menu;
60 public boolean onCreateOptionsMenu(Menu menu) {
61 getMenuInflater().inflate(R.menu.main, menu);
66 public boolean onPrepareOptionsMenu(Menu menu) {
67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log);
71 return super.onPrepareOptionsMenu(menu);

Completed in 4176 milliseconds

1 2 3 4 56 7 8 91011>>