Searched refs:_selection (Results 1 – 2 of 2) sorted by relevance
64 private val _selection: LinkedHashSet<T> = LinkedHashSet<T>() constant in com.android.photopicker.core.selection.SelectionImpl70 _selection.addAll(initialSelection)72 _flow = MutableStateFlow(_selection.toSet())96 _selection.add(item) in add()120 _selection.addAll(items) in addAll()133 _selection.clear() in clear()141 return mutex.withLock { _selection.contains(item) } in contains()147 return mutex.withLock { _selection.containsAll(items) } in containsAll()158 return mutex.withLock { _selection.indexOf(item) } in getPosition()169 _selection.remove(item) in remove()[all …]
70 private val _selection: LinkedHashSet<T> = LinkedHashSet() constant in com.android.photopicker.core.selection.GrantsAwareSelectionImpl77 _selection.addAll(initialSelection)79 _flow = MutableStateFlow(GrantsAwareSet(_selection, _deSelection, preGrantedItemsCount))112 _selection.add(item) in add()146 _selection.addAll(itemsToAdd) in addAll()164 _selection.clear() in clear()174 _selection.contains(item) || in contains()200 return mutex.withLock { _selection.indexOf(item) } in getPosition()215 _selection.remove(item) in remove()232 _selection.removeAll(items) in removeAll()[all …]