Home
last modified time | relevance | path

Searched refs:qsHost (Results 1 – 25 of 25) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/dagger/
DQSHostModule.kt48 qsHost: QSTileHost, in provideQsHost()
54 qsHost in provideQsHost()
62 qsHost: QSTileHost, in provideQsHost()
68 qsHost in provideQsHost()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServiceRequestController.kt47 private val qsHost: QSHost, in <lambda>() constant in com.android.systemui.qs.external.TileServiceRequestController
52 private val dialogCreator: () -> TileRequestDialog = { TileRequestDialog(qsHost.context) } in <lambda>()
99 qsHost.addTile(componentName, true) in addTile()
171 return qsHost.indexOf(spec) != -1 in isTileAlreadyAdded()
208 fun create(qsHost: QSHost): TileServiceRequestController { in create()
210 qsHost, in create()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQuickQSPanelControllerTest.kt57 @Mock private lateinit var qsHost: QSHost variable in com.android.systemui.qs.QuickQSPanelControllerTest
92 qsHost, in setUp()
117 whenever(qsHost.tiles).thenReturn(listOf(tile, tile)) in testTileSublistWithFewerTiles_noCrash()
126 whenever(qsHost.tiles).thenReturn(listOf(tile, tile, tile, tile)) in testTileSublistWithTooManyTiles()
162 qsHost: QSHost,
176 qsHost,
DQSPanelControllerBaseSceneContainerTest.kt74 @Mock private lateinit var qsHost: QSHost variable in com.android.systemui.qs.QSPanelControllerBaseSceneContainerTest
112 whenever(qsHost.tiles).thenReturn(emptyList()) in setUp()
253 qsHost, in createUnderTest()
268 qsHost: QSHost,
281 qsHost,
DQSPanelControllerTest.kt49 @Mock private lateinit var qsHost: QSHost variable in com.android.systemui.qs.QSPanelControllerTest
94 qsHost, in setUp()
127 whenever(qsHost.getTiles()).thenReturn(listOf(tile, otherTile)) in testSetListeningDoesntRefreshListeningTiles()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileServiceRequestControllerTest.kt67 private lateinit var qsHost: QSHost variable in com.android.systemui.qs.external.TileServiceRequestControllerTest
89 `when`(qsHost.indexOf(anyString())).thenReturn(-1) in setUp()
92 qsHost, in setUp()
129 `when`(qsHost.indexOf(CustomTile.toSpec(TEST_COMPONENT))).thenReturn(2) in tileAlreadyAdded_correctResult()
142 verify(qsHost, never()).addTile(any(ComponentName::class.java), anyBoolean()) in tileAlreadyAdded_correctResult()
147 `when`(qsHost.indexOf(CustomTile.toSpec(TEST_COMPONENT))).thenReturn(2) in tileAlreadyAdded_logged()
207 verify(qsHost, never()).addTile(any(ComponentName::class.java), anyBoolean()) in cancelListener_dismissResult()
248 verify(qsHost).addTile(TEST_COMPONENT, /* end */ true) in positiveActionListener_tileAddedResult()
289 verify(qsHost, never()).addTile(any(ComponentName::class.java), anyBoolean()) in negativeActionListener_tileNotAddedResult()
344 `when`(qsHost.indexOf(CustomTile.toSpec(TEST_COMPONENT))).thenReturn(2) in commandQueueCallback_callbackCalled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DUiModeNightTileTest.kt59 @Mock private lateinit var qsHost: QSHost variable in com.android.systemui.qs.tiles.UiModeNightTileTest
80 `when`(qsHost.context).thenReturn(mockContext) in setUp()
81 `when`(qsHost.userContext).thenReturn(mContext) in setUp()
87 qsHost, in setUp()
DBatterySaverTileTest.kt63 @Mock private lateinit var qsHost: QSHost variable in com.android.systemui.qs.tiles.BatterySaverTileTest
79 `when`(qsHost.context).thenReturn(mContext) in setUp()
80 `when`(qsHost.userContext).thenReturn(userContext) in setUp()
87 qsHost, in setUp()
DFlashlightTileTest.kt38 @Mock private lateinit var qsHost: QSHost variable in com.android.systemui.qs.tiles.FlashlightTileTest
59 Mockito.`when`(qsHost.context).thenReturn(mockContext) in setUp()
63 qsHost, in setUp()
DLocationTileTest.kt60 private lateinit var qsHost: QSHost variable in com.android.systemui.qs.tiles.LocationTileTest
84 `when`(qsHost.context).thenReturn(mockContext) in setUp()
87 qsHost, in setUp()
DDndTileTest.kt72 private lateinit var qsHost: QSHost variable in com.android.systemui.qs.tiles.DndTileTest
117 whenever(qsHost.userId).thenReturn(DEFAULT_USER) in setUp()
126 whenever(qsHost.context).thenReturn(wrappedContext) in setUp()
130 qsHost, in setUp()
DAlarmTileTest.kt41 private lateinit var qsHost: QSHost variable in com.android.systemui.qs.tiles.AlarmTileTest
69 `when`(qsHost.context).thenReturn(mContext) in setUp()
72 qsHost, in setUp()
DBluetoothTileTest.kt51 @Mock private lateinit var qsHost: QSHost variable in com.android.systemui.qs.tiles.BluetoothTileTest
69 whenever(qsHost.context).thenReturn(mContext) in setUp()
73 qsHost, in setUp()
257 qsHost: QSHost,
271 qsHost,
DFontScalingTileTest.kt59 @Mock private lateinit var qsHost: QSHost variable in com.android.systemui.qs.tiles.FontScalingTileTest
83 `when`(qsHost.getContext()).thenReturn(mContext) in setUp()
91 qsHost, in setUp()
DDeviceControlsTileTest.kt78 private lateinit var qsHost: QSHost variable in com.android.systemui.qs.tiles.DeviceControlsTileTest
120 `when`(qsHost.context).thenReturn(spiedContext) in setUp()
403 qsHost, in createTile()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/external/
DTileServicesKosmos.kt36 val qsHost: QSHost = mock { whenever(context).thenReturn(applicationContext) } in <lambda>() constant
38 qsHost, in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DAutoAddTracker.kt60 private val qsHost: QSHost, in <lambda>() constant in com.android.systemui.qs.AutoAddTracker
128 qsHost.removeTiles(tilesToRemove) in <lambda>()
272 private val qsHost: QSHost, in <lambda>() constant in com.android.systemui.qs.AutoAddTracker.Builder
288 qsHost, in <lambda>()
DQuickQSPanelController.java59 QuickQSPanelController(QuickQSPanel view, QSHost qsHost, in QuickQSPanelController() argument
70 super(view, qsHost, qsCustomizerController, usingMediaPlayer, mediaHost, metricsLogger, in QuickQSPanelController()
DQSPanelController.java93 QSHost qsHost, QSCustomizerController qsCustomizerController, in QSPanelController() argument
105 super(view, qsHost, qsCustomizerController, usingMediaPlayer, mediaHost, in QSPanelController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/viewmodel/
DQSTileViewModelAdapter.kt52 private val qsHost: QSHost, in <lambda>() constant in com.android.systemui.qs.tiles.viewmodel.QSTileViewModelAdapter
57 get() = qsHost.context in <lambda>()
75 qsHost.removeTile(tileSpec) in <lambda>()
96 userSwitch(qsHost.userId) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSFactoryImplTest.kt100 @Mock private lateinit var qsHost: QSHost in <lambda>() variable in com.android.systemui.qs.tileimpl.QSFactoryImplTest
139 whenever(qsHost.context).thenReturn(mContext) in <lambda>()
140 whenever(qsHost.userContext).thenReturn(mContext) in <lambda>()
175 { qsHost }, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/controller/
DMediaHierarchyManagerTest.kt93 @Mock private lateinit var qsHost: MediaHost variable in com.android.systemui.media.controls.ui.controller.MediaHierarchyManagerTest
169 setupHost(qsHost, MediaHierarchyManager.LOCATION_QS, QS_TOP) in setup()
447 whenever(qsHost.visible).thenReturn(true) in isCurrentlyInGuidedTransformation_hostsVisible_returnsTrue()
463 whenever(qsHost.visible).thenReturn(true) in isCurrentlyInGuidedTransformation_hostsVisible_expandImmediateEnabled_returnsFalse()
474 whenever(qsHost.visible).thenReturn(true) in isCurrentlyInGuidedTransformation_hostNotVisible_returnsFalse_with_active()
487 whenever(qsHost.visible).thenReturn(true) in isCurrentlyInGuidedTransformation_hostNotVisible_returnsTrue_without_active()
509 whenever(qsHost.visible).thenReturn(true) in isCurrentlyInGuidedTransformation_desiredLocationIsHub_returnsFalse()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DQSCustomizerController.java108 QSHost qsHost, TileAdapter tileAdapter, ScreenLifecycle screenLifecycle, in QSCustomizerController() argument
113 mQsHost = qsHost; in QSCustomizerController()
DTileAdapter.java127 QSHost qsHost, in TileAdapter() argument
131 mHost = qsHost; in TileAdapter()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DCentralSurfacesCommandQueueCallbacks.java149 QSHost qsHost, in CentralSurfacesCommandQueueCallbacks()
178 mQSHost = qsHost; in CentralSurfacesCommandQueueCallbacks()