/packages/apps/Email/src/com/android/email/activity/ |
UIControllerOnePane.java | 24 import android.view.Menu; 557 public boolean onPrepareOptionsMenu(MenuInflater inflater, Menu menu) { 559 super.onPrepareOptionsMenu(inflater, menu); 564 menu.findItem(R.id.search).setVisible(false); 565 menu.findItem(R.id.compose).setVisible(false); 566 menu.findItem(R.id.refresh).setVisible(false); 567 menu.findItem(R.id.show_all_mailboxes).setVisible(false); 568 menu.findItem(R.id.mailbox_settings).setVisible(false); 574 menu.findItem(R.id.newer).setVisible(true) [all...] |
MessageViewFragment.java | 24 import android.view.Menu; 242 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { 243 inflater.inflate(R.menu.message_view_fragment_option, menu); 247 public void onPrepareOptionsMenu(Menu menu) { 248 menu.findItem(R.id.move).setVisible(mSupportsMove); 428 Menu menu = popup.getMenu() local [all...] |
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
MainActivity.java | 42 import android.view.Menu; 92 public boolean onCreateOptionsMenu(Menu menu) { 94 inflater.inflate(R.menu.main_menu, menu); 95 // If the device doesn't support camera, remove the camera menu item 97 menu.removeItem(R.id.menu_camera); 103 public boolean onPrepareOptionsMenu(Menu menu) { 104 // If not showing both fragments, remove the "toggle titles" menu ite [all...] |
/external/chromium/chrome/browser/ui/cocoa/ |
history_menu_bridge.h | 36 // C++ bridge for the history menu; one per AppController (means there 41 // The history menu is broken up into sections: most visisted and recently 42 // closed. The overall menu has a tag of IDC_HISTORY_MENU, with the user content 44 // all share the same tag. The structure of the menu is laid out in MainMenu.xib 46 // closed section is special in that those menu items can have submenus to list 48 // have a tag that's equal to the parent + 1. Tags within the history menu have 52 // These menu items do not use firstResponder as their target. Rather, they are 61 // This is a generalization of the data we store in the history menu because 70 // The title for the menu item. 109 // These tags are not global view tags and are local to the history menu. Th [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
PhoneWindow.java | 31 import com.android.internal.view.menu.ContextMenuBuilder; 32 import com.android.internal.view.menu.IconMenuPresenter; 33 import com.android.internal.view.menu.ListMenuPresenter; 34 import com.android.internal.view.menu.MenuBuilder; 35 import com.android.internal.view.menu.MenuDialogHelper; 36 import com.android.internal.view.menu.MenuPresenter; 37 import com.android.internal.view.menu.MenuView; 75 import android.view.Menu; 111 * Simple callback used by the context menu and its submenus. The options 112 * menu submenus do not use this (their behavior is more complex) 1021 final MenuBuilder menu = new MenuBuilder(context); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/calllog/ |
CallLogFragment.java | 46 import android.view.Menu; 106 // This will update the state of the "Clear call log" menu item. 151 // This is so that the options menu content is updated. 266 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { 267 super.onCreateOptionsMenu(menu, inflater); 269 inflater.inflate(R.menu.call_log_options, menu); 274 public void onPrepareOptionsMenu(Menu menu) { [all...] |
/packages/apps/Stk/src/com/android/stk/ |
StkInputActivity.java | 200 public boolean onCreateOptionsMenu(android.view.Menu menu) { 201 super.onCreateOptionsMenu(menu); 202 menu.add(android.view.Menu.NONE, StkApp.MENU_ID_END_SESSION, 1, 204 menu.add(0, StkApp.MENU_ID_HELP, 2, R.string.help); 210 public boolean onPrepareOptionsMenu(android.view.Menu menu) { 211 super.onPrepareOptionsMenu(menu); 212 menu.findItem(StkApp.MENU_ID_END_SESSION).setVisible(true) [all...] |
/packages/apps/Browser/src/com/android/browser/ |
PieControlXLarge.java | 22 import android.view.Menu; 43 * controller for Quick Controls pie menu 130 Menu menu = mUi.getMenu(); local 131 menu.setGroupVisible(R.id.NAV_MENU, false); 132 mMenuAdapter.setMenu(menu); 174 public void setMenu(Menu menu) { 176 for (int i = 0; i < menu.size(); i++) { 177 MenuItem item = menu.getItem(i) [all...] |
PhoneUi.java | 35 import android.view.Menu; 187 // menu handling callbacks 190 public boolean onPrepareOptionsMenu(Menu menu) { 191 updateMenuState(mActiveTab, menu); 196 public void updateMenuState(Tab tab, Menu menu) { 197 MenuItem bm = menu.findItem(R.id.bookmarks_menu_id); 201 MenuItem abm = menu.findItem(R.id.add_bookmark_menu_id); 205 MenuItem info = menu.findItem(R.id.page_info_menu_id) [all...] |
/packages/apps/Settings/src/com/android/settings/quicklaunch/ |
BookmarkPicker.java | 29 import android.view.Menu; 102 public boolean onCreateOptionsMenu(Menu menu) { 103 menu.add(0, DISPLAY_MODE_LAUNCH, 0, R.string.quick_launch_display_mode_applications) 105 menu.add(0, DISPLAY_MODE_SHORTCUT, 0, R.string.quick_launch_display_mode_shortcuts) 111 public boolean onPrepareOptionsMenu(Menu menu) { 112 menu.findItem(DISPLAY_MODE_LAUNCH).setVisible(mDisplayMode != DISPLAY_MODE_LAUNCH); 113 menu.findItem(DISPLAY_MODE_SHORTCUT).setVisible(mDisplayMode != DISPLAY_MODE_SHORTCUT);
|
/packages/experimental/BugReportSender/src/com/android/bugreportsender/ |
BugReportListActivity.java | 83 public void onCreateContextMenu(ContextMenu menu, View v, 85 super.onCreateContextMenu(menu, v, menuInfo); 86 menu.add(0, SYSTEM_LOG_ID, 0, "System Log"); 87 menu.add(0, CPU_ID, 0, "CPU Info"); 88 menu.add(0, MEMORY_ID, 0, "Memory Info"); 89 menu.add(0, PROCRANK_ID, 0, "Procrank");
|
/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/gle2/ |
PlayAnimationMenu.java | 40 import org.eclipse.swt.widgets.Menu; 51 * "Play Animation" context menu which lists available animations in the project and in 60 /** Whether this menu is showing local animations or framework animations */ 64 * Creates a "Play Animation" menu 73 * Creates an animation menu; this can be used either for the outer Play animation 74 * menu, or the inner frameworks-animations list 77 * @param title menu item name 79 * nested framework-animation-menu) animations 88 protected void addMenuItems(Menu menu) { [all...] |
/frameworks/support/v4/java/android/support/v4/app/ |
FragmentActivity.java | 31 import android.view.Menu; 207 public boolean onCreatePanelMenu(int featureId, Menu menu) { 209 boolean show = super.onCreatePanelMenu(featureId, menu); 210 show |= mFragments.dispatchCreateOptionsMenu(menu, getMenuInflater()); 215 // menu, so we must always say we have one in case the app later 219 return super.onCreatePanelMenu(featureId, menu); 347 * Dispatch context and options menu to fragments. 371 public void onPanelClosed(int featureId, Menu menu) { [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
MenuHelper.java | 40 import android.view.Menu; 59 * A utility class to handle various kinds of menu operations. 106 public void gettingReadyToOpen(Menu menu, IImage image); 166 public static void enableShareMenuItem(Menu menu, boolean enabled) { 167 MenuItem item = menu.findItem(MENU_IMAGE_SHARE); 181 public static void enableShowOnMapMenuItem(Menu menu, boolean enabled) { 182 MenuItem item = menu.findItem(MENU_IMAGE_SHOWMAP) [all...] |
/development/samples/RSSReader/src/com/example/android/rssreader/ |
RssReader.java | 28 import android.view.Menu; 336 * Populates the menu. 339 public boolean onCreateOptionsMenu(Menu menu) { 340 super.onCreateOptionsMenu(menu); 342 menu.add(0, 0, 0, "Slashdot") 345 menu.add(0, 0, 0, "Google News") 348 menu.add(0, 0, 0, "News.com") 351 menu.add(0, 0, 0, "Bad Url") 354 menu.add(0, 0, 0, "Reset" [all...] |
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/ |
peers.cpp | 181 QMenu *menu = new QMenu; local 182 if (menu == NULL) 189 menu->addAction(Peers::ItemType(type))->setEnabled(false); 190 menu->addSeparator(); 208 menu->addAction(tr("Enter WPS PIN"), this, 213 menu->addAction(tr("P2P Connect"), this, 219 menu->addAction(tr("P2P Connect (PBC)"), this, 222 menu->addAction(tr("P2P Request PIN"), this, 224 menu->addAction(tr("P2P Show PIN"), this, 230 menu->addAction(tr("P2P Display PIN"), this [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
ActionModeHandler.java | 26 import android.view.Menu; 64 private Menu mMenu; 88 R.menu.selection); 134 // menu status is consistent with selection manager. 147 public boolean onCreateActionMode(ActionMode mode, Menu menu) { 149 inflater.inflate(R.menu.operation, menu); 151 mShareActionProvider = GalleryActionBar.initializeShareActionProvider(menu); 160 mMenu = menu; [all...] |
/frameworks/base/core/java/android/app/ |
Dialog.java | 40 import android.view.Menu; 597 * {@link MenuItem#setShortcut(char, char) shortcut} property of menu items. 798 * @see Activity#onCreatePanelMenu(int, Menu) 800 public boolean onCreatePanelMenu(int featureId, Menu menu) { 802 return onCreateOptionsMenu(menu); 809 * @see Activity#onPreparePanel(int, View, Menu) 811 public boolean onPreparePanel(int featureId, View view, Menu menu) { 812 if (featureId == Window.FEATURE_OPTIONS_PANEL && menu != null) [all...] |
/packages/apps/Contacts/src/com/android/contacts/detail/ |
ContactLoaderFragment.java | 43 import android.view.Menu; 70 * contact details have finished loading or if the user selects any menu options. 75 * is removed via Menu/Delete 210 // Make sure the options menu is setup correctly with the loaded data. 219 public void onCreateOptionsMenu(Menu menu, final MenuInflater inflater) { 220 inflater.inflate(R.menu.view_contact, menu); 230 public void onPrepareOptionsMenu(Menu menu) { [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/ |
CallDetailActivityTest.java | 27 import com.android.internal.view.menu.ContextMenuBuilder; 42 import android.view.Menu; 175 Menu menu = new ContextMenuBuilder(mActivityUnderTest); local 176 mActivityUnderTest.onCreateOptionsMenu(menu); 177 mActivityUnderTest.onPrepareOptionsMenu(menu); 178 assertFalse(menu.findItem(R.id.menu_remove_from_call_log).isVisible()); 185 Menu menu = new ContextMenuBuilder(mActivityUnderTest); local 186 mActivityUnderTest.onCreateOptionsMenu(menu); [all...] |
/packages/apps/Phone/src/com/android/phone/ |
SimContacts.java | 45 import android.view.Menu; 258 public boolean onCreateOptionsMenu(Menu menu) { 259 super.onCreateOptionsMenu(menu); 260 menu.add(0, MENU_IMPORT_ALL, 0, R.string.importAllSimEntries); 265 public boolean onPrepareOptionsMenu(Menu menu) { 266 MenuItem item = menu.findItem(MENU_IMPORT_ALL); 270 return super.onPrepareOptionsMenu(menu); 326 public void onCreateContextMenu(ContextMenu menu, View v [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
IconMenuPresenter.java | 16 package com.android.internal.view.menu; 18 import com.android.internal.view.menu.MenuView.ItemView; 32 * MenuPresenter for the classic "six-pack" icon menu. 42 private static final String VIEWS_TAG = "android:menu:icon"; 43 private static final String OPEN_SUBMENU_KEY = "android:menu:icon:submenu"; 52 public void initForMenu(Context context, MenuBuilder menu) { 53 super.initForMenu(context, menu); 178 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) {
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
ActionBarDisplayOptions.java | 26 import android.view.Menu; 62 public boolean onCreateOptionsMenu(Menu menu) { 63 getMenuInflater().inflate(R.menu.display_options_actions, menu);
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
ExpandableList1.java | 56 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { 57 menu.setHeaderTitle("Sample menu"); 58 menu.add(0, 0, 0, R.string.expandable_list_sample_action);
|