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 D | ControlsStartableTest.kt | 68 @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 D | ControlsStartable.kt | 67 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 D | HomeControlsKeyguardQuickAffordanceConfigTest.kt | 71 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 D | HomeControlsKeyguardQuickAffordanceConfigParameterizedStateTest.kt | 78 @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 D | ControlsUiControllerImplTest.kt | 86 @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 D | DeviceControlsControllerImplTest.kt | 69 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 D | DeviceControlsTileTest.kt | 94 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 D | ControlsUiControllerImpl.kt | 93 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 D | ControlViewHolder.kt | 66 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 D | ControlsProviderSelectorActivityTest.kt | 77 @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 D | DeviceControlsControllerImpl.kt | 134 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 D | ControlsProviderSelectorActivity.kt | 57 private val controlsController: ControlsController, 148 FavoritesRenderer(resources, controlsController::countFavoritesForComponent), 193 controlsController.setPreferredSelection(selected)
|