Searched refs:TileServiceKey (Results 1 – 12 of 12) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | CustomTileStatePersister.kt | 29 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()
|
D | CustomTile.java | 111 private final TileServiceKey mKey; 146 mKey = new TileServiceKey(mComponent, mUser); in CustomTile()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/external/ |
D | FakeCustomTileStatePersister.kt | 23 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/ |
D | CustomTileInteractorTest.kt | 29 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/ |
D | CustomTileRepositoryTest.kt | 29 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/ |
D | CustomTileRepository.kt | 28 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/ |
D | CustomTileStatePersisterTest.kt | 50 private val KEY = TileServiceKey(TEST_COMPONENT, TEST_USER)
|
D | CustomTileTest.kt | 262 .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/ |
D | CurrentTilesInteractor.kt | 35 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/ |
D | QSTileHost.java | 44 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/ |
D | CurrentTilesInteractorImplTest.kt | 39 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/ |
D | QSTileHostTest.java | 64 import com.android.systemui.qs.external.TileServiceKey; 466 .removeState(new TileServiceKey(CUSTOM_TILE, mQSTileHost.getUserId())); in testCustomTileRemoved_stateDeleted()
|