Home
last modified time | relevance | path

Searched refs:TileServiceKey (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DCustomTileStatePersister.kt29 data class TileServiceKey(val componentName: ComponentName, val user: Int) { class
58 fun readState(key: TileServiceKey): Tile? in toString()
64 fun persistState(key: TileServiceKey, tile: Tile) in toString()
70 fun removeState(key: TileServiceKey) in toString()
82 override fun readState(key: TileServiceKey): Tile? { in readState()
92 override fun persistState(key: TileServiceKey, tile: Tile) { in persistState()
98 override fun removeState(key: TileServiceKey) { in removeState()
DCustomTile.java111 private final TileServiceKey mKey;
146 mKey = new TileServiceKey(mComponent, mUser); in CustomTile()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/external/
DFakeCustomTileStatePersister.kt23 private val tiles: MutableMap<TileServiceKey, Tile> = mutableMapOf()
25 override fun readState(key: TileServiceKey): Tile? = tiles[key] in readState()
27 override fun persistState(key: TileServiceKey, tile: Tile) { in readState()
31 override fun removeState(key: TileServiceKey) { in removeState()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/
DCustomTileInteractorTest.kt29 import com.android.systemui.qs.external.TileServiceKey
72 TileServiceKey(TEST_COMPONENT, TEST_USER_1.identifier), in activeTileIsAvailableAfterRestored()
89 TileServiceKey(TEST_COMPONENT, TEST_USER_1.identifier), in notActiveTileIsAvailableAfterUpdated()
110 TileServiceKey(TEST_COMPONENT, TEST_USER_1.identifier), in notActiveTileIsAvailableAfterDefaultsUpdated()
152 TileServiceKey(TEST_COMPONENT, TEST_USER_1.identifier), in initSuspendedForNotActiveTileWithoutUpdates()
198 TileServiceKey(TEST_COMPONENT, TEST_USER_1.identifier), in initForTheSameUserProcessedOnce()
222 TileServiceKey(TEST_COMPONENT, TEST_USER_1.identifier), in initForDifferentUsersProcessedOnce()
226 TileServiceKey(TEST_COMPONENT, TEST_USER_2.identifier), in initForDifferentUsersProcessedOnce()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/data/repository/
DCustomTileRepositoryTest.kt29 import com.android.systemui.qs.external.TileServiceKey
317 val TEST_TILE_KEY_1 = TileServiceKey(TEST_COMPONENT, TEST_USER_1.identifier)
329 val TEST_TILE_KEY_2 = TileServiceKey(TEST_COMPONENT, TEST_USER_2.identifier)
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/custom/data/repository/
DCustomTileRepository.kt28 import com.android.systemui.qs.external.TileServiceKey
232 private fun UserHandle.getKey() = TileServiceKey(tileSpec.componentName, this.identifier) in restoreForTheUserIfNeeded()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DCustomTileStatePersisterTest.kt50 private val KEY = TileServiceKey(TEST_COMPONENT, TEST_USER)
DCustomTileTest.kt262 .readState(TileServiceKey(componentName, customTile.user))).thenReturn(t) in testPersistedStateRetrieved()
310 .persistState(TileServiceKey(componentName, customTile.user), t) in testStoreStateOnChange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/interactor/
DCurrentTilesInteractor.kt35 import com.android.systemui.qs.external.TileServiceKey in <lambda>()
353 customTileStatePersister.removeState(TileServiceKey(componentName, userId)) in onCustomTileRemoved()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSTileHost.java44 import com.android.systemui.qs.external.TileServiceKey;
500 mCustomTileStatePersister.removeState(new TileServiceKey(component, mCurrentUser)); in changeTilesByUser()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/interactor/
DCurrentTilesInteractorImplTest.kt39 import com.android.systemui.qs.external.TileServiceKey
510 .removeState(TileServiceKey(TEST_COMPONENT, USER_INFO_0.id)) in removeTile_customTile_lifecycleEnded()
582 .removeState(TileServiceKey(TEST_COMPONENT, USER_INFO_0.id)) in setTiles_customTiles_lifecycleEndedIfGone()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSTileHostTest.java64 import com.android.systemui.qs.external.TileServiceKey;
466 .removeState(new TileServiceKey(CUSTOM_TILE, mQSTileHost.getUserId())); in testCustomTileRemoved_stateDeleted()