Searched defs:selectionDetails (Results 1 - 9 of 9) sorted by relevance

/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
H A DMenuManager.java89 protected void updateOpenInActionMode(MenuItem open, SelectionDetails selectionDetails) { argument
90 updateOpen(open, selectionDetails);
94 protected void updateOpenInContextMenu(MenuItem open, SelectionDetails selectionDetails) { argument
95 updateOpen(open, selectionDetails);
98 private void updateOpen(MenuItem open, SelectionDetails selectionDetails) { argument
101 open.setEnabled(selectionDetails.size() > 0);
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DActionModeController.java154 mMenuManager.updateActionMenu(mMenu, mScope.selectionDetails);
196 SelectionDetails selectionDetails, EventHandler<MenuItem> menuItemClicker) {
201 mScope.selectionDetails = selectionDetails;
213 private SelectionDetails selectionDetails; field in class:ActionModeController.ContentScope
195 reset( SelectionDetails selectionDetails, EventHandler<MenuItem> menuItemClicker) argument
H A DInjector.java129 SelectionDetails selectionDetails, EventHandler<MenuItem> menuItemClicker) {
130 return actionModeController.reset(selectionDetails, menuItemClicker);
128 getActionModeController( SelectionDetails selectionDetails, EventHandler<MenuItem> menuItemClicker) argument
H A DDragAndDropManager.java82 SelectionDetails selectionDetails,
231 SelectionDetails selectionDetails,
237 mMustBeCopied = !selectionDetails.canDelete();
253 if (!selectionDetails.containsFilesInArchive()) {
77 startDrag( View v, List<DocumentInfo> srcs, RootInfo root, List<Uri> invalidDest, SelectionDetails selectionDetails, IconHelper iconHelper, @Nullable DocumentInfo parent) argument
226 startDrag( View v, List<DocumentInfo> srcs, RootInfo root, List<Uri> invalidDest, SelectionDetails selectionDetails, IconHelper iconHelper, @Nullable DocumentInfo parent) argument
H A DMenuManager.java102 Menu menu, MenuInflater inflater, SelectionDetails selectionDetails) {
112 * @param selectionDetails
117 public void updateContextMenuForFiles(Menu menu, SelectionDetails selectionDetails) { argument
118 assert selectionDetails != null;
126 updateShare(share, selectionDetails);
127 updateOpenInContextMenu(open, selectionDetails);
128 updateOpenWith(openWith, selectionDetails);
129 updateRename(rename, selectionDetails);
130 updateViewInOwner(viewInOwner, selectionDetails);
132 updateContextMenu(menu, selectionDetails);
101 inflateContextMenuForDocs( Menu menu, MenuInflater inflater, SelectionDetails selectionDetails) argument
146 updateContextMenuForDirs(Menu menu, SelectionDetails selectionDetails) argument
166 updateContextMenu(Menu menu, SelectionDetails selectionDetails) argument
251 updateOpenInActionMode(MenuItem open, SelectionDetails selectionDetails) argument
255 updateOpenWith(MenuItem openWith, SelectionDetails selectionDetails) argument
259 updateOpenInNewWindow( MenuItem openInNewWindow, SelectionDetails selectionDetails) argument
269 updateShare(MenuItem share, SelectionDetails selectionDetails) argument
273 updateDelete(MenuItem delete, SelectionDetails selectionDetails) argument
277 updateRename(MenuItem rename, SelectionDetails selectionDetails) argument
292 updateInspect(MenuItem inspect, SelectionDetails selectionDetails) argument
296 updateViewInOwner(MenuItem view, SelectionDetails selectionDetails) argument
300 updateMoveTo(MenuItem moveTo, SelectionDetails selectionDetails) argument
304 updateCopyTo(MenuItem copyTo, SelectionDetails selectionDetails) argument
308 updateCompress(MenuItem compress, SelectionDetails selectionDetails) argument
312 updateExtractTo(MenuItem extractTo, SelectionDetails selectionDetails) argument
316 updatePasteInto(MenuItem pasteInto, SelectionDetails selectionDetails) argument
324 updateOpenInContextMenu( MenuItem open, SelectionDetails selectionDetails) argument
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
H A DDragStartListener.java89 SelectionDetails selectionDetails,
99 mSelectionDetails = selectionDetails;
185 SelectionDetails selectionDetails,
197 selectionDetails,
84 RuntimeDragStartListener( IconHelper iconHelper, State state, ItemDetailsLookup detailsLookup, SelectionHelper selectionMgr, SelectionDetails selectionDetails, ViewFinder viewFinder, Function<View, String> idFinder, Function<Selection, List<DocumentInfo>> docsConverter, DragAndDropManager dragAndDropManager) argument
181 create( IconHelper iconHelper, Model model, SelectionHelper selectionMgr, SelectionDetails selectionDetails, State state, ItemDetailsLookup detailsLookup, Function<View, String> idFinder, ViewFinder viewFinder, DragAndDropManager dragAndDropManager) argument
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
H A DMenuManager.java121 Menu menu, MenuInflater inflater, SelectionDetails selectionDetails) {
122 final boolean hasDir = selectionDetails.containsDirectories();
123 final boolean hasFile = selectionDetails.containsFiles();
128 updateContextMenuForFiles(menu, selectionDetails);
134 updateContextMenuForDirs(menu, selectionDetails);
139 updateContextMenu(menu, selectionDetails);
167 protected void updateOpenInContextMenu(MenuItem open, SelectionDetails selectionDetails) { argument
169 open.setEnabled(selectionDetails.size() == 1
170 && !selectionDetails.containsPartialFiles());
174 protected void updateOpenWith(MenuItem openWith, SelectionDetails selectionDetails) { argument
120 inflateContextMenuForDocs( Menu menu, MenuInflater inflater, SelectionDetails selectionDetails) argument
180 updateOpenInNewWindow( MenuItem openInNewWindow, SelectionDetails selectionDetails) argument
193 updateMoveTo(MenuItem moveTo, SelectionDetails selectionDetails) argument
199 updateCopyTo(MenuItem copyTo, SelectionDetails selectionDetails) argument
206 updateCompress(MenuItem compress, SelectionDetails selectionDetails) argument
214 updateExtractTo(MenuItem extractTo, SelectionDetails selectionDetails) argument
221 updatePasteInto(MenuItem pasteInto, SelectionDetails selectionDetails) argument
248 updateShare(MenuItem share, SelectionDetails selectionDetails) argument
257 updateDelete(MenuItem delete, SelectionDetails selectionDetails) argument
264 updateRename(MenuItem rename, SelectionDetails selectionDetails) argument
279 updateInspect(MenuItem inspect, SelectionDetails selectionDetails) argument
286 updateViewInOwner(MenuItem view, SelectionDetails selectionDetails) argument
[all...]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
H A DMenuManagerTest.java93 private TestSelectionDetails selectionDetails; field in class:MenuManagerTest
145 selectionDetails = new TestSelectionDetails();
158 mgr.updateActionMenu(testMenu, selectionDetails);
171 mgr.updateActionMenu(testMenu, selectionDetails);
180 mgr.updateActionMenu(testMenu, selectionDetails);
311 mgr.updateContextMenuForFiles(testMenu, selectionDetails);
324 selectionDetails.canPasteInto = true;
325 mgr.updateContextMenuForDirs(testMenu, selectionDetails);
338 selectionDetails.containDirectories = true;
339 selectionDetails
[all...]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
H A DMenuManagerTest.java106 private TestSelectionDetails selectionDetails; field in class:MenuManagerTest
175 selectionDetails = new TestSelectionDetails();
206 selectionDetails.canDelete = true;
207 selectionDetails.canRename = true;
210 mgr.updateActionMenu(testMenu, selectionDetails);
224 selectionDetails.containPartial = true;
226 mgr.updateActionMenu(testMenu, selectionDetails);
241 mgr.updateActionMenu(testMenu, selectionDetails);
250 mgr.updateActionMenu(testMenu, selectionDetails);
258 mgr.updateActionMenu(testMenu, selectionDetails);
[all...]

Completed in 2431 milliseconds