/packages/apps/DeskClock/src/com/android/deskclock/actionbarmenu/ |
NightModeMenuItemController.java | 20 import android.view.Menu; 27 import static android.view.Menu.NONE; 48 public void onCreateOptionsItem(Menu menu) { 49 menu.add(NONE, NIGHT_MODE_MENU_RES_ID, NONE, R.string.menu_item_night_mode)
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
Help.java | 21 import android.view.Menu; 38 public void addHelpMenuItem(Menu menu, String activityName) { 39 addHelpMenuItem(menu, activityName, false); 42 public void addHelpMenuItem(Menu menu, String activityName, boolean showAsAction) { 46 inflater.inflate(R.menu.help, menu); 47 MenuItem item = menu.findItem(R.id.menu_help);
|
/packages/apps/Settings/src/com/android/settings/network/ |
NetworkResetActionMenuController.java | 20 import android.view.Menu; 30 private static final int MENU_NETWORK_RESET = Menu.FIRST + 200; 39 public void buildMenuItem(Menu menu) { 41 if (isAvailable() && menu != null) { 42 item = menu.add(0, MENU_NETWORK_RESET, 0, R.string.reset_network_title);
|
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ |
InterpreterManager.java | 31 import android.view.Menu; 67 return ordinal() + Menu.FIRST; 107 public boolean onPrepareOptionsMenu(Menu menu) { 108 menu.clear(); 109 buildInstallLanguagesMenu(menu); 110 menu.add(Menu.NONE, MenuId.NETWORK.getId(), Menu.NONE, "Start Server").setIcon( 112 menu.add(Menu.NONE, MenuId.PREFERENCES.getId(), Menu.NONE, "Preferences").setIcon [all...] |
LogcatViewer.java | 25 import android.view.Menu; 55 return ordinal() + Menu.FIRST; 109 public boolean onCreateOptionsMenu(Menu menu) { 110 menu.add(Menu.NONE, MenuId.PREFERENCES.getId(), Menu.NONE, "Preferences").setIcon( 112 menu.add(Menu.NONE, MenuId.JUMP_TO_BOTTOM.getId(), Menu.NONE, "Jump to Bottom").setIcon [all...] |
TriggerManager.java | 26 import android.view.Menu; 63 return ordinal() + Menu.FIRST; 70 return ordinal() + Menu.FIRST; 89 public boolean onCreateOptionsMenu(Menu menu) { 90 menu.add(Menu.NONE, MenuId.ADD.getId(), Menu.NONE, "Add").setIcon( 92 menu.add(Menu.NONE, MenuId.PREFERENCES.getId(), Menu.NONE, "Preferences").setIcon [all...] |
/frameworks/base/core/java/android/view/ |
WindowCallbackWrapper.java | 77 public boolean onCreatePanelMenu(int featureId, Menu menu) { 78 return mWrapped.onCreatePanelMenu(featureId, menu); 82 public boolean onPreparePanel(int featureId, View view, Menu menu) { 83 return mWrapped.onPreparePanel(featureId, view, menu); 87 public boolean onMenuOpened(int featureId, Menu menu) { 88 return mWrapped.onMenuOpened(featureId, menu); 122 public void onPanelClosed(int featureId, Menu menu) [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/ |
HomeXLarge.java | 30 import android.view.Menu; 81 public boolean onCreateActionMenu(Menu menu) { 83 menu.add(0, ACTION_ID_SEARCH, 0, R.string.menu_search) 85 menu.add(0, ACTION_ID_ADD, 1, R.string.menu_newContact) 92 public boolean onUpdateActionMenu(Menu menu) { 118 public boolean onCreateContextMode(int modeId, Menu menu) { 123 public boolean onPrepareContextMode(int modeId, Menu menu) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
SettingsFragment.java | 26 import android.view.Menu; 37 // We don't care about menu grouping. 38 private static final int NO_MENU_GROUP = Menu.NONE; 39 // The first menu item id and order. 40 private static final int MENU_ABOUT = Menu.FIRST; 41 // The second menu item id and order. 42 private static final int MENU_HELP_AND_FEEDBACK = Menu.FIRST + 1; 61 public void onCreateOptionsMenu(final Menu menu, final MenuInflater inflater) { 63 menu.add(NO_MENU_GROUP, MENU_HELP_AND_FEEDBACK /* itemId */ [all...] |
/development/samples/NotePad/src/com/example/android/notepad/ |
NotesList.java | 34 import android.view.Menu; 76 // The user does not need to hold down the key to use menu shortcuts. 93 * Sets the callback for context menu activation for the ListView. The listener is set 95 * ListView, and the context menu is handled by a method in NotesList. 132 * Called when the user clicks the device's Menu button the first time for 133 * this Activity. Android passes in a Menu object that is populated with items. 135 * Sets up a menu that provides the Insert option plus a list of alternative actions for 140 * the menu will offer the user other applications that can handle notes. 141 * @param menu A Menu object, to which menu items should be added [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/view/ |
WindowCallbackWrapper.java | 26 import android.view.Menu; 92 public boolean onCreatePanelMenu(int featureId, Menu menu) { 93 return mWrapped.onCreatePanelMenu(featureId, menu); 97 public boolean onPreparePanel(int featureId, View view, Menu menu) { 98 return mWrapped.onPreparePanel(featureId, view, menu); 102 public boolean onMenuOpened(int featureId, Menu menu) { 103 return mWrapped.onMenuOpened(featureId, menu); [all...] |
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/ |
BaseTestActivity.java | 27 import android.view.Menu; 33 private Menu mMenu; 82 public boolean onMenuOpened(int featureId, Menu menu) { 84 return super.onMenuOpened(featureId, menu); 88 public void onPanelClosed(int featureId, Menu menu) { 90 super.onPanelClosed(featureId, menu); 132 public boolean onCreateOptionsMenu(Menu menu) { [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
ActionModeCallback2Test.java | 27 import android.view.Menu; 80 public boolean onCreateActionMode(ActionMode mode, Menu menu) { 85 public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
ActionBarUsage.java | 21 import android.view.Menu; 33 * includes the action bar by default and a menu resource is used to populate the 34 * menu data itself. If you'd like to see how these things work under the hood, see 49 public boolean onCreateOptionsMenu(Menu menu) { 51 inflater.inflate(R.menu.actions, menu); 52 SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView(); 58 public boolean onPrepareOptionsMenu(Menu menu) { [all...] |
ActionBarNavigationTarget.java | 21 import android.view.Menu;
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
List15.java | 23 import android.view.Menu; 52 public boolean onCreateActionMode(ActionMode mode, Menu menu) { 54 inflater.inflate(R.menu.list_select_menu, menu); 60 public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
|
List16.java | 23 import android.view.Menu; 54 public boolean onCreateActionMode(ActionMode mode, Menu menu) { 56 inflater.inflate(R.menu.list_select_menu, menu); 61 public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
|
SearchViewAlwaysVisible.java | 26 import android.view.Menu; 37 * This demonstrates the usage of SearchView in an ActionBar as a menu item.
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/ |
ObservableFragment.java | 23 import android.view.Menu; 93 public void onCreateOptionsMenu(final Menu menu, final MenuInflater inflater) { 94 mLifecycle.onCreateOptionsMenu(menu, inflater); 95 super.onCreateOptionsMenu(menu, inflater); 100 public void onPrepareOptionsMenu(final Menu menu) { 101 mLifecycle.onPrepareOptionsMenu(menu); 102 super.onPrepareOptionsMenu(menu);
|
ObservablePreferenceFragment.java | 24 import android.view.Menu; 103 public void onCreateOptionsMenu(final Menu menu, final MenuInflater inflater) { 104 mLifecycle.onCreateOptionsMenu(menu, inflater); 105 super.onCreateOptionsMenu(menu, inflater); 110 public void onPrepareOptionsMenu(final Menu menu) { 111 mLifecycle.onPrepareOptionsMenu(menu); 112 super.onPrepareOptionsMenu(menu);
|
/frameworks/opt/photoviewer/activity/src/com/android/ex/photo/ |
PhotoViewActivity.java | 25 import android.view.Menu; 97 public boolean onCreateOptionsMenu(Menu menu) { 98 return mController.onCreateOptionsMenu(menu) || super.onCreateOptionsMenu(menu); 102 public boolean onPrepareOptionsMenu(Menu menu) { 103 return mController.onPrepareOptionsMenu(menu) || super.onPrepareOptionsMenu(menu);
|
/frameworks/opt/photoviewer/appcompat/src/com/android/ex/photo/ |
PhotoViewActivity.java | 25 import android.view.Menu; 97 public boolean onCreateOptionsMenu(Menu menu) { 98 return mController.onCreateOptionsMenu(menu) || super.onCreateOptionsMenu(menu); 102 public boolean onPrepareOptionsMenu(Menu menu) { 103 return mController.onPrepareOptionsMenu(menu) || super.onPrepareOptionsMenu(menu);
|
/packages/apps/TV/src/com/android/tv/menu/ |
MenuRowFactory.java | 17 package com.android.tv.menu; 32 * A factory class to create menu rows. 53 public MenuRow createMenuRow(Menu menu, Class<?> key) { 55 return new PlayControlsRow(mMainActivity, mTvView, menu, 58 return new ChannelsRow(mMainActivity, menu, mMainActivity.getProgramDataManager()); 64 return new PartnerRow(mMainActivity, menu, title, customActions); 68 return new TvOptionsRow(mMainActivity, menu, mTvCustomizationManager 75 * A menu row which represents the TV options row. 83 private TvOptionsRow(Context context, Menu menu, List<CustomAction> customActions) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
ActivityController.java | 26 import android.view.Menu; 129 * @see android.app.Activity#onCreateOptionsMenu(Menu) 130 * @param menu 133 boolean onCreateOptionsMenu(Menu menu); 144 * Called by Mail activity when menu items are selected 171 * Called by the Mail activity when menu items need to be prepared. 172 * @see android.app.Activity#onPrepareOptionsMenu(Menu) 173 * @param menu 176 void onPrepareOptionsMenu(Menu menu) [all...] |
/cts/tests/app/app/src/android/app/stubs/ |
AppStubActivity.java | 24 import android.view.Menu; 85 public void onOptionsMenuClosed(Menu menu) { 86 super.onOptionsMenuClosed(menu); 91 public boolean onPrepareOptionsMenu(Menu menu) { 93 return super.onPrepareOptionsMenu(menu); 97 public boolean onCreateOptionsMenu(Menu menu) { 99 if(menu != null [all...] |