Home
last modified time | relevance | path

Searched refs:findItem (Results 1 – 25 of 81) sorted by relevance

1234

/packages/apps/DocumentsUI/src/com/android/documentsui/
DMenuManager.java63 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()
72 updateCompress(menu.findItem(R.id.action_menu_compress), selection); in updateActionMenu()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DMenuManagerTest.java122 dirShare = testMenu.findItem(R.id.dir_menu_share); in setUp()
123 dirOpen = testMenu.findItem(R.id.dir_menu_open); in setUp()
124 dirOpenWith = testMenu.findItem(R.id.dir_menu_open_with); in setUp()
125 dirCutToClipboard = testMenu.findItem(R.id.dir_menu_cut_to_clipboard); in setUp()
126 dirCopyToClipboard = testMenu.findItem(R.id.dir_menu_copy_to_clipboard); in setUp()
127 dirPasteFromClipboard = testMenu.findItem(R.id.dir_menu_paste_from_clipboard); in setUp()
128 dirCreateDir = testMenu.findItem(R.id.dir_menu_create_dir); in setUp()
129 dirSelectAll = testMenu.findItem(R.id.dir_menu_select_all); in setUp()
130 mDirDeselectAll = testMenu.findItem(R.id.dir_menu_deselect_all); in setUp()
131 dirRename = testMenu.findItem(R.id.dir_menu_rename); in setUp()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DMenuManagerTest.java130 dirShare = testMenu.findItem(R.id.dir_menu_share); in setUp()
131 dirOpen = testMenu.findItem(R.id.dir_menu_open); in setUp()
132 dirOpenWith = testMenu.findItem(R.id.dir_menu_open_with); in setUp()
133 dirCutToClipboard = testMenu.findItem(R.id.dir_menu_cut_to_clipboard); in setUp()
134 dirCopyToClipboard = testMenu.findItem(R.id.dir_menu_copy_to_clipboard); in setUp()
135 dirPasteFromClipboard = testMenu.findItem(R.id.dir_menu_paste_from_clipboard); in setUp()
136 dirCreateDir = testMenu.findItem(R.id.dir_menu_create_dir); in setUp()
137 dirSelectAll = testMenu.findItem(R.id.dir_menu_select_all); in setUp()
138 mDirDeselectAll = testMenu.findItem(R.id.dir_menu_deselect_all); in setUp()
139 dirRename = testMenu.findItem(R.id.dir_menu_rename); in setUp()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DVolumeOptionMenuController.java96 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()
103 mFree = menu.findItem(R.id.storage_free); in onPrepareOptionsMenu()
104 mForget = menu.findItem(R.id.storage_forget); in onPrepareOptionsMenu()
/packages/apps/Dialer/java/com/android/dialer/speeddial/
DContextMenu.java82 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/
DMultiChoiceManager.java134 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/
DMultiSelectActionModeCallback.java88 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()
DConversationListFragment.java311 menu.findItem(R.id.action_start_new_conversation); in onPrepareOptionsMenu()
321 final MenuItem archive = menu.findItem(R.id.action_show_archived); in onPrepareOptionsMenu()
334 mShowBlockedMenuItem = menu.findItem(R.id.action_show_blocked_contacts); in onCreateOptionsMenu()
/packages/services/Telephony/src/com/android/phone/settings/fdn/
DFdnList.java155 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/
DConversationFragment.java286 menu.findItem(R.id.action_download).setVisible(data.getShowDownloadMessage());
287 menu.findItem(R.id.action_send).setVisible(data.getShowResendMessage());
290 menu.findItem(R.id.share_message_menu).setVisible(data.getCanForwardMessage());
291 menu.findItem(R.id.save_attachment).setVisible(mSelectedAttachment != null);
292 menu.findItem(R.id.forward_message_menu).setVisible(data.getCanForwardMessage());
297 menu.findItem(R.id.copy_text).setVisible(data.getCanCopyMessageToClipboard());
748 menu.findItem(R.id.action_people_and_options).setEnabled(data.getParticipantsLoaded()); in onCreateOptionsMenu()
754 menu.findItem(R.id.action_add_contact).setVisible(addContactActionVisible); in onCreateOptionsMenu()
758 menu.findItem(R.id.action_archive).setVisible(!isArchived); in onCreateOptionsMenu()
759 menu.findItem(R.id.action_unarchive).setVisible(isArchived); in onCreateOptionsMenu()
[all …]
/packages/apps/Dialer/java/com/android/dialer/main/impl/toolbar/
DMainToolbarMenu.java36 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/manageapplications/
DManageApplicationsTest.java132 assertThat(mMenu.findItem(R.id.reset_app_preferences).isVisible()).isTrue(); in updateMenu_mainListType_showAppReset()
142 assertThat(mMenu.findItem(R.id.reset_app_preferences).isVisible()).isFalse(); in updateMenu_batteryListType_hideAppReset()
152 assertThat(mMenu.findItem(R.id.sort_order_recent_notification).isVisible()).isFalse(); in updateMenu_hideNotificationOptions()
153 assertThat(mMenu.findItem(R.id.sort_order_frequent_notification).isVisible()).isFalse(); in updateMenu_hideNotificationOptions()
162 when(mMenu.findItem(R.id.search_app_list_menu)).thenReturn(searchMenu); in onCreateOptionsMenu_shouldSetSearchQueryListener()
179 when(mMenu.findItem(R.id.search_app_list_menu)).thenReturn(searchMenu); in onCreateOptionsMenu_hasExpandSearchFlag_shouldExpandSearchView()
601 when(mMenu.findItem(anyInt())).thenAnswer(invocation -> { in setUpOptionMenus()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DManageApplications.java664 final MenuItem searchMenuItem = menu.findItem(R.id.search_app_list_menu); in onCreateOptionsMenu()
742 mOptionsMenu.findItem(R.id.advanced).setVisible(false); in updateOptionsMenu()
744 mOptionsMenu.findItem(R.id.sort_order_alpha).setVisible(mListType == LIST_TYPE_STORAGE in updateOptionsMenu()
746 mOptionsMenu.findItem(R.id.sort_order_size).setVisible(mListType == LIST_TYPE_STORAGE in updateOptionsMenu()
749 mOptionsMenu.findItem(R.id.show_system).setVisible(!mShowSystem in updateOptionsMenu()
751 mOptionsMenu.findItem(R.id.hide_system).setVisible(mShowSystem in updateOptionsMenu()
754 mOptionsMenu.findItem(R.id.reset_app_preferences).setVisible(mListType == LIST_TYPE_MAIN); in updateOptionsMenu()
757 mOptionsMenu.findItem(R.id.sort_order_recent_notification).setVisible(false); in updateOptionsMenu()
758 mOptionsMenu.findItem(R.id.sort_order_frequent_notification).setVisible(false); in updateOptionsMenu()
759 final MenuItem searchItem = mOptionsMenu.findItem(MENU_SEARCH); in updateOptionsMenu()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppInfoDashboardFragmentTest.java151 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/
DRunningServices.java111 mOptionsMenu.findItem(SHOW_RUNNING_SERVICES).setVisible(showingBackground); in updateOptionsMenu()
112 mOptionsMenu.findItem(SHOW_BACKGROUND_PROCESSES).setVisible(!showingBackground); in updateOptionsMenu()
/packages/apps/Gallery/src/com/android/camera/
DImageLoader.java63 int index = findItem(image); in cancel()
74 private int findItem(IImage image) { in findItem() method in ImageLoader
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactPickerFragment.java345 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/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastListActivity.java225 mInformationMenuItem = menu.findItem(R.id.action_detail_info); in onActivityCreated()
331 menu.findItem(MENU_DELETE_ALL).setVisible(!mAdapter.isEmpty() && !isTestingMode); in onPrepareOptionsMenu()
332 menu.findItem(MENU_SHOW_ALL_MESSAGES).setVisible(isTestingMode in onPrepareOptionsMenu()
334 menu.findItem(MENU_SHOW_REGULAR_MESSAGES).setVisible(isTestingMode in onPrepareOptionsMenu()
/packages/apps/Messaging/src/com/android/messaging/ui/photoviewer/
DBuglePhotoViewController.java135 mShareItem = menu.findItem(R.id.action_share); in onCreateOptionsMenu()
139 mSaveItem = menu.findItem(R.id.action_save); in onCreateOptionsMenu()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DPieRenderer.java419 PieItem item = findItem(polar); in onTouchEvent()
433 item = findItem(polar); in onTouchEvent()
465 PieItem item = findItem(polar); in onTouchEvent()
562 private PieItem findItem(PointF polar) { in findItem() method in PieRenderer
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DPieRenderer.java420 PieItem item = findItem(polar); in onTouchEvent()
434 item = findItem(polar); in onTouchEvent()
465 PieItem item = findItem(polar); in onTouchEvent()
561 private PieItem findItem(PointF polar) { in findItem() method in PieRenderer
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
DIngestActivity.java190 mActionMenuSwitcherItem = menu.findItem(R.id.ingest_switch_view);
232 mMenuSwitcherItem = menu.findItem(R.id.ingest_switch_view); in onCreateOptionsMenu()
233 menu.findItem(R.id.ingest_import_items).setVisible(false); in onCreateOptionsMenu()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DGalleryGridView.java160 final MenuItem toggleMultiSelect = menu.findItem(R.id.action_multiselect); in onCreateOptionsMenu()
161 final MenuItem confirmMultiSelect = menu.findItem(R.id.action_confirm_multiselect); in onCreateOptionsMenu()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DFilterShowActivity.java988 MenuItem showState = menu.findItem(R.id.showImageStateButton); in onCreateOptionsMenu()
994 mShareActionProvider = (ShareActionProvider) menu.findItem(R.id.menu_share) in onCreateOptionsMenu()
1007 MenuItem undoItem = mMenu.findItem(R.id.undoButton); in setupMenu()
1008 MenuItem redoItem = mMenu.findItem(R.id.redoButton); in setupMenu()
1009 MenuItem resetItem = mMenu.findItem(R.id.resetHistoryButton); in setupMenu()
1010 MenuItem printItem = mMenu.findItem(R.id.printButton); in setupMenu()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DQuickContactActivity.java2318 final MenuItem starredMenuItem = menu.findItem(R.id.menu_star); in onPrepareOptionsMenu()
2324 final MenuItem editMenuItem = menu.findItem(R.id.menu_edit); in onPrepareOptionsMenu()
2338 final MenuItem joinMenuItem = menu.findItem(R.id.menu_join); in onPrepareOptionsMenu()
2345 final MenuItem linkedContactsMenuItem = menu.findItem(R.id.menu_linked_contacts); in onPrepareOptionsMenu()
2349 final MenuItem deleteMenuItem = menu.findItem(R.id.menu_delete); in onPrepareOptionsMenu()
2352 final MenuItem shareMenuItem = menu.findItem(R.id.menu_share); in onPrepareOptionsMenu()
2355 final MenuItem shortcutMenuItem = menu.findItem(R.id.menu_create_contact_shortcut); in onPrepareOptionsMenu()
2360 final MenuItem ringToneMenuItem = menu.findItem(R.id.menu_set_ringtone); in onPrepareOptionsMenu()
2363 final MenuItem sendToVoiceMailMenuItem = menu.findItem(R.id.menu_send_to_voicemail); in onPrepareOptionsMenu()
2371 final MenuItem helpMenu = menu.findItem(R.id.menu_help); in onPrepareOptionsMenu()

1234