Home
last modified time | relevance | path

Searched refs:canSetState (Results 1 – 4 of 4) sorted by relevance

/packages/apps/DocumentsUI/src/com/android/documentsui/selection/
DSelectionManager.java77 public SelectionManager reset(DocumentsAdapter adapter, SelectionPredicate canSetState) { in reset() argument
88 assert(canSetState != null); in reset()
91 mCanSetState = canSetState; in reset()
223 ? canSetState(id, true) && mSelection.add(id) in setItemsSelectedQuietly()
224 : canSetState(id, false) && mSelection.remove(id); in setItemsSelectedQuietly()
395 if (canSetState(id, false)) { in attemptDeselect()
412 boolean canSelect = canSetState(id, true); in attemptSelect()
424 boolean canSetState(String id, boolean nextState) { in canSetState() method in SelectionManager
436 if (!canSetState(id, true)) { in notifyDataChanged()
501 boolean canSelect = canSetState(id, true); in updateForRegularRange()
[all …]
DBandController.java339 return mSelectionManager.canSetState(id, nextState); in onBeforeItemStateChange()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DSelectionManagers.java48 DocumentsAdapter adapter, @SelectionMode int mode, SelectionPredicate canSetState) { in createTestInstance() argument
50 manager.reset(adapter, canSetState); in createTestInstance()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DInjector.java111 DocumentsAdapter adapter, SelectionPredicate canSetState) { in getSelectionManager() argument
112 return selectionMgr.reset(adapter, canSetState); in getSelectionManager()