Home
last modified time | relevance | path

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

12345678910>>...12

/packages/apps/DocumentsUI/src/com/android/documentsui/
DMenuManager.java62 public void updateActionMenu(Menu menu, SelectionDetails selection) { in updateActionMenu() argument
63 updateOpenWith(menu.findItem(R.id.action_menu_open_with), selection); in updateActionMenu()
64 updateDelete(menu.findItem(R.id.action_menu_delete), selection); in updateActionMenu()
65 updateShare(menu.findItem(R.id.action_menu_share), selection); in updateActionMenu()
66 updateRename(menu.findItem(R.id.action_menu_rename), selection); in updateActionMenu()
67 updateSelect(menu.findItem(R.id.action_menu_select), selection); in updateActionMenu()
68 updateSelectAll(menu.findItem(R.id.action_menu_select_all), selection); in updateActionMenu()
69 updateDeselectAll(menu.findItem(R.id.action_menu_deselect_all), selection); in updateActionMenu()
70 updateMoveTo(menu.findItem(R.id.action_menu_move_to), selection); in updateActionMenu()
71 updateCopyTo(menu.findItem(R.id.action_menu_copy_to), selection); in updateActionMenu()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DInstantAppButtonsPreferenceControllerTest.java137 final Menu menu = mock(Menu.class); in onCreateOptionsMenu_noLaunchUri_shouldNotAddInstallInstantAppMenu() local
138 when(menu.add(anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(mock(MenuItem.class)); in onCreateOptionsMenu_noLaunchUri_shouldNotAddInstallInstantAppMenu()
140 mController.onCreateOptionsMenu(menu, null /* inflater */); in onCreateOptionsMenu_noLaunchUri_shouldNotAddInstallInstantAppMenu()
142 verify(menu, never()).add(anyInt(), eq(AppInfoDashboardFragment.INSTALL_INSTANT_APP_MENU), in onCreateOptionsMenu_noLaunchUri_shouldNotAddInstallInstantAppMenu()
149 final Menu menu = mock(Menu.class); in onCreateOptionsMenu_hasLaunchUri_shouldAddForceStop() local
150 when(menu.add(anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(mock(MenuItem.class)); in onCreateOptionsMenu_hasLaunchUri_shouldAddForceStop()
152 mController.onCreateOptionsMenu(menu, null /* inflater */); in onCreateOptionsMenu_hasLaunchUri_shouldAddForceStop()
154 verify(menu).add(anyInt(), eq(AppInfoDashboardFragment.INSTALL_INSTANT_APP_MENU), in onCreateOptionsMenu_hasLaunchUri_shouldAddForceStop()
161 final Menu menu = mock(Menu.class); in onPrepareOptionsMenu_noAppStoreLink_shoulDisableInstallInstantAppMenu() local
163 when(menu.findItem(AppInfoDashboardFragment.INSTALL_INSTANT_APP_MENU)).thenReturn(menuItem); in onPrepareOptionsMenu_noAppStoreLink_shoulDisableInstallInstantAppMenu()
[all …]
DAppInfoDashboardFragmentTest.java148 Menu menu = onPrepareOptionsMenuTestsSetup(); in onPrepareOptionsMenu_setUpdateMenuVisible_byDefaultForSystemApps_shouldBeTrue() local
149 mFragment.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu_setUpdateMenuVisible_byDefaultForSystemApps_shouldBeTrue()
151 verify(menu.findItem(UNINSTALL_UPDATES), times(1)).setVisible(true); in onPrepareOptionsMenu_setUpdateMenuVisible_byDefaultForSystemApps_shouldBeTrue()
157 Menu menu = onPrepareOptionsMenuTestsSetup(); in onPrepareOptionsMenu_setUpdateMenuVisible_ifDisabledByDevice_shouldBeFalse() local
158 mFragment.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu_setUpdateMenuVisible_ifDisabledByDevice_shouldBeFalse()
160 verify(menu.findItem(UNINSTALL_UPDATES), times(1)).setVisible(false); in onPrepareOptionsMenu_setUpdateMenuVisible_ifDisabledByDevice_shouldBeFalse()
165 Menu menu = mock(Menu.class); in onPrepareOptionsMenuTestsSetup() local
168 when(menu.findItem(UNINSTALL_UPDATES)).thenReturn(uninstallUpdatesMenuItem); in onPrepareOptionsMenuTestsSetup()
169 when(menu.findItem(UNINSTALL_ALL_USERS_MENU)).thenReturn(uninstallForAllMenuItem); in onPrepareOptionsMenuTestsSetup()
179 return menu; in onPrepareOptionsMenuTestsSetup()
/packages/apps/TV/src/com/android/tv/menu/
DMenuRowFactory.java17 package com.android.tv.menu;
27 import com.android.tv.menu.MenuRowFactory.Factory;
64 public MenuRow createMenuRow(Menu menu, Class<?> key) { in createMenuRow() argument
67 mMainActivity, mTvView, menu, mMainActivity.getTimeShiftManager()); in createMenuRow()
69 return new ChannelsRow(mMainActivity, menu, mMainActivity.getProgramDataManager()); in createMenuRow()
75 return new PartnerRow(mMainActivity, menu, title, customActions); in createMenuRow()
81 menu, in createMenuRow()
95 Menu menu, in TvOptionsRow() argument
100 menu, in TvOptionsRow()
110 Context context, Menu menu, String title, List<CustomAction> customActions) { in PartnerRow() argument
[all …]
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()
DMenuRow.java17 package com.android.tv.menu;
37 public MenuRow(Context context, Menu menu, int titleResId, int heightResId) { in MenuRow() argument
38 this(context, menu, context.getString(titleResId), heightResId); in MenuRow()
41 public MenuRow(Context context, Menu menu, String title, int heightResId) { in MenuRow() argument
44 mMenu = menu; in MenuRow()
/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/Settings/src/com/android/settings/deviceinfo/
DVolumeOptionMenuController.java90 public void onCreateOptionsMenu(final Menu menu, final MenuInflater inflater) { in onCreateOptionsMenu() argument
91 inflater.inflate(R.menu.storage_volume, menu); in onCreateOptionsMenu()
95 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
96 mRename = menu.findItem(R.id.storage_rename); in onPrepareOptionsMenu()
97 mMount = menu.findItem(R.id.storage_mount); in onPrepareOptionsMenu()
98 mUnmount = menu.findItem(R.id.storage_unmount); in onPrepareOptionsMenu()
99 mFormat = menu.findItem(R.id.storage_format); in onPrepareOptionsMenu()
100 mFormatAsPortable = menu.findItem(R.id.storage_format_as_portable); in onPrepareOptionsMenu()
101 mFormatAsInternal = menu.findItem(R.id.storage_format_as_internal); in onPrepareOptionsMenu()
102 mMigrate = menu.findItem(R.id.storage_migrate); in onPrepareOptionsMenu()
[all …]
/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/DocumentsUI/src/com/android/documentsui/files/
DMenuManager.java113 Menu menu, MenuInflater inflater, SelectionDetails selectionDetails) { in inflateContextMenuForContainer() argument
114 inflater.inflate(R.menu.container_context_menu, menu); in inflateContextMenuForContainer()
115 updateContextMenuForContainer(menu, selectionDetails); in inflateContextMenuForContainer()
120 Menu menu, MenuInflater inflater, SelectionDetails selectionDetails) { in inflateContextMenuForDocs() argument
126 inflater.inflate(R.menu.file_context_menu, menu); in inflateContextMenuForDocs()
127 updateContextMenuForFiles(menu, selectionDetails); in inflateContextMenuForDocs()
132 inflater.inflate(R.menu.dir_context_menu, menu); in inflateContextMenuForDocs()
133 updateContextMenuForDirs(menu, selectionDetails); in inflateContextMenuForDocs()
137 inflater.inflate(R.menu.mixed_context_menu, menu); in inflateContextMenuForDocs()
138 updateContextMenu(menu, selectionDetails); in inflateContextMenuForDocs()
/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.java126 Menu menu = mPopupMenu.getMenu(); in onClick() local
127 createOptionsMenuInternal(menu); in onClick()
128 prepareOptionsMenuInternal(menu); in onClick()
136 public void onDismiss(PopupMenu menu) { in onClick()
308 public boolean onCreateOptionsMenu(android.view.Menu menu) { in onCreateOptionsMenu() argument
309 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
310 createOptionsMenuInternal(menu); in onCreateOptionsMenu()
314 private void createOptionsMenuInternal(Menu menu) { in createOptionsMenuInternal() argument
315 menu.add(Menu.NONE, StkApp.MENU_ID_END_SESSION, 1, R.string.menu_end_session); in createOptionsMenuInternal()
316 menu.add(0, StkApp.MENU_ID_HELP, 2, R.string.help); in createOptionsMenuInternal()
[all …]
DStkLauncherActivity.java181 Menu menu = appService.getMainMenu(i); in addStkMenuListItems() local
183 if (menu != null) { in addStkMenuListItems()
186 stkItemName = new StringBuilder(menu.title == null ? appName : menu.title) in addStkMenuListItems()
191 if (menu.titleIcon != null) { in addStkMenuListItems()
192 icon = menu.titleIcon; in addStkMenuListItems()
193 if (menu.titleIconSelfExplanatory) { in addStkMenuListItems()
/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/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
DArchivedConversationListActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
61 if (super.onCreateOptionsMenu(menu)) { in onCreateOptionsMenu()
64 getMenuInflater().inflate(R.menu.archived_conversation_list_menu, menu); in onCreateOptionsMenu()
65 final MenuItem item = menu.findItem(R.id.action_debug_options); in onCreateOptionsMenu()
/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/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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastListActivity.java223 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onActivityCreated()
224 mode.getMenuInflater().inflate(R.menu.cell_broadcast_list_action_menu, menu); in onActivityCreated()
225 mInformationMenuItem = menu.findItem(R.id.action_detail_info); in onActivityCreated()
264 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onActivityCreated()
311 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() argument
312 menu.add(0, MENU_DELETE_ALL, 0, R.string.menu_delete_all).setIcon( in onCreateOptionsMenu()
314 menu.add(0, MENU_SHOW_ALL_MESSAGES, 0, R.string.show_all_messages); in onCreateOptionsMenu()
315 menu.add(0, MENU_SHOW_REGULAR_MESSAGES, 0, R.string.show_regular_messages); in onCreateOptionsMenu()
318 menu.add(0, MENU_PREFERENCES, 0, R.string.menu_preferences).setIcon( in onCreateOptionsMenu()
324 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DGroupMemberPickerFragment.java274 public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) { in onCreateOptionsMenu() argument
275 super.onCreateOptionsMenu(menu, menuInflater); in onCreateOptionsMenu()
276 menuInflater.inflate(R.menu.group_member_picker, menu); in onCreateOptionsMenu()
280 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
287 setVisible(menu, R.id.menu_search, !isSearchMode && !isSelectionMode); in onPrepareOptionsMenu()
288 setVisible(menu, R.id.menu_select, hasContacts && !isSearchMode && !isSelectionMode); in onPrepareOptionsMenu()
299 private static void setVisible(Menu menu, int id, boolean visible) { in setVisible() argument
300 final MenuItem menuItem = menu.findItem(id); in setVisible()
DMultiSelectPhoneNumbersListFragment.java56 public void onCreateOptionsMenu(Menu menu, final MenuInflater inflater) { in onCreateOptionsMenu() argument
57 super.onCreateOptionsMenu(menu, inflater); in onCreateOptionsMenu()
58 inflater.inflate(R.menu.items_multi_select, menu); in onCreateOptionsMenu()
62 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
63 final MenuItem item = menu.findItem(R.id.menu_send); in onPrepareOptionsMenu()
DMultiSelectEmailAddressesListFragment.java56 public void onCreateOptionsMenu(Menu menu, final MenuInflater inflater) { in onCreateOptionsMenu() argument
57 super.onCreateOptionsMenu(menu, inflater); in onCreateOptionsMenu()
58 inflater.inflate(R.menu.items_multi_select, menu); in onCreateOptionsMenu()
62 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
63 final MenuItem item = menu.findItem(R.id.menu_send); in onPrepareOptionsMenu()
/packages/services/Car/car-lib/api/released/
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 …]
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 …]

12345678910>>...12