Home
last modified time | relevance | path

Searched refs:currentTiles (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/panels/ui/viewmodel/
DEditModeViewModelTest.kt246 val currentTiles = in <lambda>() constant
253 currentTilesInteractor.setTiles(currentTiles) in <lambda>()
258 .containsExactlyElementsIn(currentTiles) in <lambda>()
268 val currentTiles = in <lambda>() constant
276 stockTilesRepository.stockTiles.filterNot { it in currentTiles } + in <lambda>()
278 currentTilesInteractor.setTiles(currentTiles) in <lambda>()
292 val currentTiles = in <lambda>() constant
299 currentTilesInteractor.setTiles(currentTiles) in <lambda>()
306 currentTiles.add(position, newTile) in <lambda>()
309 .containsExactlyElementsIn(currentTiles) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/repository/
DUserTileSpecRepository.kt176 fun apply(currentTiles: List<TileSpec>): List<TileSpec> in <lambda>()
183 override fun apply(currentTiles: List<TileSpec>): List<TileSpec> { in <lambda>()
184 val tilesList = currentTiles.toMutableList() in <lambda>()
197 override fun apply(currentTiles: List<TileSpec>): List<TileSpec> { in <lambda>()
198 return currentTiles.toMutableList().apply { removeAll(tileSpecs) } in <lambda>()
205 override fun apply(currentTiles: List<TileSpec>): List<TileSpec> { in <lambda>()
207 return if (new.isNotEmpty()) new else currentTiles in <lambda>()
212 override fun apply(currentTiles: List<TileSpec>): List<TileSpec> { in <lambda>()
213 return defaultTiles + currentTiles in <lambda>()
222 override fun apply(currentTiles: List<TileSpec>): List<TileSpec> { in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/interactor/
DWorkProfileAutoAddedAfterRestoreTest.kt80 val tiles by collectLastValue(kosmos.currentTilesInteractor.currentTiles) in workTileRestoredAndPreviouslyAutoAdded_notAvailable_willBeAutoaddedInCorrectPosition()
83 val currentTiles = listOf("a".toTileSpec()) in workTileRestoredAndPreviouslyAutoAdded_notAvailable_willBeAutoaddedInCorrectPosition() constant
84 kosmos.fakeTileSpecRepository.setTiles(currentUser, currentTiles) in workTileRestoredAndPreviouslyAutoAdded_notAvailable_willBeAutoaddedInCorrectPosition()
110 val tiles by collectLastValue(kosmos.currentTilesInteractor.currentTiles) in workTileNotRestoredAndPreviouslyAutoAdded_wontBeAutoAddedWhenWorkProfileIsAdded()
113 val currentTiles = listOf("a".toTileSpec()) in workTileNotRestoredAndPreviouslyAutoAdded_wontBeAutoAddedWhenWorkProfileIsAdded() constant
114 kosmos.fakeTileSpecRepository.setTiles(currentUser, currentTiles) in workTileNotRestoredAndPreviouslyAutoAdded_wontBeAutoAddedWhenWorkProfileIsAdded()
DAccessibilityTilesInteractorTest.kt74 private lateinit var currentTiles: MutableStateFlow<List<TileModel>> in <lambda>() variable in com.android.systemui.qs.pipeline.domain.interactor.AccessibilityTilesInteractorTest
87 currentTiles = MutableStateFlow(emptyList()) in <lambda>()
92 whenever(currentTilesInteractor.currentTiles).thenReturn(currentTiles) in <lambda>()
148 currentTiles.tryEmit( in <lambda>()
DCurrentTilesInteractorImplTest.kt141 assertThat(underTest.currentTiles.value).isEmpty() in initialState()
151 val tiles by collectLastValue(underTest.currentTiles) in correctTiles()
256 val tiles by collectLastValue(underTest.currentTiles) in deduplicatedTiles()
269 val tiles by collectLastValue(underTest.currentTiles) in tilesChange_platformTileNotRecreated()
288 val tiles by collectLastValue(underTest.currentTiles) in tileRemovedIsDestroyed()
311 val tiles by collectLastValue(underTest.currentTiles) in tileBecomesNotAvailable_destroyed()
343 val tiles by collectLastValue(underTest.currentTiles) in userChange_tilesChange()
359 val tiles by collectLastValue(underTest.currentTiles) in tileNotPresentInSecondaryUser_destroyedInUserChange()
382 val tiles by collectLastValue(underTest.currentTiles) in userChange_customTileDestroyed_lifecycleNotTerminated()
401 val tiles by collectLastValue(underTest.currentTiles) in userChange_sameTileUserChanged()
[all …]
DNoLowNumberOfTilesTest.kt113 val tiles by collectLastValue(currentTilesInteractor.currentTiles) in noLessThanTwoTilesAfterOEMRestore_prependedDefault()
130 val tiles by collectLastValue(currentTilesInteractor.currentTiles) in noEmptyTilesAfterSettingTilesToUnknownNames()
149 val tiles by collectLastValue(currentTilesInteractor.currentTiles) in inRetailMode_onlyOneTile_noPrependDefault()
DAutoAddInteractorTest.kt70 whenever(currentTilesInteractor.currentTiles).thenReturn(MutableStateFlow(emptyList())) in setUp()
212 whenever(currentTilesInteractor.currentTiles) in autoAddable_trackIfNotAdded_currentTile_markedAsAdded()
231 whenever(currentTilesInteractor.currentTiles).thenReturn(currentTilesFlow) in autoAddable_trackIfNotAdded_tileAddedToCurrentTiles_markedAsAdded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/interactor/
DAccessibilityTilesInteractor.kt59 currentTilesInteractor.currentTiles in <lambda>()
60 .sample(currentTilesInteractor.userContext) { currentTiles, userContext -> in <lambda>() method
61 Data(currentTiles.map(TileModel::spec), userContext) in <lambda>()
DCurrentTilesInteractor.kt77 val currentTiles: StateFlow<List<TileModel>> in <lambda>() constant
87 get() = currentTiles.value.map(TileModel::spec) in <lambda>()
91 get() = currentTiles.value.map(TileModel::tile) in <lambda>()
158 override val currentTiles: StateFlow<List<TileModel>> = _currentSpecsAndTiles.asStateFlow() constant
304 currentTiles.filter { it.isNotEmpty() }.first() in addTile()
336 currentTiles.value in dump()
344 currentTiles.value.map { it.tile.state }.mapNotNull { it?.toProto() }.toTypedArray() in dumpProto()
DAutoAddInteractor.kt86 currentTilesInteractor.currentTiles in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/panels/domain/interactor/
DGridConsistencyInteractorTest.kt98 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/src/com/android/systemui/qs/panels/ui/viewmodel/
DEditModeViewModel.kt100 currentTilesInteractor.currentTiles.map { tiles -> in <lambda>()
105 val currentTiles = currentSpecs.map { allTilesMap.get(it) }.filterNotNull() in <lambda>() constant
108 (currentTiles + nonCurrentTiles) in <lambda>()
DTileGridViewModel.kt52 tilesInteractor.currentTiles.mapLatest { tiles -> in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/shared/logging/
DQSPipelineLogger.kt68 currentTiles: List<TileSpec>, in logTilesRestoredAndReconciled()
76 str1 = currentTiles.toString() in logTilesRestoredAndReconciled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/panels/domain/interactor/
DGridConsistencyInteractor.kt50 currentTilesInteractor.currentTiles in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/data/repository/
DUserTileSpecRepositoryTest.kt350 val currentTiles = tiles!! in prependDefaultTwice_doesntAddMoreTiles() constant
353 assertThat(tiles).isEqualTo(currentTiles) in prependDefaultTwice_doesntAddMoreTiles()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/panels/ui/compose/
DPartitionedGridLayout.kt113 val (currentTiles, otherTiles) = tiles.partition { it.isCurrent } in <lambda>() constant
150 tiles = currentTiles, in <lambda>()
DTile.kt272 val (currentTiles, otherTiles) = tiles.partition { it.isCurrent } in DefaultEditTileGrid() constant
283 currentTiles, in DefaultEditTileGrid()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSHostAdapter.kt99 val job = scope.launch { interactor.currentTiles.collect { callback.onTilesChanged() } } in addCallback()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java1668 ArraySet<ComponentName> currentTiles = userState.getA11yQsTilesInQsPanel(); in notifyQuickSettingsTilesChanged() local
1672 .filter(tileComponentName -> !currentTiles.contains(tileComponentName)) in notifyQuickSettingsTilesChanged()
1675 removedTiles = currentTiles in notifyQuickSettingsTilesChanged()