Home
last modified time | relevance | path

Searched refs:mSelectionMgr (Results 1 – 16 of 16) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DProfileTabsControllerTest.java30 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 …]
DSharedInputHandlerTest.java44 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 …]
DDocsSelectionHelperTest.java46 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()
DFocusManagerTest.java46 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/
DDragStartListener.java67 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()
DDirectoryFragment.java161 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 …]
DDragHost.java53 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/
DSharedInputHandler.java42 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()
DActionModeController.java48 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()
DProfileTabsController.java31 private final SelectionTracker<String> mSelectionMgr; field in ProfileTabsController
37 mSelectionMgr = checkNotNull(selectionMgr); in ProfileTabsController()
52 mProfileTabsAddons.setEnabled(mSelectionMgr.getSelection().isEmpty()); in onSelectionUpdated()
DAbstractActionHandler.java105 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()
DFocusManager.java70 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/
DDragStartListenerTest.java56 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()
DDragHostTest.java58 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/
DActionHandler.java217 mSelectionMgr.clearSelection(); in openDocument()
256 mSelectionMgr.clearSelection(); in cutToClipboard()
271 mSelectionMgr.clearSelection(); in copyToClipboard()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DActionHandler.java323 mSelectionMgr.clearSelection(); in openItem()