Home
last modified time | relevance | path

Searched refs:selectionDetails (Results 1 – 9 of 9) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DMenuManagerTest.java113 private TestSelectionDetails selectionDetails; field in MenuManagerTest
189 selectionDetails = new TestSelectionDetails(); in setUp()
195 selectionDetails.size = 1; in setUp()
228 selectionDetails.canDelete = true; in testActionMenu()
229 selectionDetails.canRename = true; in testActionMenu()
232 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu()
249 selectionDetails.containPartial = true; in testActionMenu_ContainsPartial()
251 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_ContainsPartial()
266 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_CreateArchives_ReflectsFeatureState()
274 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_CreateArchive()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DMenuManager.java113 Menu menu, MenuInflater inflater, SelectionDetails selectionDetails) { in inflateContextMenuForContainer() argument
115 updateContextMenuForContainer(menu, selectionDetails); in inflateContextMenuForContainer()
120 Menu menu, MenuInflater inflater, SelectionDetails selectionDetails) { in inflateContextMenuForDocs() argument
121 final boolean hasDir = selectionDetails.containsDirectories(); in inflateContextMenuForDocs()
122 final boolean hasFile = selectionDetails.containsFiles(); in inflateContextMenuForDocs()
127 updateContextMenuForFiles(menu, selectionDetails); in inflateContextMenuForDocs()
133 updateContextMenuForDirs(menu, selectionDetails); in inflateContextMenuForDocs()
138 updateContextMenu(menu, selectionDetails); in inflateContextMenuForDocs()
163 protected void updateOpenWith(MenuItem openWith, SelectionDetails selectionDetails) { in updateOpenWith() argument
164 Menus.setEnabledAndVisible(openWith, selectionDetails.canOpenWith()); in updateOpenWith()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DMenuManager.java131 Menu menu, MenuInflater inflater, SelectionDetails selectionDetails) { in inflateContextMenuForContainer() argument
136 Menu menu, MenuInflater inflater, SelectionDetails selectionDetails) { in inflateContextMenuForDocs() argument
151 public void updateContextMenuForFiles(Menu menu, SelectionDetails selectionDetails) { in updateContextMenuForFiles() argument
152 assert selectionDetails != null; in updateContextMenuForFiles()
160 updateShare(share, selectionDetails); in updateContextMenuForFiles()
161 updateOpenInContextMenu(open, selectionDetails); in updateContextMenuForFiles()
162 updateOpenWith(openWith, selectionDetails); in updateContextMenuForFiles()
163 updateRename(rename, selectionDetails); in updateContextMenuForFiles()
164 updateViewInOwner(viewInOwner, selectionDetails); in updateContextMenuForFiles()
166 updateContextMenu(menu, selectionDetails); in updateContextMenuForFiles()
[all …]
DActionModeController.java173 mMenuManager.updateActionMenu(mMenu, mScope.selectionDetails); in updateActionMenu()
208 SelectionDetails selectionDetails, EventHandler<MenuItem> menuItemClicker) { in reset() argument
213 mScope.selectionDetails = selectionDetails; in reset()
225 private SelectionDetails selectionDetails; field in ActionModeController.ContentScope
DDragAndDropManager.java84 SelectionDetails selectionDetails, in startDrag() argument
240 SelectionDetails selectionDetails, in startDrag() argument
247 mMustBeCopied = !selectionDetails.canDelete(); in startDrag()
263 if (!selectionDetails.containsFilesInArchive()) { in startDrag()
DInjector.java129 SelectionDetails selectionDetails, EventHandler<MenuItem> menuItemClicker) { in getActionModeController() argument
130 return actionModeController.reset(selectionDetails, menuItemClicker); in getActionModeController()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DMenuManagerTest.java109 private TestSelectionDetails selectionDetails; field in MenuManagerTest
170 selectionDetails = new TestSelectionDetails(); in setUp()
174 selectionDetails.size = 1; in setUp()
189 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu()
203 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_selectAction()
211 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_selectActionTitle()
219 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_getContentAction()
227 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_getContentActionTitle()
235 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_notAllowMultiple()
244 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_AllowMultiple()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DMenuManager.java112 protected void updateSelectAll(MenuItem selectAll, SelectionDetails selectionDetails) { in updateSelectAll() argument
114 && selectionDetails.size() < mFilesCountSupplier.getAsInt() in updateSelectAll()
120 protected void updateDeselectAll(MenuItem deselectAll, SelectionDetails selectionDetails) {
122 && selectionDetails.size() == mFilesCountSupplier.getAsInt()
135 protected void updateSelect(MenuItem select, SelectionDetails selectionDetails) {
138 && selectionDetails.size() > 0);
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDragStartListener.java81 SelectionDetails selectionDetails, in RuntimeDragStartListener() argument
90 mSelectionDetails = selectionDetails; in RuntimeDragStartListener()
172 SelectionDetails selectionDetails, in create() argument
182 selectionDetails, in create()