Home
last modified time | relevance | path

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

12345678910>>...15

/packages/apps/DocumentsUI/src/com/android/documentsui/
DMenuManager.java58 public void updateActionMenu(Menu menu, SelectionDetails selection) { in updateActionMenu() argument
59 updateOpenWith(menu.findItem(R.id.action_menu_open_with), selection); in updateActionMenu()
60 updateDelete(menu.findItem(R.id.action_menu_delete), selection); in updateActionMenu()
61 updateShare(menu.findItem(R.id.action_menu_share), selection); in updateActionMenu()
62 updateRename(menu.findItem(R.id.action_menu_rename), selection); in updateActionMenu()
63 updateSelect(menu.findItem(R.id.action_menu_select), selection); in updateActionMenu()
64 updateSelectAll(menu.findItem(R.id.action_menu_select_all)); in updateActionMenu()
65 updateMoveTo(menu.findItem(R.id.action_menu_move_to), selection); in updateActionMenu()
66 updateCopyTo(menu.findItem(R.id.action_menu_copy_to), selection); in updateActionMenu()
67 updateCompress(menu.findItem(R.id.action_menu_compress), selection); in updateActionMenu()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DWebViewContextMenu.java206 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo info) { in onCreateContextMenu() argument
236 inflater.inflate(getMenuResourceId(), menu); in onCreateContextMenu() local
240 for (int i = 0; i < menu.size(); i++) { in onCreateContextMenu()
241 final MenuItem menuItem = menu.getItem(i); in onCreateContextMenu()
248 menu.setGroupVisible(R.id.PHONE_MENU, type == WebView.HitTestResult.PHONE_TYPE); in onCreateContextMenu()
249 menu.setGroupVisible(R.id.EMAIL_MENU, type == WebView.HitTestResult.EMAIL_TYPE); in onCreateContextMenu()
250 menu.setGroupVisible(R.id.GEO_MENU, type == WebView.HitTestResult.GEO_TYPE); in onCreateContextMenu()
251 menu.setGroupVisible(R.id.ANCHOR_MENU, type == WebView.HitTestResult.SRC_ANCHOR_TYPE in onCreateContextMenu()
253 menu.setGroupVisible(R.id.IMAGE_MENU, type == WebView.HitTestResult.IMAGE_TYPE in onCreateContextMenu()
279 menu.setHeaderTitle(decodedPhoneExtra); in onCreateContextMenu()
[all …]
DSelectedConversationsActionMenu.java355 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
358 inflater.inflate(R.menu.conversation_list_selection_actions_menu, menu); in onCreateActionMode()
365 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument
399 final MenuItem star = menu.findItem(R.id.star); in onPrepareActionMode()
401 final MenuItem unstar = menu.findItem(R.id.remove_star); in onPrepareActionMode()
403 final MenuItem read = menu.findItem(R.id.read); in onPrepareActionMode()
405 final MenuItem unread = menu.findItem(R.id.unread); in onPrepareActionMode()
411 final MenuItem removeFolder = menu.findItem(R.id.remove_folder); in onPrepareActionMode()
412 final MenuItem moveTo = menu.findItem(R.id.move_to); in onPrepareActionMode()
413 final MenuItem moveToInbox = menu.findItem(R.id.move_to_inbox); in onPrepareActionMode()
[all …]
DEmailCopyContextMenu.java99 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo info) { in onCreateContextMenu() argument
102 inflater.inflate(getMenuResourceId(), menu); in onCreateContextMenu() local
105 menu.setHeaderTitle(mAddress); in onCreateContextMenu()
106 menu.findItem(SEND_EMAIL_ITEM).setIntent(new Intent(Intent.ACTION_VIEW, in onCreateContextMenu()
108 menu.findItem(COPY_CONTACT_ITEM).setOnMenuItemClickListener( in onCreateContextMenu()
115 return R.menu.email_copy_context_menu; in getMenuResourceId()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DActionBarController.java108 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
109 mEmptyTrashItem = menu.findItem(R.id.empty_trash); in onCreateOptionsMenu()
110 mEmptySpamItem = menu.findItem(R.id.empty_spam); in onCreateOptionsMenu()
119 return R.menu.conversation_list_menu; in getOptionsMenuId()
121 return R.menu.conversation_actions; in getOptionsMenuId()
123 return R.menu.conversation_list_menu; in getOptionsMenuId()
125 return R.menu.conversation_list_search_results_actions; in getOptionsMenuId()
127 return R.menu.conversation_actions; in getOptionsMenuId()
129 return R.menu.wait_mode_actions; in getOptionsMenuId()
132 return R.menu.conversation_list_menu; in getOptionsMenuId()
[all …]
DAccountFeedbackActivity.java89 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
94 getMenuInflater().inflate(R.menu.account_feedback_menu, menu); in onCreateOptionsMenu()
95 mHelpAndFeedbackItem = menu.findItem(R.id.help_info_menu_item); in onCreateOptionsMenu()
100 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
106 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DInstantAppButtonsPreferenceControllerTest.java132 final Menu menu = mock(Menu.class); in onCreateOptionsMenu_noLaunchUri_shouldNotAddInstallInstantAppMenu() local
133 when(menu.add(anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(mock(MenuItem.class)); in onCreateOptionsMenu_noLaunchUri_shouldNotAddInstallInstantAppMenu()
135 mController.onCreateOptionsMenu(menu, null /* inflater */); in onCreateOptionsMenu_noLaunchUri_shouldNotAddInstallInstantAppMenu()
137 verify(menu, never()).add(anyInt(), eq(AppInfoDashboardFragment.INSTALL_INSTANT_APP_MENU), in onCreateOptionsMenu_noLaunchUri_shouldNotAddInstallInstantAppMenu()
144 final Menu menu = mock(Menu.class); in onCreateOptionsMenu_hasLaunchUri_shouldAddForceStop() local
145 when(menu.add(anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(mock(MenuItem.class)); in onCreateOptionsMenu_hasLaunchUri_shouldAddForceStop()
147 mController.onCreateOptionsMenu(menu, null /* inflater */); in onCreateOptionsMenu_hasLaunchUri_shouldAddForceStop()
149 verify(menu).add(anyInt(), eq(AppInfoDashboardFragment.INSTALL_INSTANT_APP_MENU), in onCreateOptionsMenu_hasLaunchUri_shouldAddForceStop()
156 final Menu menu = mock(Menu.class); in onPrepareOptionsMenu_noAppStoreLink_shoulDisableInstallInstantAppMenu() local
158 when(menu.findItem(AppInfoDashboardFragment.INSTALL_INSTANT_APP_MENU)).thenReturn(menuItem); in onPrepareOptionsMenu_noAppStoreLink_shoulDisableInstallInstantAppMenu()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DMenuExecutor.java168 public static void updateMenuOperation(Menu menu, int supported) { in updateMenuOperation() argument
183 setMenuItemVisible(menu, R.id.action_delete, supportDelete); in updateMenuOperation()
184 setMenuItemVisible(menu, R.id.action_rotate_ccw, supportRotate); in updateMenuOperation()
185 setMenuItemVisible(menu, R.id.action_rotate_cw, supportRotate); in updateMenuOperation()
186 setMenuItemVisible(menu, R.id.action_crop, supportCrop); in updateMenuOperation()
187 setMenuItemVisible(menu, R.id.action_trim, supportTrim); in updateMenuOperation()
188 setMenuItemVisible(menu, R.id.action_mute, supportMute); in updateMenuOperation()
190 setMenuItemVisible(menu, R.id.action_share_panorama, false); in updateMenuOperation()
191 setMenuItemVisible(menu, R.id.action_share, supportShare); in updateMenuOperation()
192 setMenuItemVisible(menu, R.id.action_setas, supportSetAs); in updateMenuOperation()
[all …]
/packages/apps/TV/src/com/android/tv/menu/
DMenuRowFactory.java17 package com.android.tv.menu;
45 public MenuRow createMenuRow(Menu menu, Class<?> key) { in createMenuRow() argument
48 mMainActivity, mTvView, menu, mMainActivity.getTimeShiftManager()); in createMenuRow()
50 return new ChannelsRow(mMainActivity, menu, mMainActivity.getProgramDataManager()); in createMenuRow()
56 return new PartnerRow(mMainActivity, menu, title, customActions); in createMenuRow()
62 menu, in createMenuRow()
73 private TvOptionsRow(Context context, Menu menu, List<CustomAction> customActions) { in TvOptionsRow() argument
76 menu, in TvOptionsRow()
86 Context context, Menu menu, String title, List<CustomAction> customActions) { in PartnerRow() argument
89 menu, in PartnerRow()
DItemListRow.java17 package com.android.tv.menu;
21 import com.android.tv.menu.ItemListRowView.ItemListAdapter;
33 Menu menu, in ItemListRow() argument
37 this(context, menu, context.getString(titleResId), itemHeightResId, adapter); in ItemListRow()
42 Menu menu, in ItemListRow() argument
46 super(context, menu, title, itemHeightResId); in ItemListRow()
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DMenuManager.java106 public void inflateContextMenuForContainer(Menu menu, MenuInflater inflater) { in inflateContextMenuForContainer() argument
107 inflater.inflate(R.menu.container_context_menu, menu); in inflateContextMenuForContainer()
108 updateContextMenuForContainer(menu); in inflateContextMenuForContainer()
113 Menu menu, MenuInflater inflater, SelectionDetails selectionDetails) { in inflateContextMenuForDocs() argument
119 inflater.inflate(R.menu.file_context_menu, menu); in inflateContextMenuForDocs()
120 updateContextMenuForFiles(menu, selectionDetails); in inflateContextMenuForDocs()
125 inflater.inflate(R.menu.dir_context_menu, menu); in inflateContextMenuForDocs()
126 updateContextMenuForDirs(menu, selectionDetails); in inflateContextMenuForDocs()
130 inflater.inflate(R.menu.mixed_context_menu, menu); in inflateContextMenuForDocs()
131 updateContextMenu(menu, selectionDetails); in inflateContextMenuForDocs()
/packages/services/Telephony/src/com/android/phone/settings/fdn/
DFdnList.java134 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
135 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
140 menu.add(0, MENU_ADD, 0, r.getString(R.string.menu_add)) in onCreateOptionsMenu()
142 menu.add(0, MENU_EDIT, 0, r.getString(R.string.menu_edit)) in onCreateOptionsMenu()
144 menu.add(0, MENU_DELETE, 0, r.getString(R.string.menu_delete)) in onCreateOptionsMenu()
146 menu.add(0, MENU_DIAL, 0, r.getString(R.string.menu_dial)); in onCreateOptionsMenu()
151 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
152 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
155 menu.findItem(MENU_ADD).setVisible(true); in onPrepareOptionsMenu()
156 menu.findItem(MENU_EDIT).setVisible(hasSelection); in onPrepareOptionsMenu()
[all …]
/packages/apps/Gallery2/src/com/android/photos/
DMultiChoiceManager.java133 private void updateActionItemVisibilities(Menu menu, int supportedOperations) { in updateActionItemVisibilities() argument
134 MenuItem editItem = menu.findItem(R.id.menu_edit); in updateActionItemVisibilities()
135 MenuItem deleteItem = menu.findItem(R.id.menu_delete); in updateActionItemVisibilities()
136 MenuItem shareItem = menu.findItem(R.id.menu_share); in updateActionItemVisibilities()
137 MenuItem cropItem = menu.findItem(R.id.menu_crop); in updateActionItemVisibilities()
138 MenuItem trimItem = menu.findItem(R.id.menu_trim); in updateActionItemVisibilities()
139 MenuItem muteItem = menu.findItem(R.id.menu_mute); in updateActionItemVisibilities()
140 MenuItem setAsItem = menu.findItem(R.id.menu_set_as); in updateActionItemVisibilities()
152 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
156 inflater.inflate(R.menu.gallery_multiselect, menu); in onCreateActionMode()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransferHistory.java151 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
154 inflater.inflate(R.menu.transferhistory, menu); in onCreateOptionsMenu()
160 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
162 menu.findItem(R.id.transfer_menu_clear_all).setEnabled(isTransferComplete()); in onPrepareOptionsMenu()
164 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
209 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { in onCreateContextMenu() argument
221 menu.setHeaderTitle(fileName); in onCreateContextMenu()
225 inflater.inflate(R.menu.receivedfilescontextfinished, menu); in onCreateContextMenu()
227 inflater.inflate(R.menu.transferhistorycontextfinished, menu); in onCreateContextMenu()
/packages/apps/Stk/src/com/android/stk/
DStkInputActivity.java123 Menu menu = mPopupMenu.getMenu(); in onClick() local
124 createOptionsMenuInternal(menu); in onClick()
125 prepareOptionsMenuInternal(menu); in onClick()
133 public void onDismiss(PopupMenu menu) { in onClick()
337 public boolean onCreateOptionsMenu(android.view.Menu menu) { in onCreateOptionsMenu() argument
338 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
339 createOptionsMenuInternal(menu); in onCreateOptionsMenu()
343 private void createOptionsMenuInternal(Menu menu) { in createOptionsMenuInternal() argument
344 menu.add(Menu.NONE, StkApp.MENU_ID_END_SESSION, 1, R.string.menu_end_session); in createOptionsMenuInternal()
345 menu.add(0, StkApp.MENU_ID_HELP, 2, R.string.help); in createOptionsMenuInternal()
[all …]
/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/Messaging/src/com/android/messaging/ui/conversationlist/
DMultiSelectActionModeCallback.java86 public boolean onCreateActionMode(ActionMode actionMode, Menu menu) { in onCreateActionMode() argument
87 actionMode.getMenuInflater().inflate(R.menu.conversation_list_fragment_select_menu, menu); in onCreateActionMode()
88 mArchiveMenuItem = menu.findItem(R.id.action_archive); in onCreateActionMode()
89 mUnarchiveMenuItem = menu.findItem(R.id.action_unarchive); in onCreateActionMode()
90 mAddContactMenuItem = menu.findItem(R.id.action_add_contact); in onCreateActionMode()
91 mBlockMenuItem = menu.findItem(R.id.action_block); in onCreateActionMode()
92 mNotificationOffMenuItem = menu.findItem(R.id.action_notification_off); in onCreateActionMode()
93 mNotificationOnMenuItem = menu.findItem(R.id.action_notification_on); in onCreateActionMode()
100 public boolean onPrepareActionMode(ActionMode actionMode, Menu menu) { in onPrepareActionMode() argument
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DHelp.java38 public void addHelpMenuItem(Menu menu, String activityName) { in addHelpMenuItem() argument
39 addHelpMenuItem(menu, activityName, false); in addHelpMenuItem()
42 public void addHelpMenuItem(Menu menu, String activityName, boolean showAsAction) { in addHelpMenuItem() argument
46 inflater.inflate(R.menu.help, menu); in addHelpMenuItem()
47 MenuItem item = menu.findItem(R.id.menu_help); in addHelpMenuItem()
/packages/apps/Contacts/src/com/android/contacts/list/
DGroupMemberPickerFragment.java270 public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) { in onCreateOptionsMenu() argument
271 super.onCreateOptionsMenu(menu, menuInflater); in onCreateOptionsMenu()
272 menuInflater.inflate(R.menu.group_member_picker, menu); in onCreateOptionsMenu()
276 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
283 setVisible(menu, R.id.menu_search, !isSearchMode && !isSelectionMode); in onPrepareOptionsMenu()
284 setVisible(menu, R.id.menu_select, hasContacts && !isSearchMode && !isSelectionMode); in onPrepareOptionsMenu()
295 private static void setVisible(Menu menu, int id, boolean visible) { in setVisible() argument
296 final MenuItem menuItem = menu.findItem(id); in setVisible()
/packages/services/Car/car-lib/api/released/
D1.txt64 package android.car.app.menu {
68 method public abstract android.car.app.menu.RootMenu getRootMenu(android.os.Bundle);
76 …method public abstract void subscribe(java.lang.String, android.car.app.menu.SubscriptionCallbacks…
77 …method public abstract void unsubscribe(java.lang.String, android.car.app.menu.SubscriptionCallbac…
88 …field public static final java.lang.String KEY_EMPTY_PLACEHOLDER = "android.car.app.menu.empty_pla…
89 field public static final java.lang.String KEY_FLAGS = "android.car.app.menu.flags";
90 field public static final java.lang.String KEY_ID = "android.car.app.menu.id";
91 field public static final java.lang.String KEY_LEFTICON = "android.car.app.menu.leftIcon";
92 field public static final java.lang.String KEY_REMOTEVIEWS = "android.car.app.menu.remoteViews";
93 field public static final java.lang.String KEY_RIGHTICON = "android.car.app.menu.rightIcon";
[all …]
D2.txt64 package android.car.app.menu {
68 method public abstract android.car.app.menu.RootMenu getRootMenu(android.os.Bundle);
76 …method public abstract void subscribe(java.lang.String, android.car.app.menu.SubscriptionCallbacks…
77 …method public abstract void unsubscribe(java.lang.String, android.car.app.menu.SubscriptionCallbac…
88 …field public static final java.lang.String KEY_EMPTY_PLACEHOLDER = "android.car.app.menu.empty_pla…
89 field public static final java.lang.String KEY_FLAGS = "android.car.app.menu.flags";
90 field public static final java.lang.String KEY_ID = "android.car.app.menu.id";
91 field public static final java.lang.String KEY_LEFTICON = "android.car.app.menu.leftIcon";
92 field public static final java.lang.String KEY_REMOTEVIEWS = "android.car.app.menu.remoteViews";
93 field public static final java.lang.String KEY_RIGHTICON = "android.car.app.menu.rightIcon";
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/
DContactDetailsFragment.java99 public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) { in onCreateOptionsMenu() argument
100 menuInflater.inflate(R.menu.contact_edit, menu); in onCreateOptionsMenu()
101 MenuItem defaultNumberMenuItem = menu.findItem(R.id.menu_contact_default_number); in onCreateOptionsMenu()
109 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
110 menu.findItem(R.id.menu_contacts_search).setVisible(false); in onPrepareOptionsMenu()
111 menu.findItem(R.id.menu_dialer_setting).setVisible(false); in onPrepareOptionsMenu()
/packages/apps/Email/src/com/android/email/activity/setup/
DEmailPreferenceActivity.java154 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
155 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
156 getMenuInflater().inflate(R.menu.settings_menu, menu); in onCreateOptionsMenu()
158 mFeedbackMenuItem = menu.findItem(R.id.feedback_menu_item); in onCreateOptionsMenu()
163 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
164 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastListActivity.java141 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() argument
142 menu.add(0, MENU_DELETE_ALL, 0, R.string.menu_delete_all).setIcon( in onCreateOptionsMenu()
147 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
148 menu.findItem(MENU_DELETE_ALL).setVisible(!mAdapter.isEmpty()); in onPrepareOptionsMenu()
203 public void onCreateContextMenu(ContextMenu menu, View v,
205 menu.setHeaderTitle(R.string.message_options);
206 menu.add(0, MENU_VIEW_DETAILS, 0, R.string.menu_view_details);
207 menu.add(0, MENU_DELETE, 0, R.string.menu_delete);

12345678910>>...15