/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | SharedInputHandlerTest.java | 44 private SelectionTracker<String> mSelectionMgr = SelectionHelpers.createTestInstance(); field in SharedInputHandlerTest 63 mSelectionMgr, in setUp() 81 mSelectionMgr.select("1"); in testBackButton_CancelsSearch() 97 assertEquals(mSelectionMgr.getSelection().size(), 1); in testBackButton_CancelsSearch() 104 mSelectionMgr.select("1"); in testBackButton_ClearsSelection() 105 assertEquals(mSelectionMgr.getSelection().size(), 1); in testBackButton_ClearsSelection() 111 assertEquals(mSelectionMgr.getSelection().size(), 0); in testBackButton_ClearsSelection() 123 assertEquals(mSelectionMgr.getSelection().size(), 0); in testBackButton_PopsDirectory() 139 mSelectionMgr.select("1"); in testEscButton_CancelsSearch() 155 assertEquals(mSelectionMgr.getSelection().size(), 1); in testEscButton_CancelsSearch() [all …]
|
D | DocsSelectionHelperTest.java | 47 private DocsSelectionHelper mSelectionMgr; field in DocsSelectionHelperTest 64 mSelectionMgr = new DocsSelectionHelper(mFactory); in setup() 69 mSelectionMgr.hasSelection(); in testCallableBeforeReset() 70 assertNotNull(mSelectionMgr.getSelection()); in testCallableBeforeReset() 71 assertFalse(mSelectionMgr.isSelected("poodle")); in testCallableBeforeReset() 98 mSelectionMgr.replaceSelection(ids); in testReplaceSelection() 108 mSelectionMgr.reset(null); // nulls are passed to factory. We ignore. in resetSelectionHelper()
|
D | FocusManagerTest.java | 45 private SelectionTracker<String> mSelectionMgr; field in FocusManagerTest 54 mSelectionMgr = SelectionHelpers.createTestInstance(ITEMS); in setUp() 56 mManager = new FocusManager(mFeatures, mSelectionMgr, null, null, 0) in setUp() 88 mSelectionMgr.select("0"); in testFocusDirectoryList_hasSelection()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DragStartListener.java | 67 private final SelectionTracker<String> mSelectionMgr; field in DragStartListener.RuntimeDragStartListener 89 mSelectionMgr = selectionMgr; in RuntimeDragStartListener() 153 && mSelectionMgr.hasSelection() in getSelectionToBeCopied() 154 && !mSelectionMgr.isSelected(modelId)) { in getSelectionToBeCopied() 155 mSelectionMgr.select(modelId); in getSelectionToBeCopied() 158 if (mSelectionMgr.isSelected(modelId)) { in getSelectionToBeCopied() 159 mSelectionMgr.copySelection(selection); in getSelectionToBeCopied() 162 mSelectionMgr.clearSelection(); in getSelectionToBeCopied()
|
D | DirectoryFragment.java | 144 private SelectionTracker<String> mSelectionMgr; field in DirectoryFragment 229 mSelectionMgr = mInjector.selectionMgr; in onCreateView() 241 mSelectionMgr, in onCreateView() 337 mSelectionMgr, in onActivityCreated() 367 mSelectionMgr.addObserver(mSelectionMetadata); in onActivityCreated() 374 mSelectionMgr, in onActivityCreated() 395 mSelectionMgr.addObserver(mActionModeController); in onActivityCreated() 441 mSelectionMgr.onSaveInstanceState(outState); in onSaveInstanceState() 646 mSelectionMgr.copySelection(selection); in handleMenuItemClick() 770 if (mSelectionMgr.hasSelection()) { in onAccessibilityClick() [all …]
|
D | DragHost.java | 49 private final SelectionTracker<String> mSelectionMgr; field in DragHost 70 mSelectionMgr = selectionMgr; in DragHost() 81 mSelectionMgr.clearSelection(); in dragStopped()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | SharedInputHandler.java | 41 private final SelectionTracker<String> mSelectionMgr; field in SharedInputHandler 53 mSelectionMgr = selectionMgr; in SharedInputHandler() 118 if (mSelectionMgr.hasSelection()) { in onBack() 122 mSelectionMgr.clearSelection(); in onBack() 134 if (mSelectionMgr.hasSelection()) { in onEscape() 138 mSelectionMgr.clearSelection(); in onEscape()
|
D | ActionModeController.java | 51 private final SelectionTracker<String> mSelectionMgr; field in ActionModeController 68 mSelectionMgr = selectionMgr; in ActionModeController() 75 mSelectionMgr.copySelection(mSelected); in onSelectionChanged() 124 mSelectionMgr.clearSelection(); in onDestroyActionMode() 136 int size = mSelectionMgr.getSelection().size(); in onCreateActionMode()
|
D | AbstractActionHandler.java | 98 protected final SelectionTracker<String> mSelectionMgr; field in AbstractActionHandler 141 mSelectionMgr = injector.selectionMgr; in AbstractActionHandler() 298 boolean changed = mSelectionMgr.setItemsSelected(enabled, true); in selectAllFiles() 561 mSelectionMgr.copySelection(selection); in getStableSelection()
|
D | FocusManager.java | 70 private final SelectionTracker<String> mSelectionMgr; field in FocusManager 85 mSelectionMgr = selectionMgr; in FocusManager() 156 if (mSelectionMgr.hasSelection()) { in focusDirectoryList()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | DragStartListenerTest.java | 56 private DocsSelectionHelper mSelectionMgr; field in DragStartListenerTest 64 mSelectionMgr = SelectionHelpers.createTestInstance(); in setUp() 80 mSelectionMgr, in setUp() 140 mSelectionMgr.replaceSelection(selection); in testDragStart_selectedItem() 153 mSelectionMgr.replaceSelection(selection); in testDragStart_newNonSelectedItem() 160 assertFalse(mSelectionMgr.hasSelection()); in testDragStart_newNonSelectedItem() 167 mSelectionMgr.replaceSelection(selection); in testCtrlDragStart_newNonSelectedItem()
|
D | DragHostTest.java | 58 private SelectionTracker<String> mSelectionMgr; field in DragHostTest 69 mSelectionMgr = SelectionHelpers.createTestInstance(ITEMS); in setUp() 74 mSelectionMgr, in setUp()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
D | ActionHandler.java | 216 mSelectionMgr.clearSelection(); in openDocument() 255 mSelectionMgr.clearSelection(); in cutToClipboard() 270 mSelectionMgr.clearSelection(); in copyToClipboard()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | ActionHandler.java | 321 mSelectionMgr.clearSelection(); in openItem()
|