/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | CustomTileStatePersisterTest.kt | 75 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()
|
D | CustomTileTest.kt | 98 @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/ |
D | CustomTileRepositoryTest.kt | 34 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/ |
D | CustomTileInteractorTest.kt | 35 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/ |
D | CurrentTilesInteractorKosmos.kt | 22 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/ |
D | FakeCustomTileRepository.kt | 29 customTileStatePersister: FakeCustomTileStatePersister, 37 customTileStatePersister,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/custom/data/repository/ |
D | CustomTileRepository.kt | 104 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/ |
D | CustomTileStatePersisterKosmos.kt | 21 var Kosmos.customTileStatePersister: CustomTileStatePersister by variable
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/ |
D | CustomTileKosmos.kt | 48 val Kosmos.customTileStatePersister: FakeCustomTileStatePersister by constant 66 customTileStatePersister, in <lambda>()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/interactor/ |
D | CurrentTilesInteractorImplTest.kt | 91 @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/ |
D | CurrentTilesInteractor.kt | 142 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/ |
D | QSTileHost.java | 137 CustomTileStatePersister customTileStatePersister, in QSTileHost() argument 162 mCustomTileStatePersister = customTileStatePersister; in QSTileHost()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | CustomTile.java | 133 CustomTileStatePersister customTileStatePersister, in CustomTile() argument 150 mCustomTileStatePersister = customTileStatePersister; in CustomTile()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSTileHostTest.java | 690 CustomTileStatePersister customTileStatePersister, in TestQSTileHost() argument 695 userTracker, secureSettings, customTileStatePersister, in TestQSTileHost()
|