/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/start/ |
D | ControlsStartableTest.kt | 83 @Mock private lateinit var controlsController: ControlsController variable in com.android.systemui.controls.start.ControlsStartableTest 112 verifyZeroInteractions(controlsController, controlsListingController, userTracker) in testDisabledNothingIsCalled() 122 verifyZeroInteractions(controlsController, controlsListingController, userTracker) in testNothingCalledOnStart() 127 `when`(controlsController.getPreferredSelection()).thenReturn(SelectedItem.EMPTY_SELECTION) in testNoPreferredPackagesNoDefaultSelected_noNewSelection() 134 verify(controlsController, never()).setPreferredSelection(any()) in testNoPreferredPackagesNoDefaultSelected_noNewSelection() 141 `when`(controlsController.getPreferredSelection()).thenReturn(SelectedItem.EMPTY_SELECTION) in testPreferredPackagesNotInstalled_noNewSelection() 147 verify(controlsController, never()).setPreferredSelection(any()) in testPreferredPackagesNotInstalled_noNewSelection() 154 `when`(controlsController.getPreferredSelection()).thenReturn(SelectedItem.EMPTY_SELECTION) in testPreferredPackageNotPanel_noNewSelection() 161 verify(controlsController, never()).setPreferredSelection(any()) in testPreferredPackageNotPanel_noNewSelection() 168 `when`(controlsController.getPreferredSelection()) in testExistingSelection_noNewSelection() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/quickaffordance/ |
D | HomeControlsKeyguardQuickAffordanceConfigTest.kt | 69 val controlsController = mock<ControlsController>() in <lambda>() constant 70 whenever(component.getControlsController()).thenReturn(Optional.of(controlsController)) in <lambda>() 73 whenever(controlsController.getFavorites()).thenReturn(listOf(mock())) in <lambda>() 88 val controlsController = mock<ControlsController>() in <lambda>() constant 89 whenever(component.getControlsController()).thenReturn(Optional.of(controlsController)) in <lambda>() 92 whenever(controlsController.getFavorites()).thenReturn(listOf(mock())) in <lambda>()
|
D | HomeControlsKeyguardQuickAffordanceConfigParameterizedStateTest.kt | 77 @Mock private lateinit var controlsController: ControlsController in <lambda>() variable in com.android.systemui.keyguard.data.quickaffordance.HomeControlsKeyguardQuickAffordanceConfigParameterizedStateTest 100 whenever(component.getControlsController()).thenReturn(Optional.of(controlsController)) in <lambda>() 137 whenever(controlsController.getFavorites()) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/start/ |
D | ControlsStartable.kt | 81 private val controlsController: ControlsController in <lambda>() constant in com.android.systemui.controls.start.ControlsStartable 90 controlsController.changeUser(UserHandle.of(newUser)) in <lambda>() 135 val currentSelection = controlsController.getPreferredSelection() in <lambda>() 148 controlsController.setPreferredSelection( in <lambda>() 176 val currentSelection = controlsController.getPreferredSelection() in <lambda>() 182 controlsController.bindComponentForPanel(currentSelection.componentName) in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | DeviceControlsControllerImplTest.kt | 69 private lateinit var controlsController: ControlsController variable in com.android.systemui.statusbar.policy.DeviceControlsControllerImplTest 102 .thenReturn(Optional.of(controlsController)) in capture() 128 `when`(controlsController.getFavorites()).thenReturn(emptyList()) in testNoCallbackWhenNoServicesAvailable() 147 `when`(controlsController.getFavorites()).thenReturn(listOf(structureInfo)) in testSetPriorityPositionIsSetWhenFavoritesAreAvailable() 157 `when`(controlsController.getFavorites()).thenReturn(emptyList()) in testSetDefaultPositionIsSetWhenNoFavoritesAreAvailable() 167 verify(controlsController).seedFavoritesForComponents( in testSetDefaultPositionIsSetWhenNoFavoritesAreAvailable()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
D | ControlsUiControllerImplTest.kt | 91 @Mock lateinit var controlsController: ControlsController variable in com.android.systemui.controls.ui.ControlsUiControllerImplTest 140 { controlsController }, in setup() 196 verify(controlsController, never()).refreshStatus(any(), any()) in testPanelDoesNotRefreshControls() 205 verify(controlsController).bindComponentForPanel(panel.componentName) in testPanelBindsForPanel() 404 whenever(controlsController.addSeedingFavoritesCallback(any())).thenReturn(true) in testResolveActivityWhileSeeding_ControlsActivity() 410 whenever(controlsController.addSeedingFavoritesCallback(any())).thenReturn(false) in testResolveActivityNotSeedingNoFavoritesNoPanels_ControlsProviderSelectorActivity() 411 whenever(controlsController.getFavorites()).thenReturn(emptyList()) in testResolveActivityNotSeedingNoFavoritesNoPanels_ControlsProviderSelectorActivity() 436 whenever(controlsController.addSeedingFavoritesCallback(any())).thenReturn(true) in testResolveActivityNotSeedingNoDefaultNoFavoritesPanel_ControlsActivity() 437 whenever(controlsController.getFavorites()).thenReturn(emptyList()) in testResolveActivityNotSeedingNoDefaultNoFavoritesPanel_ControlsActivity() 461 verify(controlsController, never()).unsubscribe() in testHideDifferentParentDoesntCancelListeners() [all …]
|
D | TemperatureControlBehaviorTest.kt | 31 @Mock lateinit var controlsController: ControlsController variable in com.android.systemui.controls.ui.TemperatureControlBehaviorTest 46 controlsController, in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | DeviceControlsTileTest.kt | 94 private lateinit var controlsController: ControlsController variable in com.android.systemui.qs.tiles.DeviceControlsTileTest 122 `when`(controlsController.getPreferredSelection()) in setUp() 141 Optional.of(controlsController) in setupControlsComponent() 240 `when`(controlsController.getPreferredSelection()).thenReturn( in testStateActiveIfListingsHasControlsFavorited() 261 `when`(controlsController.getPreferredSelection()) in testStateInactiveIfListingsHasNoControlsFavorited() 278 `when`(controlsController.getPreferredSelection()) in testStateActiveIfPreferredIsPanel() 334 `when`(controlsController.getPreferredSelection()).thenReturn( in handleClick_available_shownOverLockscreenWhenLocked() 365 `when`(controlsController.getPreferredSelection()).thenReturn( in handleClick_availableAfterUnlock_notShownOverLockscreenWhenLocked()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | ControlsProviderSelectorActivityTest.kt | 77 @Mock lateinit var controlsController: ControlsController variable in com.android.systemui.controls.management.ControlsProviderSelectorActivityTest 99 controlsController, in <lambda>() 190 verify(controlsController).setPreferredSelection(capture(selectedComponentCaptor)) in dialogAcceptAddsPackage() 225 controlsController: ControlsController, 236 controlsController,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | ControlsUiControllerImpl.kt | 94 val controlsController: Lazy<ControlsController>, in <lambda>() constant in com.android.systemui.controls.ui.ControlsUiControllerImpl 153 selectedItem = controlsController.get().getFavorites().maxByOrNull { in <lambda>() 206 val allStructures = controlsController.get().getFavorites() in <lambda>() 211 return if (controlsController.get().addSeedingFavoritesCallback(onSeedingComplete)) { in <lambda>() 238 allStructures = controlsController.get().getFavorites() in <lambda>() 241 if (controlsController.get().addSeedingFavoritesCallback(onSeedingComplete)) { in <lambda>() 258 controlsController.get().subscribeToFavorites(selected.structure) in <lambda>() 260 controlsController.get().bindComponentForPanel(selected.componentName) in <lambda>() 281 controlsController.get().unsubscribe() in <lambda>() 340 if (!shouldRemove || !controlsController.get().removeFavorites(componentName)) { in <lambda>() [all …]
|
D | ControlViewHolder.kt | 66 val controlsController: ControlsController, constant in com.android.systemui.controls.ui.ControlViewHolder 248 controlsController.action(cws.componentName, cws.ci, action) in updateContentDescription()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | DeviceControlsControllerImpl.kt | 134 val controlsController = controlsComponent.getControlsController().get() in <lambda>() constant 141 if (controlsController.countFavoritesForComponent(it.componentName) > 0) { in <lambda>() 159 controlsController.seedFavoritesForComponents( in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/dagger/ |
D | ControlsComponent.kt | 56 private val controlsController: Optional<ControlsController> = constant 69 fun getControlsController(): Optional<ControlsController> = controlsController in getControlsController()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
D | ControlsProviderSelectorActivity.kt | 57 private val controlsController: ControlsController, in <lambda>() constant in com.android.systemui.controls.management.ControlsProviderSelectorActivity 148 FavoritesRenderer(resources, controlsController::countFavoritesForComponent), in <lambda>() 193 controlsController.setPreferredSelection(selected) in <lambda>()
|