Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/data/repository/
DCustomTileRepositoryTest.kt72 assertThat(underTest.getTiles(TEST_USER_1).first()).isEqualTo(TEST_TILE_1) in persistableTileIsRestoredForUser()
81 val tiles = collectValues(underTest.getTiles(TEST_USER_1)) in notPersistableTileIsNotRestored()
94 val tiles = collectValues(underTest.getTiles(TEST_USER_1)) in emptyPersistedStateIsHandled()
133 assertThat(underTest.getTiles(TEST_USER_1).first()).isEqualTo(TEST_TILE_1) in updateWithTileEmits()
179 assertThat(underTest.getTiles(TEST_USER_1).first()).isEqualTo(TEST_TILE_1) in updateWithDefaultsEmits()
199 val tiles = collectValues(underTest.getTiles(TEST_USER_2)) in getTilesForAnotherUserEmpty()
224 assertThat(underTest.getTiles(TEST_USER_1).first()).isEqualTo(expectedTile) in updatingWithTileForTheSameUserAddsData()
235 val tiles = collectValues(underTest.getTiles(TEST_USER_2)) in updatingWithTileForAnotherUserOverridesTile()
261 assertThat(underTest.getTiles(TEST_USER_1).first()).isEqualTo(expectedTile) in updatingWithDefaultsForTheSameUserAddsData()
272 val tiles = collectValues(underTest.getTiles(TEST_USER_2)) in updatingWithDefaultsForAnotherUserOverridesTile()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/
DCustomTileInteractorTest.kt79 assertThat(underTest.getTiles(TEST_USER_1).first()).isEqualTo(TEST_TILE_1) in activeTileIsAvailableAfterRestored()
92 val tiles = collectValues(underTest.getTiles(TEST_USER_1)) in notActiveTileIsAvailableAfterUpdated()
113 val tiles = collectValues(underTest.getTiles(TEST_USER_1)) in notActiveTileIsAvailableAfterDefaultsUpdated()
135 val tiles = collectValues(underTest.getTiles(TEST_USER_1)) in initSuspendsForActiveTileNotRestoredAndNotUpdated()
155 val tiles = collectValues(underTest.getTiles(TEST_USER_1)) in initSuspendedForNotActiveTileWithoutUpdates()
201 val tiles = collectValues(underTest.getTiles(TEST_USER_1)) in initForTheSameUserProcessedOnce()
229 val tiles1 by collectValues(underTest.getTiles(TEST_USER_1)) in initForDifferentUsersProcessedOnce()
230 val tiles2 by collectValues(underTest.getTiles(TEST_USER_2)) in initForDifferentUsersProcessedOnce()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSPanelControllerBaseTest.java203 when(mQSHost.getTiles()).thenReturn(Collections.singleton(mQSTile)); in setup()
399 when(mQSHost.getTiles()).thenReturn(List.of(mQSTile, mOtherTile)); in testRefreshAllTilesDoesntRefreshListeningTiles()
441 when(mQSHost.getTiles()).thenReturn(List.of(mOtherTile)); in changeTiles_callbackRemovedOnOldOnes()
488 when(mQSHost.getTiles()).thenReturn(List.of(mQSTile, mOtherTile)); in setTiles_sameTiles_doesntRemoveAndReaddViews()
502 when(mQSHost.getTiles()).thenReturn(List.of(mQSTile, mOtherTile)); in setTiles_longPressEffectEnabled_nonNullLongPressEffectsAreProvided()
513 when(mQSHost.getTiles()).thenReturn(List.of(mQSTile, mOtherTile)); in setTiles_longPressEffectDisabled_noLongPressEffectsAreProvided()
521 when(mQSHost.getTiles()).thenReturn(List.of(mQSTile, mOtherTile)); in setTiles_differentTiles_extraTileRemoved()
527 when(mQSHost.getTiles()).thenReturn(List.of(mQSTile)); in setTiles_differentTiles_extraTileRemoved()
537 when(mQSHost.getTiles()).thenReturn(List.of(mQSTile, mOtherTile)); in detachAndReattach_sameTiles_doesntRemoveAndReAddViews()
550 when(mQSHost.getTiles()).thenReturn(List.of(mQSTile, mOtherTile)); in setTiles_sameTilesDifferentOrder_removesAndReads()
[all …]
DQSTileHostTest.java238 assertEquals(2, mQSTileHost.getTiles().size()); in testInvalidSpecUsesDefault()
291 assertEquals(1, mQSTileHost.getTiles().size()); in testSpecWithInvalidDoesNotUseDefault()
292 QSTile element = CollectionUtils.firstOrNull(mQSTileHost.getTiles()); in testSpecWithInvalidDoesNotUseDefault()
324 assertEquals(1, mQSTileHost.getTiles().size()); in testDefault()
325 QSTile element = CollectionUtils.firstOrNull(mQSTileHost.getTiles()); in testDefault()
DQSPanelControllerTest.kt127 whenever(qsHost.getTiles()).thenReturn(listOf(tile, otherTile)) in testSetListeningDoesntRefreshListeningTiles()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/
DCustomTileInteractor.kt61 fun getTiles(user: UserHandle): Flow<Tile> = customTileRepository.getTiles(user) in getTiles() method in com.android.systemui.qs.tiles.impl.custom.domain.interactor.CustomTileInteractor
108 customTileRepository.getTiles(user).firstOrNull() in getTiles()
DCustomTileDataInteractor.kt112 customTileInteractor.getTiles(user), in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/data/repository/
DFakeCustomTileRepository.kt49 override fun getTiles(user: UserHandle): Flow<Tile> = realDelegate.getTiles(user) method
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSHostAdapter.kt73 override fun getTiles(): Collection<QSTile> { in getTiles() method
77 qsTileHost.getTiles() in getTiles()
DQSHost.java51 Collection<QSTile> getTiles(); in getTiles() method
DQuickQSPanelController.java134 for (QSTile tile : mHost.getTiles()) { in setTiles()
DQSPanelControllerBase.java276 setTiles(mHost.getTiles(), false); in setTiles()
DQSTileHost.java213 public Collection<QSTile> getTiles() { in getTiles() method in QSTileHost
DQSAnimator.java286 Collection<QSTile> tiles = mHost.getTiles(); in updateAnimators()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/custom/data/repository/
DCustomTileRepository.kt60 fun getTiles(user: UserHandle): Flow<Tile> in restoreForTheUserIfNeeded() method
127 override fun getTiles(user: UserHandle): Flow<Tile> = in restoreForTheUserIfNeeded() method in com.android.systemui.qs.tiles.impl.custom.data.repository.CustomTileRepositoryImpl
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/
DDashboardCategory.java64 public synchronized List<Tile> getTiles() { in getTiles() method in DashboardCategory
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DAutoTileManagerTest.java561 when(mQsHost.getTiles()).thenReturn(new ArrayList<>()); in testAddControlsTileIfNotPresent()
578 when(mQsHost.getTiles()).thenReturn(new ArrayList<>()); in testDontAddControlsTileIfPresent()
598 when(mQsHost.getTiles()).thenReturn(List.of(mockTile)); in testRemoveControlsTileFromTrackerWhenRequested()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DQSCustomizerController.java277 for (QSTile tile : mQsHost.getTiles()) { in setTileSpecs()
DTileQueryHelper.java205 Collection<QSTile> params = host.getTiles(); in addPackageTiles()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java354 Collection<QSTile> tiles = mHost.getTiles(); in hasTile()