/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | MenuManager.java | 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() 68 updateExtractTo(menu.findItem(R.id.action_menu_extract_to), selection); in updateActionMenu() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/ |
D | MenuManagerTest.java | 117 dirShare = testMenu.findItem(R.id.dir_menu_share); in setUp() 118 dirOpen = testMenu.findItem(R.id.dir_menu_open); in setUp() 119 dirOpenWith = testMenu.findItem(R.id.dir_menu_open_with); in setUp() 120 dirCutToClipboard = testMenu.findItem(R.id.dir_menu_cut_to_clipboard); in setUp() 121 dirCopyToClipboard = testMenu.findItem(R.id.dir_menu_copy_to_clipboard); in setUp() 122 dirPasteFromClipboard = testMenu.findItem(R.id.dir_menu_paste_from_clipboard); in setUp() 123 dirCreateDir = testMenu.findItem(R.id.dir_menu_create_dir); in setUp() 124 dirSelectAll = testMenu.findItem(R.id.dir_menu_select_all); in setUp() 125 dirRename = testMenu.findItem(R.id.dir_menu_rename); in setUp() 126 dirDelete = testMenu.findItem(R.id.dir_menu_delete); in setUp() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/ |
D | MenuManagerTest.java | 126 dirShare = testMenu.findItem(R.id.dir_menu_share); in setUp() 127 dirOpen = testMenu.findItem(R.id.dir_menu_open); in setUp() 128 dirOpenWith = testMenu.findItem(R.id.dir_menu_open_with); in setUp() 129 dirCutToClipboard = testMenu.findItem(R.id.dir_menu_cut_to_clipboard); in setUp() 130 dirCopyToClipboard = testMenu.findItem(R.id.dir_menu_copy_to_clipboard); in setUp() 131 dirPasteFromClipboard = testMenu.findItem(R.id.dir_menu_paste_from_clipboard); in setUp() 132 dirCreateDir = testMenu.findItem(R.id.dir_menu_create_dir); in setUp() 133 dirSelectAll = testMenu.findItem(R.id.dir_menu_select_all); in setUp() 134 dirRename = testMenu.findItem(R.id.dir_menu_rename); in setUp() 135 dirDelete = testMenu.findItem(R.id.dir_menu_delete); in setUp() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | SelectedConversationsActionMenu.java | 169 markConversationsRead(mActionMode.getMenu().findItem(R.id.read).isVisible()); in onActionItemClicked() 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() 426 final MenuItem changeFolders = menu.findItem(R.id.change_folders); in onPrepareActionMode() 434 final MenuItem archive = menu.findItem(R.id.archive); in onPrepareActionMode() [all …]
|
D | WebViewContextMenu.java | 282 menu.findItem(getMenuResIdForMenuType(MenuType.DIAL_MENU)); in onCreateContextMenu() 294 menu.findItem(getMenuResIdForMenuType(MenuType.SMS_MENU)); in onCreateContextMenu() 309 menu.findItem(getMenuResIdForMenuType(MenuType.ADD_CONTACT_MENU)); in onCreateContextMenu() 314 menu.findItem(getMenuResIdForMenuType(MenuType.COPY_PHONE_MENU)). in onCreateContextMenu() 323 menu.findItem(getMenuResIdForMenuType(MenuType.EMAIL_CONTACT_MENU)) in onCreateContextMenu() 325 menu.findItem(getMenuResIdForMenuType(MenuType.COPY_MAIL_MENU)). in onCreateContextMenu() 339 menu.findItem(getMenuResIdForMenuType(MenuType.MAP_MENU)); in onCreateContextMenu() 344 menu.findItem(getMenuResIdForMenuType(MenuType.COPY_GEO_MENU)). in onCreateContextMenu() 369 menu.findItem(getMenuResIdForMenuType(MenuType.SHARE_LINK_MENU)).setVisible( in setupAnchorMenu() 378 menu.findItem(getMenuResIdForMenuType(MenuType.COPY_LINK_MENU)). in setupAnchorMenu() [all …]
|
D | MessageAttachmentBar.java | 232 menu.findItem(R.id.preview_attachment).setVisible(shouldShowPreview()); in onClick() 233 menu.findItem(R.id.save_attachment).setVisible(shouldShowSave()); in onClick() 234 menu.findItem(R.id.download_again).setVisible(shouldShowDownloadAgain()); in onClick() 235 menu.findItem(R.id.attachment_extra_option1).setVisible(shouldShowExtraOption1()); in onClick()
|
D | EmailCopyContextMenu.java | 106 menu.findItem(SEND_EMAIL_ITEM).setIntent(new Intent(Intent.ACTION_VIEW, in onCreateContextMenu() 108 menu.findItem(COPY_CONTACT_ITEM).setOnMenuItemClickListener( in onCreateContextMenu()
|
/packages/apps/Dialer/java/com/android/dialer/speeddial/ |
D | ContextMenu.java | 82 getMenu().findItem(R.id.voice_call_container).setVisible(voiceChannel != null); in ContextMenu() 83 getMenu().findItem(R.id.video_call_container).setVisible(videoChannel != null); in ContextMenu() 84 getMenu().findItem(R.id.send_message_container).setVisible(voiceChannel != null); in ContextMenu() 93 getMenu().findItem(R.id.starred_contact_context_menu_title).setTitle(secondaryInfo); in ContextMenu() 94 getMenu().findItem(R.id.starred_contact_context_menu_title).setVisible(true); in ContextMenu() 96 getMenu().findItem(R.id.starred_contact_context_menu_title).setVisible(false); in ContextMenu()
|
/packages/apps/Gallery2/src/com/android/photos/ |
D | MultiChoiceManager.java | 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() 157 MenuItem menuItem = menu.findItem(R.id.menu_share); in onCreateActionMode()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
D | MultiSelectActionModeCallback.java | 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()
|
/packages/apps/UnifiedEmail/src/com/android/mail/photo/ |
D | MailPhotoViewController.java | 117 mSaveItem = mMenu.findItem(R.id.menu_save); in onCreateOptionsMenu() 118 mSaveAllItem = mMenu.findItem(R.id.menu_save_all); in onCreateOptionsMenu() 119 mShareItem = mMenu.findItem(R.id.menu_share); in onCreateOptionsMenu() 120 mShareAllItem = mMenu.findItem(R.id.menu_share_all); in onCreateOptionsMenu() 121 mPrintItem = mMenu.findItem(R.id.menu_print); in onCreateOptionsMenu() 122 mDownloadAgainItem = mMenu.findItem(R.id.menu_download_again); in onCreateOptionsMenu() 123 mExtraOption1Item = mMenu.findItem(R.id.attachment_extra_option1); in onCreateOptionsMenu()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/ |
D | ManageApplicationsTest.java | 124 assertThat(mMenu.findItem(R.id.reset_app_preferences).isVisible()).isTrue(); in updateMenu_mainListType_showAppReset() 134 assertThat(mMenu.findItem(R.id.reset_app_preferences).isVisible()).isFalse(); in updateMenu_batteryListType_hideAppReset() 144 assertThat(mMenu.findItem(R.id.sort_order_recent_notification).isVisible()).isFalse(); in updateMenu_hideNotificationOptions() 145 assertThat(mMenu.findItem(R.id.sort_order_frequent_notification).isVisible()).isFalse(); in updateMenu_hideNotificationOptions() 170 when(mMenu.findItem(R.id.search_app_list_menu)).thenReturn(searchMenu); in onCreateOptionsMenu_shouldSetSearchQueryListener() 187 when(mMenu.findItem(R.id.search_app_list_menu)).thenReturn(searchMenu); in onCreateOptionsMenu_hasExpandSearchFlag_shouldExpandSearchView() 498 when(mMenu.findItem(anyInt())).thenAnswer(invocation -> { in setUpOptionMenus()
|
/packages/services/Telephony/src/com/android/phone/settings/fdn/ |
D | FdnList.java | 155 menu.findItem(MENU_ADD).setVisible(true); in onPrepareOptionsMenu() 156 menu.findItem(MENU_EDIT).setVisible(hasSelection); in onPrepareOptionsMenu() 157 menu.findItem(MENU_DELETE).setVisible(hasSelection); in onPrepareOptionsMenu() 158 menu.findItem(MENU_DIAL).setVisible(hasSelection && mFdnDialDirectlySupported); in onPrepareOptionsMenu()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationFragment.java | 284 menu.findItem(R.id.action_download).setVisible(data.getShowDownloadMessage()); 285 menu.findItem(R.id.action_send).setVisible(data.getShowResendMessage()); 288 menu.findItem(R.id.share_message_menu).setVisible(data.getCanForwardMessage()); 289 menu.findItem(R.id.save_attachment).setVisible(mSelectedAttachment != null); 290 menu.findItem(R.id.forward_message_menu).setVisible(data.getCanForwardMessage()); 295 menu.findItem(R.id.copy_text).setVisible(data.getCanCopyMessageToClipboard()); 745 menu.findItem(R.id.action_people_and_options).setEnabled(data.getParticipantsLoaded()); in onCreateOptionsMenu() 751 menu.findItem(R.id.action_add_contact).setVisible(addContactActionVisible); in onCreateOptionsMenu() 755 menu.findItem(R.id.action_archive).setVisible(!isArchived); in onCreateOptionsMenu() 756 menu.findItem(R.id.action_unarchive).setVisible(isArchived); in onCreateOptionsMenu() [all …]
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/ |
D | ContactDetailsFragment.java | 101 MenuItem defaultNumberMenuItem = menu.findItem(R.id.menu_contact_default_number); in onCreateOptionsMenu() 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/Dialer/java/com/android/dialer/main/impl/toolbar/ |
D | MainToolbarMenu.java | 36 getMenu().findItem(R.id.clear_frequents).setVisible(show); in showClearFrequents() 40 MenuItem simulatorMenuItem = getMenu().findItem(R.id.menu_simulator_submenu); in maybeShowSimulator()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppInfoDashboardFragmentTest.java | 151 verify(menu.findItem(UNINSTALL_UPDATES), times(1)).setVisible(true); in onPrepareOptionsMenu_setUpdateMenuVisible_byDefaultForSystemApps_shouldBeTrue() 160 verify(menu.findItem(UNINSTALL_UPDATES), times(1)).setVisible(false); in onPrepareOptionsMenu_setUpdateMenuVisible_ifDisabledByDevice_shouldBeFalse() 168 when(menu.findItem(UNINSTALL_UPDATES)).thenReturn(uninstallUpdatesMenuItem); in onPrepareOptionsMenuTestsSetup() 169 when(menu.findItem(UNINSTALL_ALL_USERS_MENU)).thenReturn(uninstallForAllMenuItem); in onPrepareOptionsMenuTestsSetup()
|
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/ |
D | ManageApplications.java | 613 final MenuItem searchMenuItem = menu.findItem(R.id.search_app_list_menu); in onCreateOptionsMenu() 671 mOptionsMenu.findItem(R.id.advanced).setVisible(false); in updateOptionsMenu() 673 mOptionsMenu.findItem(R.id.sort_order_alpha).setVisible(mListType == LIST_TYPE_STORAGE in updateOptionsMenu() 675 mOptionsMenu.findItem(R.id.sort_order_size).setVisible(mListType == LIST_TYPE_STORAGE in updateOptionsMenu() 678 mOptionsMenu.findItem(R.id.show_system).setVisible(!mShowSystem in updateOptionsMenu() 680 mOptionsMenu.findItem(R.id.hide_system).setVisible(mShowSystem in updateOptionsMenu() 683 mOptionsMenu.findItem(R.id.reset_app_preferences).setVisible(mListType == LIST_TYPE_MAIN); in updateOptionsMenu() 686 mOptionsMenu.findItem(R.id.sort_order_recent_notification).setVisible(false); in updateOptionsMenu() 687 mOptionsMenu.findItem(R.id.sort_order_frequent_notification).setVisible(false); in updateOptionsMenu()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/manageapplications/ |
D | ManageApplications.java | 603 final MenuItem searchMenuItem = menu.findItem(R.id.search_app_list_menu); in onCreateOptionsMenu() 658 mOptionsMenu.findItem(R.id.advanced).setVisible(false); in updateOptionsMenu() 660 mOptionsMenu.findItem(R.id.sort_order_alpha).setVisible(mListType == LIST_TYPE_STORAGE in updateOptionsMenu() 662 mOptionsMenu.findItem(R.id.sort_order_size).setVisible(mListType == LIST_TYPE_STORAGE in updateOptionsMenu() 665 mOptionsMenu.findItem(R.id.show_system).setVisible(!mShowSystem in updateOptionsMenu() 667 mOptionsMenu.findItem(R.id.hide_system).setVisible(mShowSystem in updateOptionsMenu() 670 mOptionsMenu.findItem(R.id.reset_app_preferences).setVisible(mListType == LIST_TYPE_MAIN); in updateOptionsMenu() 673 mOptionsMenu.findItem(R.id.sort_order_recent_notification).setVisible(false); in updateOptionsMenu() 674 mOptionsMenu.findItem(R.id.sort_order_frequent_notification).setVisible(false); in updateOptionsMenu()
|
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
D | ContactPickerFragment.java | 345 final MenuItem addMoreParticipantsItem = menu.findItem( in updateVisualsForContactPickingMode() 347 final MenuItem confirmParticipantsItem = menu.findItem( in updateVisualsForContactPickingMode() 418 final MenuItem keypadToggleItem = menu.findItem(R.id.action_ime_dialpad_toggle); in updateTextInputButtonsVisibility() 419 final MenuItem deleteTextItem = menu.findItem(R.id.action_delete_text); in updateTextInputButtonsVisibility()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | PrivateVolumeSettings.java | 388 final MenuItem rename = menu.findItem(R.id.storage_rename); in onPrepareOptionsMenu() 389 final MenuItem mount = menu.findItem(R.id.storage_mount); in onPrepareOptionsMenu() 390 final MenuItem unmount = menu.findItem(R.id.storage_unmount); in onPrepareOptionsMenu() 391 final MenuItem format = menu.findItem(R.id.storage_format); in onPrepareOptionsMenu() 392 final MenuItem migrate = menu.findItem(R.id.storage_migrate); in onPrepareOptionsMenu() 393 final MenuItem manage = menu.findItem(R.id.storage_free); in onPrepareOptionsMenu()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | PrivateVolumeSettings.java | 388 final MenuItem rename = menu.findItem(R.id.storage_rename); in onPrepareOptionsMenu() 389 final MenuItem mount = menu.findItem(R.id.storage_mount); in onPrepareOptionsMenu() 390 final MenuItem unmount = menu.findItem(R.id.storage_unmount); in onPrepareOptionsMenu() 391 final MenuItem format = menu.findItem(R.id.storage_format); in onPrepareOptionsMenu() 392 final MenuItem migrate = menu.findItem(R.id.storage_migrate); in onPrepareOptionsMenu() 393 final MenuItem manage = menu.findItem(R.id.storage_free); in onPrepareOptionsMenu()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | RunningServices.java | 107 mOptionsMenu.findItem(SHOW_RUNNING_SERVICES).setVisible(showingBackground); in updateOptionsMenu() 108 mOptionsMenu.findItem(SHOW_BACKGROUND_PROCESSES).setVisible(!showingBackground); in updateOptionsMenu()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | RunningServices.java | 107 mOptionsMenu.findItem(SHOW_RUNNING_SERVICES).setVisible(showingBackground); in updateOptionsMenu() 108 mOptionsMenu.findItem(SHOW_BACKGROUND_PROCESSES).setVisible(!showingBackground); in updateOptionsMenu()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageLoader.java | 63 int index = findItem(image); in cancel() 74 private int findItem(IImage image) { in findItem() method in ImageLoader
|