/packages/apps/Gallery2/src/com/android/photos/ |
GalleryActivity.java | 28 import android.view.Menu; 73 public boolean onCreateOptionsMenu(Menu menu) { 74 getMenuInflater().inflate(R.menu.gallery, menu);
|
MultiChoiceManager.java | 27 import android.view.Menu; 133 private void updateActionItemVisibilities(Menu menu, int supportedOperations) { 134 MenuItem editItem = menu.findItem(R.id.menu_edit); 135 MenuItem deleteItem = menu.findItem(R.id.menu_delete); 136 MenuItem shareItem = menu.findItem(R.id.menu_share); 137 MenuItem cropItem = menu.findItem(R.id.menu_crop); 138 MenuItem trimItem = menu.findItem(R.id.menu_trim); 139 MenuItem muteItem = menu.findItem(R.id.menu_mute); 140 MenuItem setAsItem = menu.findItem(R.id.menu_set_as) [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ |
MenuHelper.java | 30 import android.view.Menu; 36 * A utility class to handle various kinds of menu operations. 50 public static void addSwitchModeMenuItem(Menu menu, int mode, 70 MenuItem item = menu.add(labelId).setOnMenuItemClickListener(
|
/packages/apps/Mms/src/com/android/mms/ui/ |
RecipientListActivity.java | 31 import android.view.Menu; 108 public boolean onCreateOptionsMenu(Menu menu) { 109 getMenuInflater().inflate(R.menu.recipient_list_menu, menu);
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
ToggleFeaturePreferenceFragment.java | 29 import android.view.Menu; 106 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { 107 super.onCreateOptionsMenu(menu, inflater); 108 MenuItem menuItem = menu.add(mSettingsTitle);
|
/cts/tests/tests/app/src/android/app/cts/ |
LaunchTest.java | 34 import android.view.Menu;
|
LifecycleTest.java | 37 import android.view.Menu;
|
/development/samples/NotePad/src/com/example/android/notepad/ |
NoteEditor.java | 36 import android.view.Menu; 378 * This method is called when the user clicks the device's Menu button the first time for 379 * this Activity. Android passes in a Menu object that is populated with items. 384 * @param menu A Menu object to which items should be added. 385 * @return True to display the menu. 388 public boolean onCreateOptionsMenu(Menu menu) { 389 // Inflate menu from XML resource 391 inflater.inflate(R.menu.editor_options_menu, menu) [all...] |
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
Balls.java | 30 import android.view.Menu;
|
/packages/apps/Calculator/src/com/android/calculator2/ |
Calculator.java | 29 import android.view.Menu; 138 public boolean onCreateOptionsMenu(Menu menu) { 139 super.onCreateOptionsMenu(menu); 140 getMenuInflater().inflate(R.menu.menu, menu); 145 public boolean onPrepareOptionsMenu(Menu menu) { 146 super.onPrepareOptionsMenu(menu); 165 PopupMenu menu = constructPopupMenu(); local 176 final Menu menu = popupMenu.getMenu(); local [all...] |
/packages/apps/Settings/src/com/android/settings/ |
ApnSettings.java | 41 import android.view.Menu; 69 private static final int MENU_NEW = Menu.FIRST; 70 private static final int MENU_RESTORE = Menu.FIRST + 1; 210 public boolean onCreateOptionsMenu(Menu menu) { 211 super.onCreateOptionsMenu(menu); 212 menu.add(0, MENU_NEW, 0, 216 menu.add(0, MENU_RESTORE, 0,
|
SettingsPreferenceFragment.java | 34 import android.view.Menu; 46 private static final int MENU_HELP = Menu.FIRST + 100; 59 // Prepare help url and enable menu if necessary 82 * Override this if you want to show a help item in the menu, by returning the resource id. 90 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { 92 MenuItem helpItem = menu.add(0, MENU_HELP, 0, R.string.help_label);
|
/packages/apps/UnifiedEmail/src/com/android/mail/photo/ |
MailPhotoViewActivity.java | 26 import android.view.Menu; 66 private Menu mMenu; 118 public boolean onCreateOptionsMenu(Menu menu) { 121 inflater.inflate(R.menu.photo_view_menu, menu); 122 mMenu = menu; 134 public boolean onPrepareOptionsMenu(Menu menu) {
|
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
ProjectsActivity.java | 28 import android.view.Menu; 58 // Menu ids 119 // Upon long press, pop up a menu with a removal option. 129 // Otherwise, pop up a menu with a project removal option. 131 popupMenu.getMenuInflater().inflate(R.menu.project_menu, popupMenu.getMenu()); 169 public boolean onCreateOptionsMenu(Menu menu) { 170 menu.add(Menu.NONE, MENU_NEW_PROJECT_ID, Menu.NONE, R.string.projects_new_project [all...] |
/developers/samples/android/connectivity/sync/BasicSyncAdapter/BasicSyncAdapter/src/main/java/com/example/android/network/sync/basicsyncadapter/ |
EntryListFragment.java | 36 import android.view.Menu; 85 * Options menu used to populate ActionBar. 87 private Menu mOptionsMenu; 247 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { 248 super.onCreateOptionsMenu(menu, inflater); 249 mOptionsMenu = menu; 250 inflater.inflate(R.menu.main, menu);
|
/development/apps/Development/src/com/android/development/ |
InstrumentationList.java | 30 import android.view.Menu; 121 public boolean onCreateOptionsMenu(Menu menu) 123 super.onCreateOptionsMenu(menu); 124 mProfilingItem = menu.add(0, 0, 0, "Profiling Mode") 131 public boolean onPrepareOptionsMenu(Menu menu) 133 super.onPrepareOptionsMenu(menu);
|
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/ |
ActionBarHelperBase.java | 27 import android.view.Menu; 70 SimpleMenu menu = new SimpleMenu(mActivity); local 71 mActivity.onCreatePanelMenu(Window.FEATURE_OPTIONS_PANEL, menu); 72 mActivity.onPrepareOptionsMenu(menu); 73 for (int i = 0; i < menu.size(); i++) { 74 MenuItem item = menu.getItem(i); 124 * Action bar helper code to be run in {@link Activity#onCreateOptionsMenu(android.view.Menu)}. 126 * NOTE: This code will mark on-screen menu items as invisible. 129 public boolean onCreateOptionsMenu(Menu menu) { [all...] |
/development/samples/training/NavigationDrawer/src/com/example/android/navigationdrawerexample/ |
MainActivity.java | 32 import android.view.Menu; 127 public boolean onCreateOptionsMenu(Menu menu) { 129 inflater.inflate(R.menu.main, menu); 130 return super.onCreateOptionsMenu(menu); 135 public boolean onPrepareOptionsMenu(Menu menu) { 138 menu.findItem(R.id.action_websearch).setVisible(!drawerOpen); 139 return super.onPrepareOptionsMenu(menu); [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_cvs/searchcvs/www/projectName/ |
searchcvs.php | 2 require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php"); $App = new App(); $Nav = new Nav(); $Menu = new Menu(); include($App->getProjectCommon()); 138 $App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppTransferHistory.java | 47 import android.view.Menu; 142 public boolean onCreateOptionsMenu(Menu menu) { 145 inflater.inflate(R.menu.transferhistory, menu); 151 public boolean onPrepareOptionsMenu(Menu menu) { 154 menu.findItem(R.id.transfer_menu_clear_all).setEnabled(showClear); 156 return super.onPrepareOptionsMenu(menu); 189 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) [all...] |
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastListActivity.java | 38 import android.view.Menu; 78 // IDs of the main menu items. 82 // IDs of the context menu items (package local, accessed from inner DeleteThreadListener). 93 // We have a menu item to show in action bar. 107 // Set context menu for long-press. 121 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { 122 menu.add(0, MENU_DELETE_ALL, 0, R.string.menu_delete_all).setIcon( 124 menu.add(0, MENU_PREFERENCES, 0, R.string.menu_preferences).setIcon( 129 public void onPrepareOptionsMenu(Menu menu) [all...] |
/packages/apps/Contacts/src/com/android/contacts/activities/ |
ContactDetailActivity.java | 31 import android.view.Menu; 122 public boolean onCreateOptionsMenu(Menu menu) { 123 super.onCreateOptionsMenu(menu); 125 inflater.inflate(R.menu.star, menu); 130 public boolean onPrepareOptionsMenu(Menu menu) { 131 final MenuItem starredMenuItem = menu.findItem(R.id.menu_star);
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
CallLogActivity.java | 35 import android.view.Menu; 147 public boolean onCreateOptionsMenu(Menu menu) { 149 inflater.inflate(R.menu.call_log_options, menu); 154 public boolean onPrepareOptionsMenu(Menu menu) { 155 final MenuItem itemDeleteAll = menu.findItem(R.id.delete_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/apps/UnifiedEmail/src/com/android/mail/browse/ |
EmlViewerActivity.java | 29 import android.view.Menu; 106 public boolean onCreateOptionsMenu(Menu menu) { 111 getMenuInflater().inflate(R.menu.eml_viewer_menu, menu); 112 mHelpItem = menu.findItem(R.id.help_info_menu_item); 113 mSendFeedbackItem = menu.findItem(R.id.feedback_menu_item); 118 public boolean onPrepareOptionsMenu(Menu menu) {
|