Home
last modified time | relevance | path

Searched refs:menu (Results 1 – 25 of 89) sorted by relevance

1234

/packages/apps/Calendar/src/com/android/calendar/
DMenuHelper.java49 public static void onPrepareOptionsMenu(Activity activity, Menu menu) { in onPrepareOptionsMenu() argument
52 menu.setGroupVisible(MENU_GROUP_AGENDA, true); in onPrepareOptionsMenu()
53 menu.setGroupEnabled(MENU_GROUP_AGENDA, false); in onPrepareOptionsMenu()
55 menu.setGroupVisible(MENU_GROUP_AGENDA, true); in onPrepareOptionsMenu()
56 menu.setGroupEnabled(MENU_GROUP_AGENDA, true); in onPrepareOptionsMenu()
60 menu.setGroupVisible(MENU_GROUP_DAY, true); in onPrepareOptionsMenu()
61 menu.setGroupEnabled(MENU_GROUP_DAY, false); in onPrepareOptionsMenu()
63 menu.setGroupVisible(MENU_GROUP_DAY, true); in onPrepareOptionsMenu()
64 menu.setGroupEnabled(MENU_GROUP_DAY, true); in onPrepareOptionsMenu()
68 menu.setGroupVisible(MENU_GROUP_WEEK, true); in onPrepareOptionsMenu()
[all …]
DAgendaActivity.java224 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
225 MenuHelper.onPrepareOptionsMenu(this, menu); in onPrepareOptionsMenu()
226 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
230 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
231 MenuHelper.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
232 return super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
/packages/apps/Gallery3D/src/com/cooliris/media/
DMenuBar.java81 public void updateMenu(Menu menu, int index) { in updateMenu() argument
82 mMenus[index] = menu; in updateMenu()
146 Menu menu = menus[i]; in renderBlended() local
147 ResourceTexture icon = view.getResource(menu.icon); in renderBlended()
149 StringTexture titleTexture = (StringTexture) mTextureMap.get(menu.title); in renderBlended()
151 …titleTexture = new StringTexture(menu.title, menu.config, menu.titleWidth, MENU_TITLE_STYLE.height… in renderBlended()
153 menu.titleTexture = titleTexture; in renderBlended()
154 mTextureMap.put(menu.title, titleTexture); in renderBlended()
157 int width = iconWidth + menu.titleWidth; in renderBlended()
158 int offset = (menu.mWidth - width) / 2; in renderBlended()
[all …]
/packages/apps/Phone/src/com/android/phone/
DFdnList.java47 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
48 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
53 menu.add(0, MENU_ADD, 0, r.getString(R.string.menu_add)) in onCreateOptionsMenu()
55 menu.add(0, MENU_EDIT, 0, r.getString(R.string.menu_edit)) in onCreateOptionsMenu()
57 menu.add(0, MENU_DELETE, 0, r.getString(R.string.menu_delete)) in onCreateOptionsMenu()
63 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
64 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
67 menu.findItem(MENU_ADD).setVisible(true); in onPrepareOptionsMenu()
68 menu.findItem(MENU_EDIT).setVisible(hasSelection); in onPrepareOptionsMenu()
69 menu.findItem(MENU_DELETE).setVisible(hasSelection); in onPrepareOptionsMenu()
DSimContacts.java270 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
271 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
272 menu.add(0, MENU_IMPORT_ALL, 0, R.string.importAllSimEntries); in onCreateOptionsMenu()
277 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
278 MenuItem item = menu.findItem(MENU_IMPORT_ALL); in onPrepareOptionsMenu()
282 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
328 public void onCreateContextMenu(ContextMenu menu, View v, in onCreateContextMenu() argument
335 menu.setHeaderTitle(textView.getText()); in onCreateContextMenu()
337 menu.add(0, MENU_IMPORT_ONE, 0, R.string.importSimEntry); in onCreateContextMenu()
/packages/apps/Calculator/src/com/android/calculator2/
DCalculator.java89 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
90 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
93 item = menu.add(0, CMD_CLEAR_HISTORY, 0, R.string.clear_history); in onCreateOptionsMenu()
96 item = menu.add(0, CMD_ADVANCED_PANEL, 0, R.string.advanced); in onCreateOptionsMenu()
99 item = menu.add(0, CMD_BASIC_PANEL, 0, R.string.basic); in onCreateOptionsMenu()
106 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
107 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
108 menu.findItem(CMD_BASIC_PANEL).setVisible(mPanelSwitcher != null && in onPrepareOptionsMenu()
111 menu.findItem(CMD_ADVANCED_PANEL).setVisible(mPanelSwitcher != null && in onPrepareOptionsMenu()
/packages/apps/Browser/src/com/android/browser/
DBrowserHistoryPage.java162 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
163 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
165 inflater.inflate(R.menu.history, menu); in onCreateOptionsMenu()
170 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
171menu.findItem(R.id.clear_history_menu_id).setVisible(Browser.canClearHistory(this.getContentResolv… in onPrepareOptionsMenu()
194 public void onCreateContextMenu(ContextMenu menu, View v, in onCreateContextMenu() argument
205 inflater.inflate(R.menu.historycontext, menu); in onCreateContextMenu()
216 menu.setHeaderView(mContextHeader); in onCreateContextMenu()
220 menu.findItem(R.id.new_window_context_menu_id).setVisible(false); in onCreateContextMenu()
224 MenuItem item = menu.findItem(R.id.save_to_bookmarks_menu_id); in onCreateContextMenu()
[all …]
DBrowserBookmarksPage.java172 public void onCreateContextMenu(ContextMenu menu, View v, in onCreateContextMenu() argument
179 inflater.inflate(R.menu.historycontext, menu); in onCreateContextMenu()
181 inflater.inflate(R.menu.bookmarkscontext, menu); in onCreateContextMenu()
185 menu.setGroupVisible(R.id.CONTEXT_MENU, false); in onCreateContextMenu()
193 menu.setHeaderView(mAddHeader); in onCreateContextMenu()
200 MenuItem item = menu.findItem( in onCreateContextMenu()
206 menu.setGroupVisible(R.id.ADD_MENU, false); in onCreateContextMenu()
209 menu.findItem(R.id.new_window_context_menu_id).setVisible( in onCreateContextMenu()
225 menu.setHeaderView(mContextHeader); in onCreateContextMenu()
561 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransferHistory.java129 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
132 inflater.inflate(R.menu.transferhistory, menu); in onCreateOptionsMenu()
138 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
140 menu.findItem(R.id.transfer_menu_clear_all).setEnabled(showClear); in onPrepareOptionsMenu()
141 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
174 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { in onCreateContextMenu() argument
185 menu.setHeaderTitle(fileName); in onCreateContextMenu()
188 inflater.inflate(R.menu.transferhistorycontextfinished, menu); in onCreateContextMenu()
/packages/experimental/BugReportSender/src/com/android/bugreportsender/
DBugReportListActivity.java83 public void onCreateContextMenu(ContextMenu menu, View v, in onCreateContextMenu() argument
85 super.onCreateContextMenu(menu, v, menuInfo); in onCreateContextMenu()
86 menu.add(0, SYSTEM_LOG_ID, 0, "System Log"); in onCreateContextMenu()
87 menu.add(0, CPU_ID, 0, "CPU Info"); in onCreateContextMenu()
88 menu.add(0, MEMORY_ID, 0, "Memory Info"); in onCreateContextMenu()
89 menu.add(0, PROCRANK_ID, 0, "Procrank"); in onCreateContextMenu()
/packages/apps/Settings/src/com/android/settings/
DZoneList.java112 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
113 menu.add(0, MENU_ALPHABETICAL, 0, R.string.zone_list_menu_sort_alphabetically) in onCreateOptionsMenu()
115 menu.add(0, MENU_TIMEZONE, 0, R.string.zone_list_menu_sort_by_timezone) in onCreateOptionsMenu()
122 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
125 menu.findItem(MENU_TIMEZONE).setVisible(false); in onPrepareOptionsMenu()
126 menu.findItem(MENU_ALPHABETICAL).setVisible(true); in onPrepareOptionsMenu()
128 menu.findItem(MENU_TIMEZONE).setVisible(true); in onPrepareOptionsMenu()
129 menu.findItem(MENU_ALPHABETICAL).setVisible(false); in onPrepareOptionsMenu()
/packages/apps/Stk/src/com/android/stk/
DStkMenuActivity.java184 public boolean onCreateOptionsMenu(android.view.Menu menu) { in onCreateOptionsMenu() argument
185 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
186 menu.add(0, StkApp.MENU_ID_END_SESSION, 1, R.string.menu_end_session); in onCreateOptionsMenu()
187 menu.add(0, StkApp.MENU_ID_HELP, 2, R.string.help); in onCreateOptionsMenu()
192 public boolean onPrepareOptionsMenu(android.view.Menu menu) { in onPrepareOptionsMenu() argument
193 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
204 menu.findItem(StkApp.MENU_ID_END_SESSION).setVisible(mainVisible); in onPrepareOptionsMenu()
205 menu.findItem(StkApp.MENU_ID_HELP).setVisible(helpVisible); in onPrepareOptionsMenu()
DStkInputActivity.java201 public boolean onCreateOptionsMenu(android.view.Menu menu) { in onCreateOptionsMenu() argument
202 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
203 menu.add(android.view.Menu.NONE, StkApp.MENU_ID_END_SESSION, 1, in onCreateOptionsMenu()
205 menu.add(0, StkApp.MENU_ID_HELP, 2, R.string.help); in onCreateOptionsMenu()
211 public boolean onPrepareOptionsMenu(android.view.Menu menu) { in onPrepareOptionsMenu() argument
212 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
213 menu.findItem(StkApp.MENU_ID_END_SESSION).setVisible(true); in onPrepareOptionsMenu()
214 menu.findItem(StkApp.MENU_ID_HELP).setVisible(mStkInput.helpAvailable); in onPrepareOptionsMenu()
/packages/apps/Gallery/src/com/android/camera/
DMenuHelper.java106 public void gettingReadyToOpen(Menu menu, IImage image); in gettingReadyToOpen() argument
166 public static void enableShareMenuItem(Menu menu, boolean enabled) { in enableShareMenuItem() argument
167 MenuItem item = menu.findItem(MENU_IMAGE_SHARE); in enableShareMenuItem()
181 public static void enableShowOnMapMenuItem(Menu menu, boolean enabled) { in enableShowOnMapMenuItem() argument
182 MenuItem item = menu.findItem(MENU_IMAGE_SHOWMAP); in enableShowOnMapMenuItem()
578 Menu menu, in addImageMenuItems() argument
594 SubMenu rotateSubmenu = menu.addSubMenu(Menu.NONE, Menu.NONE, in addImageMenuItems()
627 MenuItem autoCrop = menu.add(Menu.NONE, Menu.NONE, in addImageMenuItems()
641 MenuItem setMenu = menu.add(Menu.NONE, Menu.NONE, in addImageMenuItems()
654 MenuItem item1 = menu.add(Menu.NONE, MENU_IMAGE_SHARE, in addImageMenuItems()
[all …]
DImageGallery.java166 private MenuItem addSlideShowMenu(Menu menu) { in addSlideShowMenu() argument
167 return menu.add(Menu.NONE, Menu.NONE, MenuHelper.POSITION_SLIDESHOW, in addSlideShowMenu()
476 public boolean onCreateOptionsMenu(Menu menu) {
481 MenuHelper.addCapturePictureMenuItems(menu, this);
483 MenuHelper.addCaptureVideoMenuItems(menu, this);
487 MenuHelper.addCaptureMenuItems(menu, this);
489 mSlideShowItem = addSlideShowMenu(menu);
492 MenuItem item = menu.add(Menu.NONE, Menu.NONE,
508 item = menu.add(Menu.NONE, Menu.NONE,
528 public boolean onPrepareOptionsMenu(Menu menu) {
[all …]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastListActivity.java115 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
116 menu.clear(); in onPrepareOptionsMenu()
119 menu.add(0, MENU_DELETE_ALL, 0, R.string.menu_delete_all).setIcon( in onPrepareOptionsMenu()
123 menu.add(0, MENU_PREFERENCES, 0, R.string.menu_preferences).setIcon( in onPrepareOptionsMenu()
157 public void onCreateContextMenu(ContextMenu menu, View v,
159 menu.add(0, MENU_VIEW, 0, R.string.menu_view);
160 menu.add(0, MENU_DELETE, 0, R.string.menu_delete);
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmClock.java255 public void onCreateContextMenu(ContextMenu menu, View view, in onCreateContextMenu() argument
258 getMenuInflater().inflate(R.menu.context_menu, menu); in onCreateContextMenu()
280 menu.setHeaderView(v); in onCreateContextMenu()
283 menu.findItem(R.id.enable_alarm).setTitle(R.string.disable_alarm); in onCreateContextMenu()
306 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
307 getMenuInflater().inflate(R.menu.alarm_list_menu, menu); in onCreateOptionsMenu()
308 return super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
/packages/apps/Mms/src/com/android/mms/ui/
DConversationList.java278 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
279 menu.clear(); in onPrepareOptionsMenu()
281 menu.add(0, MENU_COMPOSE_NEW, 0, R.string.menu_compose_new).setIcon( in onPrepareOptionsMenu()
285 menu.add(0, MENU_DELETE_ALL, 0, R.string.menu_delete_all).setIcon( in onPrepareOptionsMenu()
289 menu.add(0, MENU_SEARCH, 0, android.R.string.search_go). in onPrepareOptionsMenu()
293 menu.add(0, MENU_PREFERENCES, 0, R.string.menu_preferences).setIcon( in onPrepareOptionsMenu()
379 public void onCreateContextMenu(ContextMenu menu, View v,
387 menu.setHeaderTitle(recipients.formatNames(","));
392 menu.add(0, MENU_VIEW, 0, R.string.menu_view);
398 menu.add(0, MENU_VIEW_CONTACT, 0, R.string.menu_view_contact);
[all …]
DSlideshowEditActivity.java222 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
223 menu.clear(); in onPrepareOptionsMenu()
229 menu.add(0, MENU_MOVE_UP, 0, R.string.move_up).setIcon(R.drawable.ic_menu_move_up); in onPrepareOptionsMenu()
233 menu.add(0, MENU_MOVE_DOWN, 0, R.string.move_down).setIcon( in onPrepareOptionsMenu()
237menu.add(0, MENU_ADD_SLIDE, 0, R.string.add_slide).setIcon(R.drawable.ic_menu_add_slide); in onPrepareOptionsMenu()
239 menu.add(0, MENU_REMOVE_SLIDE, 0, R.string.remove_slide).setIcon( in onPrepareOptionsMenu()
242menu.add(0, MENU_ADD_SLIDE, 0, R.string.add_slide).setIcon(R.drawable.ic_menu_add_slide); in onPrepareOptionsMenu()
245 menu.add(0, MENU_DISCARD_SLIDESHOW, 0, in onPrepareOptionsMenu()
DSlideEditorActivity.java319 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
323 menu.clear(); in onPrepareOptionsMenu()
332 menu.add(0, MENU_PREVIEW_SLIDESHOW, 0, R.string.preview_slideshow).setIcon( in onPrepareOptionsMenu()
338 menu.add(0, MENU_REMOVE_TEXT, 0, R.string.remove_text).setIcon( in onPrepareOptionsMenu()
344 menu.add(0, MENU_DEL_PICTURE, 0, R.string.remove_picture).setIcon( in onPrepareOptionsMenu()
347 menu.add(0, MENU_ADD_PICTURE, 0, R.string.add_picture).setIcon( in onPrepareOptionsMenu()
349 menu.add(0, MENU_TAKE_PICTURE, 0, R.string.attach_take_photo).setIcon( in onPrepareOptionsMenu()
355 menu.add(0, MENU_DEL_AUDIO, 0, R.string.remove_music).setIcon( in onPrepareOptionsMenu()
359 SubMenu subMenu = menu.addSubMenu(0, MENU_SUB_AUDIO, 0, R.string.add_music) in onPrepareOptionsMenu()
364 menu.add(0, MENU_RECORD_SOUND, 0, R.string.attach_record_sound) in onPrepareOptionsMenu()
[all …]
/packages/apps/Tag/src/com/android/apps/tag/
DTagBrowserActivity.java131 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
132 getMenuInflater().inflate(R.menu.menu, menu); in onCreateOptionsMenu()
/packages/apps/Email/src/com/android/email/activity/
DDebug.java116 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
117 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
118 getMenuInflater().inflate(R.menu.debug_option, menu); in onCreateOptionsMenu()
/packages/apps/Music/src/com/android/music/
DAlbumBrowserActivity.java272 public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfoIn) { in onCreateContextMenu() argument
273 menu.add(0, PLAY_SELECTION, 0, R.string.play_selection); in onCreateContextMenu()
274 SubMenu sub = menu.addSubMenu(0, ADD_TO_PLAYLIST, 0, R.string.add_to_playlist); in onCreateContextMenu()
276 menu.add(0, DELETE_ITEM, 0, R.string.delete_item); in onCreateContextMenu()
289 menu.setHeaderTitle(getString(R.string.unknown_album_name)); in onCreateContextMenu()
291 menu.setHeaderTitle(mCurrentAlbumName); in onCreateContextMenu()
294 menu.add(0, SEARCH, 0, R.string.search_title); in onCreateContextMenu()
415 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
416 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
417menu.add(0, PARTY_SHUFFLE, 0, R.string.party_shuffle); // icon will be set in onPrepareOptionsMenu… in onCreateOptionsMenu()
[all …]
DPlaylistBrowserActivity.java260 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
262menu.add(0, PARTY_SHUFFLE, 0, R.string.party_shuffle); // icon will be set in onPrepareOptionsMenu… in onCreateOptionsMenu()
264 return super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
268 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
269 MusicUtils.setPartyShuffleMenuIcon(menu); in onPrepareOptionsMenu()
270 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
284 public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfoIn) { in onCreateContextMenu() argument
291 menu.add(0, PLAY_SELECTION, 0, R.string.play_selection); in onCreateContextMenu()
294 menu.add(0, DELETE_PLAYLIST, 0, R.string.delete_playlist_menu); in onCreateContextMenu()
298 menu.add(0, EDIT_PLAYLIST, 0, R.string.edit_playlist_menu); in onCreateContextMenu()
[all …]
/packages/apps/Settings/src/com/android/settings/quicklaunch/
DBookmarkPicker.java102 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
103 menu.add(0, DISPLAY_MODE_LAUNCH, 0, R.string.quick_launch_display_mode_applications) in onCreateOptionsMenu()
105 menu.add(0, DISPLAY_MODE_SHORTCUT, 0, R.string.quick_launch_display_mode_shortcuts) in onCreateOptionsMenu()
111 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
112 menu.findItem(DISPLAY_MODE_LAUNCH).setVisible(mDisplayMode != DISPLAY_MODE_LAUNCH); in onPrepareOptionsMenu()
113 menu.findItem(DISPLAY_MODE_SHORTCUT).setVisible(mDisplayMode != DISPLAY_MODE_SHORTCUT); in onPrepareOptionsMenu()

1234