Home
last modified time | relevance | path

Searched refs:customTileStatePersister (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DCustomTileStatePersisterTest.kt75 private lateinit var customTileStatePersister: CustomTileStatePersister variable in com.android.systemui.qs.external.CustomTileStatePersisterTest
88 customTileStatePersister = CustomTileStatePersisterImpl(mockContext) in setUp()
101 customTileStatePersister.persistState(KEY, tile) in testWriteState()
121 assertThat(tile.isEqualTo(customTileStatePersister.readState(KEY)!!)).isTrue() in testReadState()
130 assertThat(customTileStatePersister.readState(KEY)).isNull() in testReadStateDefault()
137 customTileStatePersister.persistState(KEY, tile) in testStoreNulls()
151 assertThat(customTileStatePersister.readState(KEY)!!.label).isNull() in testReadNulls()
156 customTileStatePersister.removeState(KEY) in testRemoveState()
168 assertThat(customTileStatePersister.readState(KEY)!!.label).isNull() in testWithDefaultLabel_notStored()
DCustomTileTest.kt98 @Mock private lateinit var customTileStatePersister: CustomTileStatePersister variable in com.android.systemui.qs.external.CustomTileTest
123 customTileStatePersister, in create()
230 verify(customTileStatePersister, never()).readState(any()) in testNoLoadStateTileNotActive()
242 verify(customTileStatePersister, never()).persistState(any(), any()) in testNoPersistedStateTileNotActive()
261 `when`(customTileStatePersister in testPersistedStateRetrieved()
309 verify(customTileStatePersister) in testStoreStateOnChange()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/data/repository/
DCustomTileRepositoryTest.kt34 import com.android.systemui.qs.tiles.impl.custom.customTileStatePersister
55 customTileStatePersister, in <lambda>()
65 customTileStatePersister.persistState(TEST_TILE_KEY_1, TEST_TILE_1) in persistableTileIsRestoredForUser()
66 customTileStatePersister.persistState(TEST_TILE_KEY_2, TEST_TILE_2) in persistableTileIsRestoredForUser()
80 customTileStatePersister.persistState(TEST_TILE_KEY_1, TEST_TILE_1) in notPersistableTileIsNotRestored()
110 assertThat(customTileStatePersister.readState(TEST_TILE_KEY_1)) in updatingWithPersistableTilePersists()
122 assertThat(customTileStatePersister.readState(TEST_TILE_KEY_1)).isNull() in updatingWithNotPersistableTileDoesntPersist()
145 assertThat(customTileStatePersister.readState(TEST_TILE_KEY_1)) in updatingPeristableWithDefaultsPersists()
157 assertThat(customTileStatePersister.readState(TEST_TILE_KEY_1)).isNull() in updatingNotPersistableWithDefaultsDoesntPersist()
168 assertThat(customTileStatePersister.readState(TEST_TILE_KEY_1)).isNull() in updatingPeristableWithErrorDefaultsDoesntPersist()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/
DCustomTileInteractorTest.kt35 import com.android.systemui.qs.tiles.impl.custom.customTileStatePersister
71 customTileStatePersister.persistState( in activeTileIsAvailableAfterRestored()
88 customTileStatePersister.persistState( in notActiveTileIsAvailableAfterUpdated()
109 customTileStatePersister.persistState( in notActiveTileIsAvailableAfterDefaultsUpdated()
151 customTileStatePersister.persistState( in initSuspendedForNotActiveTileWithoutUpdates()
197 customTileStatePersister.persistState( in initForTheSameUserProcessedOnce()
221 customTileStatePersister.persistState( in initForDifferentUsersProcessedOnce()
225 customTileStatePersister.persistState( in initForDifferentUsersProcessedOnce()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/pipeline/domain/interactor/
DCurrentTilesInteractorKosmos.kt22 import com.android.systemui.qs.external.customTileStatePersister
44 customTileStatePersister, in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/data/repository/
DFakeCustomTileRepository.kt29 customTileStatePersister: FakeCustomTileStatePersister,
37 customTileStatePersister,
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/custom/data/repository/
DCustomTileRepository.kt104 private val customTileStatePersister: CustomTileStatePersister, in restoreForTheUserIfNeeded() constant in com.android.systemui.qs.tiles.impl.custom.data.repository.CustomTileRepositoryImpl
116 customTileStatePersister.readState(user.getKey())?.let { in restoreForTheUserIfNeeded()
207 customTileStatePersister.persistState(user.getKey(), tileToUpdate) in restoreForTheUserIfNeeded()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/external/
DCustomTileStatePersisterKosmos.kt21 var Kosmos.customTileStatePersister: CustomTileStatePersister by variable
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/
DCustomTileKosmos.kt48 val Kosmos.customTileStatePersister: FakeCustomTileStatePersister by constant
66 customTileStatePersister, in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/interactor/
DCurrentTilesInteractorImplTest.kt91 @Mock private lateinit var customTileStatePersister: CustomTileStatePersister variable in com.android.systemui.qs.pipeline.domain.interactor.CurrentTilesInteractorImplTest
124 customTileStatePersister = customTileStatePersister, in setup()
509 verify(customTileStatePersister) in removeTile_customTile_lifecycleEnded()
581 verify(customTileStatePersister) in setTiles_customTiles_lifecycleEndedIfGone()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/interactor/
DCurrentTilesInteractor.kt142 private val customTileStatePersister: CustomTileStatePersister, constant in com.android.systemui.qs.pipeline.domain.interactor.CurrentTilesInteractorImpl
353 customTileStatePersister.removeState(TileServiceKey(componentName, userId)) in onCustomTileRemoved()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSTileHost.java137 CustomTileStatePersister customTileStatePersister, in QSTileHost() argument
162 mCustomTileStatePersister = customTileStatePersister; in QSTileHost()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DCustomTile.java133 CustomTileStatePersister customTileStatePersister, in CustomTile() argument
150 mCustomTileStatePersister = customTileStatePersister; in CustomTile()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSTileHostTest.java690 CustomTileStatePersister customTileStatePersister, in TestQSTileHost() argument
695 userTracker, secureSettings, customTileStatePersister, in TestQSTileHost()