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.java110 private TestSelectionDetails selectionDetails; field in MenuManagerTest
182 selectionDetails = new TestSelectionDetails(); in setUp()
213 selectionDetails.canDelete = true; in testActionMenu()
214 selectionDetails.canRename = true; in testActionMenu()
217 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu()
233 selectionDetails.containPartial = true; in testActionMenu_ContainsPartial()
235 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_ContainsPartial()
250 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_CreateArchives_ReflectsFeatureState()
259 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_CreateArchive()
267 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_NoCreateArchive()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DMenuManager.java113 Menu menu, MenuInflater inflater, SelectionDetails selectionDetails) { in inflateContextMenuForDocs() argument
114 final boolean hasDir = selectionDetails.containsDirectories(); in inflateContextMenuForDocs()
115 final boolean hasFile = selectionDetails.containsFiles(); in inflateContextMenuForDocs()
120 updateContextMenuForFiles(menu, selectionDetails); in inflateContextMenuForDocs()
126 updateContextMenuForDirs(menu, selectionDetails); in inflateContextMenuForDocs()
131 updateContextMenu(menu, selectionDetails); in inflateContextMenuForDocs()
159 protected void updateOpenWith(MenuItem openWith, SelectionDetails selectionDetails) { in updateOpenWith() argument
161 openWith.setEnabled(selectionDetails.canOpenWith()); in updateOpenWith()
166 MenuItem openInNewWindow, SelectionDetails selectionDetails) { in updateOpenInNewWindow() argument
168 openInNewWindow.setEnabled(selectionDetails.size() == 1 in updateOpenInNewWindow()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DMenuManager.java122 Menu menu, MenuInflater inflater, SelectionDetails selectionDetails) { in inflateContextMenuForDocs() argument
137 public void updateContextMenuForFiles(Menu menu, SelectionDetails selectionDetails) { in updateContextMenuForFiles() argument
138 assert selectionDetails != null; in updateContextMenuForFiles()
146 updateShare(share, selectionDetails); in updateContextMenuForFiles()
147 updateOpenInContextMenu(open, selectionDetails); in updateContextMenuForFiles()
148 updateOpenWith(openWith, selectionDetails); in updateContextMenuForFiles()
149 updateRename(rename, selectionDetails); in updateContextMenuForFiles()
150 updateViewInOwner(viewInOwner, selectionDetails); in updateContextMenuForFiles()
152 updateContextMenu(menu, selectionDetails); in updateContextMenuForFiles()
166 public void updateContextMenuForDirs(Menu menu, SelectionDetails selectionDetails) { in updateContextMenuForDirs() argument
[all …]
DActionModeController.java163 mMenuManager.updateActionMenu(mMenu, mScope.selectionDetails); in updateActionMenu()
205 SelectionDetails selectionDetails, EventHandler<MenuItem> menuItemClicker) { in reset() argument
210 mScope.selectionDetails = selectionDetails; in reset()
222 private SelectionDetails selectionDetails; field in ActionModeController.ContentScope
DDragAndDropManager.java83 SelectionDetails selectionDetails, in startDrag() argument
232 SelectionDetails selectionDetails, in startDrag() argument
238 mMustBeCopied = !selectionDetails.canDelete(); in startDrag()
254 if (!selectionDetails.containsFilesInArchive()) { in startDrag()
DInjector.java131 SelectionDetails selectionDetails, EventHandler<MenuItem> menuItemClicker) { in getActionModeController() argument
132 return actionModeController.reset(selectionDetails, menuItemClicker); in getActionModeController()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DMenuManagerTest.java106 private TestSelectionDetails selectionDetails; field in MenuManagerTest
162 selectionDetails = new TestSelectionDetails(); in setUp()
175 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu()
189 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_selectAction()
197 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_selectActionTitle()
205 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_getContentAction()
213 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_getContentActionTitle()
221 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_notAllowMultiple()
229 mgr.updateActionMenu(testMenu, selectionDetails); in testActionMenu_AllowMultiple()
385 mgr.updateContextMenuForFiles(testMenu, selectionDetails); in testContextMenu_OnFile()
[all …]
/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()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DMenuManager.java111 protected void updateSelect(MenuItem select, SelectionDetails selectionDetails) { in updateSelect() argument
114 select.setEnabled(selectionDetails.size() > 0); in updateSelect()