/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | MenuManager.java | 58 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/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | InstantAppButtonsPreferenceControllerTest.java | 132 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 …]
|
D | AppInfoDashboardFragmentTest.java | 148 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/ |
D | MenuRowFactory.java | 17 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 …]
|
D | ItemListRow.java | 17 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()
|
D | MenuRow.java | 17 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/ |
D | MenuExecutor.java | 168 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/DocumentsUI/src/com/android/documentsui/files/ |
D | MenuManager.java | 106 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/ |
D | FdnList.java | 134 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/Stk/src/com/android/stk/ |
D | StkInputActivity.java | 126 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 …]
|
D | StkLauncherActivity.java | 181 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/ |
D | MultiChoiceManager.java | 133 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/ |
D | BluetoothOppTransferHistory.java | 151 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/Gallery/src/com/android/camera/ |
D | MenuHelper.java | 106 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 …]
|
D | ImageGallery.java | 166 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/ |
D | MultiSelectActionModeCallback.java | 86 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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastListActivity.java | 225 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() argument 226 menu.add(0, MENU_DELETE_ALL, 0, R.string.menu_delete_all).setIcon( in onCreateOptionsMenu() 228 menu.add(0, MENU_SHOW_ALL_MESSAGES, 0, R.string.show_all_messages); in onCreateOptionsMenu() 229 menu.add(0, MENU_SHOW_REGULAR_MESSAGES, 0, R.string.show_regular_messages); in onCreateOptionsMenu() 233 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument 240 menu.findItem(MENU_DELETE_ALL).setVisible(!mAdapter.isEmpty() && !isTestingMode); in onPrepareOptionsMenu() 241 menu.findItem(MENU_SHOW_ALL_MESSAGES).setVisible(isTestingMode in onPrepareOptionsMenu() 243 menu.findItem(MENU_SHOW_REGULAR_MESSAGES).setVisible(isTestingMode in onPrepareOptionsMenu() 316 (menu, v, menuInfo) -> { 317 menu.setHeaderTitle(R.string.message_options); [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | Help.java | 38 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/ |
D | GroupMemberPickerFragment.java | 270 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()
|
D | MultiSelectPhoneNumbersListFragment.java | 56 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()
|
D | MultiSelectEmailAddressesListFragment.java | 56 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/ |
D | 2.txt | 64 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 …]
|
D | 1.txt | 64 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/TvSettings/Settings/src/com/android/tv/settings/ |
D | SettingsPreferenceFragment.java | 132 public void onCreateOptionsMenu(final Menu menu, final MenuInflater inflater) { in onCreateOptionsMenu() argument 133 mLifecycle.onCreateOptionsMenu(menu, inflater); in onCreateOptionsMenu() 134 super.onCreateOptionsMenu(menu, inflater); in onCreateOptionsMenu() 139 public void onPrepareOptionsMenu(final Menu menu) { in onPrepareOptionsMenu() argument 140 mLifecycle.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu() 141 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | BugleActionBarActivity.java | 177 public boolean onCreateOptionsMenu(final Menu menu) { in onCreateOptionsMenu() argument 178 mActionBarMenu = menu; in onCreateOptionsMenu() 180 mActionMode.getCallback().onCreateActionMode(mActionMode, menu)) { in onCreateOptionsMenu() 187 public boolean onPrepareOptionsMenu(final Menu menu) { in onPrepareOptionsMenu() argument 188 mActionBarMenu = menu; in onPrepareOptionsMenu() 190 mActionMode.getCallback().onPrepareActionMode(mActionMode, menu)) { in onPrepareOptionsMenu() 193 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
|