Home
last modified time | relevance | path

Searched refs:tileServiceManager (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/external/
DTilesExternalKosmos.kt28 val Kosmos.tileServiceManager: TileServiceManager by constant
29 Kosmos.Fixture { tileServiceManagerFacade.tileServiceManager } in <lambda>()
32 Kosmos.Fixture { (FakeTileServicesFacade(tileServiceManager)) } in <lambda>()
DFakeTileServiceManagerFacade.kt27 val tileServiceManager: TileServiceManager = mock {}, in <lambda>() constant in com.android.systemui.qs.external.FakeTileServiceManagerFacade
36 with(tileServiceManager) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/
DCustomTileServiceInteractor.kt68 private var tileServiceManager: TileServiceManager? = null variable
139 tileServiceManager = null in hasPendingBind()
149 if (tileServiceManager == null) { in getTileServiceManager()
153 .also { tileServiceManager = it } in getTileServiceManager()
155 tileServiceManager!! in getTileServiceManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServices.java244 final TileServiceManager tileServiceManager = mServices.get(customTile); in updateQsTile() local
245 if (tileServiceManager == null || !tileServiceManager.isLifecycleStarted()) { in updateQsTile()
250 tileServiceManager.clearPendingBind(); in updateQsTile()
251 tileServiceManager.setLastUpdate(System.currentTimeMillis()); in updateQsTile()
264 final TileServiceManager tileServiceManager = mServices.get(customTile); in onStartSuccessful() local
267 if (tileServiceManager == null || !tileServiceManager.isLifecycleStarted()) { in onStartSuccessful()
272 tileServiceManager.clearPendingBind(); in onStartSuccessful()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DCustomTileTest.kt93 @Mock private lateinit var tileServiceManager: TileServiceManager variable in com.android.systemui.qs.external.CustomTileTest
140 .thenReturn(tileServiceManager) in setUp()
141 `when`(tileServiceManager.tileService).thenReturn(tileService) in setUp()
175 `when`(tileServiceManager.isToggleableTile).thenReturn(true) in testToggleableTileHasBooleanState()
192 `when`(tileServiceManager.isToggleableTile).thenReturn(true) in testValueUpdatedInBooleanTile()
260 `when`(tileServiceManager.isActiveTile).thenReturn(true) in testPersistedStateRetrieved()
299 `when`(tileServiceManager.isActiveTile).thenReturn(true) in testStoreStateOnChange()
379 `when`(tileServiceManager.isActiveTile).thenReturn(true) in testActiveTileListensOnceAfterCreated()
386 verify(tileServiceManager).setBindRequested(true) in testActiveTileListensOnceAfterCreated()
392 `when`(tileServiceManager.isActiveTile).thenReturn(true) in testActiveTileDoesntListenAfterFirstTime()
[all …]