Home
last modified time | relevance | path

Searched refs:currentTilesInteractor (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/interactor/
DAutoAddInteractorTest.kt61 @Mock private lateinit var currentTilesInteractor: CurrentTilesInteractor variable in com.android.systemui.qs.pipeline.domain.interactor.AutoAddInteractorTest
69 whenever(currentTilesInteractor.userId).thenReturn(MutableStateFlow(USER)) in setUp()
70 whenever(currentTilesInteractor.currentTiles).thenReturn(MutableStateFlow(emptyList())) in setUp()
85 verify(currentTilesInteractor).addTile(SPEC, position) in autoAddable_alwaysTrack_addSignal_tileAddedAndMarked()
103 val inOrder = inOrder(currentTilesInteractor) in autoAddable_alwaysTrack_addThenRemoveSignal_tileAddedAndRemoved()
104 inOrder.verify(currentTilesInteractor).addTile(SPEC, position) in autoAddable_alwaysTrack_addThenRemoveSignal_tileAddedAndRemoved()
105 inOrder.verify(currentTilesInteractor).removeTiles(setOf(SPEC)) in autoAddable_alwaysTrack_addThenRemoveSignal_tileAddedAndRemoved()
122 verify(currentTilesInteractor, never()).addTile(SPEC, position) in autoAddable_alwaysTrack_addSignalWhenAddedPreviously_noop()
139 verify(currentTilesInteractor, never()).addTile(any(), anyInt()) in autoAddable_disabled_noInteractionsWithCurrentTilesInteractor()
140 verify(currentTilesInteractor, never()).removeTiles(any()) in autoAddable_disabled_noInteractionsWithCurrentTilesInteractor()
[all …]
DNoLowNumberOfTilesTest.kt105 autoAddInteractor.init(kosmos.currentTilesInteractor) in setUp()
113 val tiles by collectLastValue(currentTilesInteractor.currentTiles) in noLessThanTwoTilesAfterOEMRestore_prependedDefault()
130 val tiles by collectLastValue(currentTilesInteractor.currentTiles) in noEmptyTilesAfterSettingTilesToUnknownNames()
136 currentTilesInteractor.setTiles(badTiles) in noEmptyTilesAfterSettingTilesToUnknownNames()
149 val tiles by collectLastValue(currentTilesInteractor.currentTiles) in inRetailMode_onlyOneTile_noPrependDefault()
DAccessibilityTilesInteractorTest.kt71 private lateinit var currentTilesInteractor: CurrentTilesInteractor in <lambda>() variable in com.android.systemui.qs.pipeline.domain.interactor.AccessibilityTilesInteractorTest
91 currentTilesInteractor = mock() in <lambda>()
92 whenever(currentTilesInteractor.currentTiles).thenReturn(currentTiles) in <lambda>()
93 whenever(currentTilesInteractor.userContext).thenReturn(userContext) in <lambda>()
168 .apply { init(currentTilesInteractor) } in <lambda>()
DWorkProfileAutoAddedAfterRestoreTest.kt74 kosmos.autoAddInteractor.init(kosmos.currentTilesInteractor) in setUp()
80 val tiles by collectLastValue(kosmos.currentTilesInteractor.currentTiles) in workTileRestoredAndPreviouslyAutoAdded_notAvailable_willBeAutoaddedInCorrectPosition()
110 val tiles by collectLastValue(kosmos.currentTilesInteractor.currentTiles) in workTileNotRestoredAndPreviouslyAutoAdded_wontBeAutoAddedWhenWorkProfileIsAdded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/interactor/
DAccessibilityTilesInteractor.kt47 fun init(currentTilesInteractor: CurrentTilesInteractor) { in <lambda>()
53 startObservingTiles(currentTilesInteractor) in <lambda>()
57 private fun startObservingTiles(currentTilesInteractor: CurrentTilesInteractor) { in <lambda>()
59 currentTilesInteractor.currentTiles in <lambda>()
60 .sample(currentTilesInteractor.userContext) { currentTiles, userContext -> in <lambda>()
DAutoAddInteractor.kt59 private lateinit var currentTilesInteractor: CurrentTilesInteractor in <lambda>() variable in com.android.systemui.qs.pipeline.domain.interactor.AutoAddInteractor
62 fun init(currentTilesInteractor: CurrentTilesInteractor) { in <lambda>()
67 this.currentTilesInteractor = currentTilesInteractor in <lambda>()
71 currentTilesInteractor.userId.collectLatest { userId -> in <lambda>()
86 currentTilesInteractor.currentTiles in <lambda>()
117 currentTilesInteractor.addTile(signal.spec, signal.position) in <lambda>()
123 currentTilesInteractor.removeTiles(setOf(signal.spec)) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/startable/
DQSPipelineCoreStartable.kt34 private val currentTilesInteractor: CurrentTilesInteractor, constant in com.android.systemui.qs.pipeline.domain.startable.QSPipelineCoreStartable
44 accessibilityTilesInteractor.init(currentTilesInteractor) in start()
45 autoAddInteractor.init(currentTilesInteractor) in start()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/panels/ui/viewmodel/
DEditModeViewModel.kt49 private val currentTilesInteractor: CurrentTilesInteractor, in <lambda>() constant in com.android.systemui.qs.panels.ui.viewmodel.EditModeViewModel
98 .minus(currentTilesInteractor.currentTilesSpecs.toSet()) in <lambda>()
100 currentTilesInteractor.currentTiles.map { tiles -> in <lambda>()
154 currentTilesInteractor.addTile(tileSpec, position) in <lambda>()
159 currentTilesInteractor.removeTiles(listOf(tileSpec)) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/panels/ui/viewmodel/
DEditModeViewModelTest.kt42 import com.android.systemui.qs.pipeline.domain.interactor.currentTilesInteractor in <lambda>()
253 currentTilesInteractor.setTiles(currentTiles) in <lambda>()
278 currentTilesInteractor.setTiles(currentTiles) in <lambda>()
299 currentTilesInteractor.setTiles(currentTiles) in <lambda>()
305 currentTilesInteractor.addTile(newTile, position) in <lambda>()
326 currentTilesInteractor.setTiles(currentTiles) in <lambda>()
332 currentTilesInteractor.addTile(newTile) in <lambda>()
352 currentTilesInteractor.setTiles(currentTiles) in <lambda>()
377 currentTilesInteractor.setTiles(currentTiles) in <lambda>()
401 currentTilesInteractor.setTiles(currentTiles) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/panels/domain/interactor/
DGridConsistencyInteractor.kt38 private val currentTilesInteractor: CurrentTilesInteractor, in <lambda>() constant in com.android.systemui.qs.panels.domain.interactor.GridConsistencyInteractor
50 currentTilesInteractor.currentTiles in <lambda>()
55 currentTilesInteractor.setTiles(newTiles) in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/panels/domain/interactor/
DGridConsistencyInteractorKosmos.kt22 import com.android.systemui.qs.pipeline.domain.interactor.currentTilesInteractor
28 currentTilesInteractor, in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/panels/ui/viewmodel/
DTileGridViewModelKosmos.kt24 import com.android.systemui.qs.pipeline.domain.interactor.currentTilesInteractor
31 currentTilesInteractor, in <lambda>()
DEditModeViewModelKosmos.kt26 import com.android.systemui.qs.pipeline.domain.interactor.currentTilesInteractor
33 currentTilesInteractor, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/panels/domain/interactor/
DGridConsistencyInteractorTest.kt29 import com.android.systemui.qs.pipeline.domain.interactor.currentTilesInteractor
98 val tiles = currentTilesInteractor.currentTiles.value in changeLayoutType_usesCorrectGridConsistencyInteractor()
127 val tiles = currentTilesInteractor.currentTiles.value in validTilesWithInfiniteGridConsistencyInteractor_unchangedList()
158 val tiles = currentTilesInteractor.currentTiles.value in invalidTilesWithInfiniteGridConsistencyInteractor_savesNewList()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/pipeline/domain/interactor/
DCurrentTilesInteractorKosmos.kt36 val Kosmos.currentTilesInteractor: CurrentTilesInteractor by constant