/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | ProfileTabsControllerTest.java | 30 private SelectionTracker<String> mSelectionMgr = SelectionHelpers.createTestInstance(); field in ProfileTabsControllerTest 33 private ProfileTabsController mController = new ProfileTabsController(mSelectionMgr, 38 mSelectionMgr.addObserver(mController); in setUp() 49 mSelectionMgr.select("foo"); in testClearSelection_enable() 50 mSelectionMgr.clearSelection(); in testClearSelection_enable() 56 mSelectionMgr.select("foo"); in testDeselectAll_enable() 57 mSelectionMgr.select("bar"); in testDeselectAll_enable() 58 mSelectionMgr.deselect("foo"); in testDeselectAll_enable() 59 mSelectionMgr.deselect("bar"); in testDeselectAll_enable() 65 mSelectionMgr.select("foo"); in testSelection_disable() [all …]
|
D | SharedInputHandlerTest.java | 44 private SelectionTracker<String> mSelectionMgr = SelectionHelpers.createTestInstance(); field in SharedInputHandlerTest 70 mSelectionMgr, in setUp() 87 mSelectionMgr.select("1"); in testBackButton_CancelsSearch() 104 assertEquals(mSelectionMgr.getSelection().size(), 1); in testBackButton_CancelsSearch() 111 mSelectionMgr.select("1"); in testBackButton_ClearsSelection() 112 assertEquals(mSelectionMgr.getSelection().size(), 1); in testBackButton_ClearsSelection() 118 assertEquals(mSelectionMgr.getSelection().size(), 0); in testBackButton_ClearsSelection() 130 assertEquals(mSelectionMgr.getSelection().size(), 0); in testBackButton_PopsDirectory() 146 mSelectionMgr.select("1"); in testEscButton_CancelsSearch() 163 assertEquals(mSelectionMgr.getSelection().size(), 1); in testEscButton_CancelsSearch() [all …]
|
D | DocsSelectionHelperTest.java | 46 private DocsSelectionHelper mSelectionMgr; field in DocsSelectionHelperTest 55 mSelectionMgr = new DocsSelectionHelper(mFactory); in setup() 60 mSelectionMgr.hasSelection(); in testCallableBeforeReset() 61 assertNotNull(mSelectionMgr.getSelection()); in testCallableBeforeReset() 62 assertFalse(mSelectionMgr.isSelected("poodle")); in testCallableBeforeReset() 89 mSelectionMgr.replaceSelection(ids); in testReplaceSelection() 102 mSelectionMgr.reset(mgr); in resetSelectionHelper()
|
D | FocusManagerTest.java | 46 private SelectionTracker<String> mSelectionMgr; field in FocusManagerTest 55 mSelectionMgr = SelectionHelpers.createTestInstance(ITEMS); in setUp() 57 mManager = new FocusManager(mFeatures, mSelectionMgr, null, null, 0).reset(mView, in setUp() 89 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 | 161 private SelectionTracker<String> mSelectionMgr; field in DirectoryFragment 373 mSelectionMgr = mInjector.selectionMgr; in onCreateView() 385 mSelectionMgr, in onCreateView() 490 mSelectionMgr, in onActivityCreated() 520 mSelectionMgr.addObserver(mSelectionMetadata); in onActivityCreated() 527 mSelectionMgr, in onActivityCreated() 548 mSelectionMgr.addObserver(mActionModeController); in onActivityCreated() 551 mSelectionMgr.addObserver(mProfileTabsController); in onActivityCreated() 611 mSelectionMgr.onSaveInstanceState(outState); in onSaveInstanceState() 833 mSelectionMgr.copySelection(selection); in handleMenuItemClick() [all …]
|
D | DragHost.java | 53 private final SelectionTracker<String> mSelectionMgr; field in DragHost 74 mSelectionMgr = selectionMgr; in DragHost() 85 mSelectionMgr.clearSelection(); in dragStopped()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | SharedInputHandler.java | 42 private final SelectionTracker<String> mSelectionMgr; field in SharedInputHandler 55 mSelectionMgr = selectionMgr; in SharedInputHandler() 125 if (mSelectionMgr.hasSelection()) { in onBack() 129 mSelectionMgr.clearSelection(); in onBack() 141 if (mSelectionMgr.hasSelection()) { in onEscape() 145 mSelectionMgr.clearSelection(); in onEscape()
|
D | ActionModeController.java | 48 private final SelectionTracker<String> mSelectionMgr; field in ActionModeController 67 mSelectionMgr = selectionMgr; in ActionModeController() 75 mSelectionMgr.copySelection(mSelected); in onSelectionChanged() 129 mSelectionMgr.clearSelection(); in onDestroyActionMode() 144 int size = mSelectionMgr.getSelection().size(); in onCreateActionMode()
|
D | ProfileTabsController.java | 31 private final SelectionTracker<String> mSelectionMgr; field in ProfileTabsController 37 mSelectionMgr = checkNotNull(selectionMgr); in ProfileTabsController() 52 mProfileTabsAddons.setEnabled(mSelectionMgr.getSelection().isEmpty()); in onSelectionUpdated()
|
D | AbstractActionHandler.java | 105 protected final SelectionTracker<String> mSelectionMgr; field in AbstractActionHandler 150 mSelectionMgr = injector.selectionMgr; in AbstractActionHandler() 314 boolean changed = mSelectionMgr.setItemsSelected(enabled, true); in selectAllFiles() 322 mSelectionMgr.clearSelection(); in deselectAllFiles() 851 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 | 217 mSelectionMgr.clearSelection(); in openDocument() 256 mSelectionMgr.clearSelection(); in cutToClipboard() 271 mSelectionMgr.clearSelection(); in copyToClipboard()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | ActionHandler.java | 323 mSelectionMgr.clearSelection(); in openItem()
|