Home
last modified time | relevance | path

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

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/start/
H A DControlsStartableTest.kt68 @Mock private lateinit var controlsController: ControlsController
117 verify(controlsController, never()).setPreferredSelection(any())
130 verify(controlsController, never()).setPreferredSelection(any())
144 verify(controlsController, never()).setPreferredSelection(any())
151 `when`(controlsController.getPreferredSelection())
159 verify(controlsController, never()).setPreferredSelection(any())
221 verify(controlsController).bindComponentForPanel(TEST_COMPONENT_PANEL)
274 `when`(controlsController.getPreferredSelection())
280 verify(controlsController, never()).bindComponentForPanel(any())
292 verify(controlsController, never()).bindComponentForPanel(any())
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/start/
H A DControlsStartable.kt67 private val controlsController: ControlsController
76 controlsController.changeUser(UserHandle.of(newUser))
103 val currentSelection = controlsController.getPreferredSelection()
116 controlsController.setPreferredSelection(
144 val currentSelection = controlsController.getPreferredSelection()
150 controlsController.bindComponentForPanel(currentSelection.componentName)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/quickaffordance/
H A DHomeControlsKeyguardQuickAffordanceConfigTest.kt71 val controlsController = mock<ControlsController>() regex
72 whenever(component.getControlsController()).thenReturn(Optional.of(controlsController))
75 whenever(controlsController.getFavorites()).thenReturn(listOf(mock()))
90 val controlsController = mock<ControlsController>() regex
91 whenever(component.getControlsController()).thenReturn(Optional.of(controlsController))
94 whenever(controlsController.getFavorites()).thenReturn(listOf(mock()))
H A DHomeControlsKeyguardQuickAffordanceConfigParameterizedStateTest.kt78 @Mock private lateinit var controlsController: ControlsController
101 whenever(component.getControlsController()).thenReturn(Optional.of(controlsController))
138 whenever(controlsController.getFavorites())
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
H A DControlsUiControllerImplTest.kt86 @Mock lateinit var controlsController: ControlsController
131 { controlsController },
190 verify(controlsController, never()).refreshStatus(any(), any())
199 verify(controlsController).bindComponentForPanel(panel.componentName)
356 whenever(controlsController.addSeedingFavoritesCallback(any())).thenReturn(true)
363 whenever(controlsController.getFavorites()).thenReturn(emptyList())
386 whenever(controlsController.getFavorites()).thenReturn(emptyList())
410 verify(controlsController, never()).unsubscribe()
427 verify(controlsController).removeFavorites(eq(componentName))
447 verify(controlsController, never()).removeFavorites(eq(componentName))
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DDeviceControlsControllerImplTest.kt69 private lateinit var controlsController: ControlsController
102 .thenReturn(Optional.of(controlsController))
128 `when`(controlsController.getFavorites()).thenReturn(emptyList())
147 `when`(controlsController.getFavorites()).thenReturn(listOf(structureInfo))
157 `when`(controlsController.getFavorites()).thenReturn(emptyList())
167 verify(controlsController).seedFavoritesForComponents(
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
H A DDeviceControlsTileTest.kt94 private lateinit var controlsController: ControlsController
122 `when`(controlsController.getPreferredSelection())
141 Optional.of(controlsController)
240 `when`(controlsController.getPreferredSelection()).thenReturn(
261 `when`(controlsController.getPreferredSelection())
278 `when`(controlsController.getPreferredSelection())
334 `when`(controlsController.getPreferredSelection()).thenReturn(
365 `when`(controlsController.getPreferredSelection()).thenReturn(
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
H A DControlsUiControllerImpl.kt93 val controlsController: Lazy<ControlsController>,
152 selectedItem = controlsController.get().getFavorites().maxByOrNull {
205 val allStructures = controlsController.get().getFavorites()
237 allStructures = controlsController.get().getFavorites()
240 if (controlsController.get().addSeedingFavoritesCallback(onSeedingComplete)) {
257 controlsController.get().subscribeToFavorites(selected.structure)
259 controlsController.get().bindComponentForPanel(selected.componentName)
280 controlsController.get().unsubscribe()
677 controlsController.get(),
683 controlsController.get().currentUserId,
[all …]
H A DControlViewHolder.kt66 val controlsController: ControlsController,
248 controlsController.action(cws.componentName, cws.ci, action)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
H A DControlsProviderSelectorActivityTest.kt77 @Mock lateinit var controlsController: ControlsController
99 controlsController,
190 verify(controlsController).setPreferredSelection(capture(selectedComponentCaptor))
225 controlsController: ControlsController,
236 controlsController,
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DDeviceControlsControllerImpl.kt134 val controlsController = controlsComponent.getControlsController().get() regex
141 if (controlsController.countFavoritesForComponent(it.componentName) > 0) {
159 controlsController.seedFavoritesForComponents(
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
H A DControlsProviderSelectorActivity.kt57 private val controlsController: ControlsController,
148 FavoritesRenderer(resources, controlsController::countFavoritesForComponent),
193 controlsController.setPreferredSelection(selected)