/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/ |
TrackerActivity.java | 33 import android.view.Menu; 53 * - enable/disable "start service" and "stop service" menu items as 76 * Builds the menu 78 * @param menu - menu to add items to 81 public boolean onCreateOptionsMenu(Menu menu) { 83 menuInflater.inflate(R.menu.menu, menu); [all...] |
/packages/apps/Browser/src/com/android/browser/ |
ComboViewActivity.java | 28 import android.view.Menu; 129 public boolean onCreateOptionsMenu(Menu menu) { 130 getMenuInflater().inflate(R.menu.combined, menu); 131 return super.onCreateOptionsMenu(menu);
|
NavScreen.java | 23 import android.view.Menu; 83 Menu menu = popup.getMenu(); local 84 popup.getMenuInflater().inflate(R.menu.browser, menu); 85 mUiController.updateMenuState(mUiController.getCurrentTab(), menu); local
|
XLargeUi.java | 32 import android.view.Menu; 122 public boolean onPrepareOptionsMenu(Menu menu) { 123 MenuItem bm = menu.findItem(R.id.bookmarks_menu_id);
|
PhoneUi.java | 34 import android.view.Menu; 164 // menu handling callbacks 167 public boolean onPrepareOptionsMenu(Menu menu) { 168 updateMenuState(mActiveTab, menu); 173 public void updateMenuState(Tab tab, Menu menu) { 174 MenuItem bm = menu.findItem(R.id.bookmarks_menu_id); 178 MenuItem abm = menu.findItem(R.id.add_bookmark_menu_id); 182 MenuItem info = menu.findItem(R.id.page_info_menu_id) [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
GeneralPreferences.java | 28 import android.view.Menu; 195 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { 196 menu.clear(); 197 inflater.inflate(R.menu.general_prefs_fragment_menu, menu);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
ActivityState.java | 29 import android.view.Menu; 251 protected boolean onCreateActionBar(Menu menu) { 252 // TODO: we should return false if there is no menu to show
|
MovieActivity.java | 36 import android.view.Menu; 170 public boolean onCreateOptionsMenu(Menu menu) { 171 super.onCreateOptionsMenu(menu); 172 getMenuInflater().inflate(R.menu.movie, menu); 176 MenuItem shareItem = menu.findItem(R.id.action_share);
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
PaymentSettings.java | 32 import android.view.Menu; 154 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { 155 super.onCreateOptionsMenu(menu, inflater); 159 MenuItem menuItem = menu.add(R.string.nfc_payment_menu_item_add_service);
|
/packages/experimental/PrintApp/src/foo/bar/print/ |
PrintActivity.java | 39 import android.view.Menu; 59 public boolean onCreateOptionsMenu(Menu menu) { 60 super.onCreateOptionsMenu(menu); 61 getMenuInflater().inflate(R.menu.activity_main, menu);
|
/packages/services/Telephony/src/com/android/phone/ |
RespondViaSmsManager.java | 47 import android.view.Menu; 189 public boolean onCreateOptionsMenu(Menu menu) { 190 getMenuInflater().inflate(R.menu.respond_via_message_settings_menu, menu); 191 return super.onCreateOptionsMenu(menu);
|
/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...] |
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...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
TouchPaint.java | 30 import android.view.Menu; 67 /** Menu ID for the command to clear the window. */ 68 private static final int CLEAR_ID = Menu.FIRST; 70 /** Menu ID for the command to toggle fading. */ 71 private static final int FADE_ID = Menu.FIRST+1; 113 public boolean onCreateOptionsMenu(Menu menu) { 114 menu.add(0, CLEAR_ID, 0, "Clear"); 115 menu.add(0, FADE_ID, 0, "Fade").setCheckable(true); 116 return super.onCreateOptionsMenu(menu); [all...] |
/external/chromium/chrome/browser/ui/views/ |
task_manager_view.cc | 30 #include "views/controls/menu/menu.h" 262 public views::Menu::Delegate { 303 // Menu::Delegate 320 // Adds an always on top item to the window's system menu. 346 // We need to own the text of the menu, the Windows API does not copy it. 608 // Change the menu check state. 694 scoped_ptr<views::Menu> menu(views::Menu::Create [all...] |
/frameworks/support/v4/java/android/support/v4/app/ |
FragmentActivity.java | 33 import android.view.Menu; 222 public boolean onCreatePanelMenu(int featureId, Menu menu) { 224 boolean show = super.onCreatePanelMenu(featureId, menu); 225 show |= mFragments.dispatchCreateOptionsMenu(menu, getMenuInflater()); 230 // menu, so we must always say we have one in case the app later 234 return super.onCreatePanelMenu(featureId, menu); 368 * Dispatch context and options menu to fragments. 392 public void onPanelClosed(int featureId, Menu menu) { [all...] |
Fragment.java | 35 import android.view.Menu; 269 // If set this fragment has menu items to contribute. 272 // Set to true to allow the fragment's menu to be shown. 794 * the options menu by receiving a call to {@link #onCreateOptionsMenu} 797 * @param hasMenu If true, the fragment has menu items to contribute. 809 * Set a hint for whether this fragment's menu should be visible. This 811 * hierarchy so that the user can not currently seen it, so any menu items 814 * @param menuVisible The default is true, meaning the fragment's menu will 815 * be shown as usual. If false, the user will not see the menu. [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
ActionBarActivityDelegateBase.java | 26 import android.support.v7.internal.view.menu.ListMenuPresenter; 27 import android.support.v7.internal.view.menu.MenuBuilder; 28 import android.support.v7.internal.view.menu.MenuPresenter; 29 import android.support.v7.internal.view.menu.MenuView; 30 import android.support.v7.internal.view.menu.MenuWrapperFactory; 36 import android.view.Menu; 69 final MenuBuilder menu = createMenu(); 70 if (mActivity.superOnCreatePanelMenu(Window.FEATURE_OPTIONS_PANEL, menu) && 71 mActivity.superOnPreparePanel(Window.FEATURE_OPTIONS_PANEL, null, menu)) { 72 setMenu(menu); 279 MenuBuilder menu = mMenu; local 394 MenuBuilder menu = new MenuBuilder(getActionBarThemedContext()); local [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
DeskClock.java | 36 import android.view.Menu; 79 private Menu mMenu; 240 public boolean onCreateOptionsMenu(Menu menu) { 241 // We only want to show it as a menu in landscape, and only for clock/alarm fragment. 242 mMenu = menu; 246 // Clear the menu so that it doesn't get duplicate items in case onCreateOptionsMenu 248 menu.clear(); 249 getMenuInflater().inflate(R.menu.desk_clock_menu, menu); [all...] |
/packages/apps/Settings/src/com/android/settings/vpn2/ |
VpnSettings.java | 41 import android.view.Menu; 105 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { 106 super.onCreateOptionsMenu(menu, inflater); 107 inflater.inflate(R.menu.vpn, menu); 111 public void onPrepareOptionsMenu(Menu menu) { 112 super.onPrepareOptionsMenu(menu); 116 menu.findItem(R.id.vpn_lockdown).setVisible(false) [all...] |
/frameworks/base/core/java/android/app/ |
Fragment.java | 38 import android.view.Menu; 452 // If set this fragment has menu items to contribute. 455 // Set to true to allow the fragment's menu to be shown. [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
ViewImage.java | 34 import android.view.Menu; 377 public boolean onCreateOptionsMenu(Menu menu) { 378 super.onCreateOptionsMenu(menu); 380 MenuItem item = menu.add(Menu.NONE, Menu.NONE, 395 menu, 418 item = menu.add(Menu.NONE, Menu.NONE [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/analyzer/ |
CameraAnalyzerActivity.java | 35 import android.view.Menu; 150 public boolean onCreateOptionsMenu(Menu menu) { 152 inflater.inflate(R.menu.ca_menu, menu); 157 MenuItem cameraMenuItem = menu.add(0, camIdx, Menu.NONE,
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
ContactLoaderFragment.java | 35 import android.view.Menu; 76 * contact details have finished loading or if the user selects any menu options. 81 * is removed via Menu/Delete 218 // Make sure the options menu is setup correctly with the loaded data. 227 public void onCreateOptionsMenu(Menu menu, final MenuInflater inflater) { 228 inflater.inflate(R.menu.view_contact, menu); 239 public void onPrepareOptionsMenu(Menu menu) { [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
GroupDetailFragment.java | 38 import android.view.Menu; 298 // Must call invalidate so that the option menu will get updated 421 public void onCreateOptionsMenu(Menu menu, final MenuInflater inflater) { 422 inflater.inflate(R.menu.view_group, menu); 439 public void onPrepareOptionsMenu(Menu menu) { 443 final MenuItem editMenu = menu.findItem(R.id.menu_edit_group); 446 final MenuItem deleteMenu = menu.findItem(R.id.menu_delete_group) [all...] |