/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | DeviceControlsTileTest.kt | 88 private lateinit var controlsComponent: ControlsComponent variable in com.android.systemui.qs.tiles.DeviceControlsTileTest 121 `when`(controlsComponent.isEnabled()).thenReturn(true) in setUp() 139 `when`(controlsComponent.getControlsController()).thenAnswer { in setupControlsComponent() 147 `when`(controlsComponent.getControlsListingController()).thenAnswer { in setupControlsComponent() 155 `when`(controlsComponent.getControlsUiController()).thenAnswer { in setupControlsComponent() 163 `when`(controlsComponent.getTileTitleId()).thenReturn(R.string.quick_controls_title) in setupControlsComponent() 164 `when`(controlsComponent.getTileTitleId()).thenReturn(R.drawable.controls_icon) in setupControlsComponent() 225 `when`(controlsComponent.isEnabled()).thenReturn(false) in testStateUnavailableIfNotEnabled() 239 `when`(controlsComponent.getVisibility()).thenReturn(ControlsComponent.Visibility.AVAILABLE) in testStateActiveIfListingsHasControlsFavorited() 260 `when`(controlsComponent.getVisibility()).thenReturn(ControlsComponent.Visibility.AVAILABLE) in testStateInactiveIfListingsHasNoControlsFavorited() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | DeviceControlsTile.kt | 59 private val controlsComponent: ControlsComponent constant 76 get() = ResourceIcon.get(controlsComponent.getTileImageId()) 87 controlsComponent.getControlsListingController().ifPresent { in <lambda>() 93 return controlsComponent.getControlsController().isPresent in isAvailable() 109 component = ComponentName(mContext, controlsComponent.getControlsUiController().get() in handleClick() 134 if (controlsComponent.isEnabled() && hasControlsApps.get()) { in handleUpdateState() 135 if (controlsComponent.getVisibility() == AVAILABLE) { in handleUpdateState() 136 val selection = controlsComponent in handleUpdateState() 167 return mContext.getText(controlsComponent.getTileTitleId()) in getTileLabel()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | DeviceControlsControllerImpl.kt | 47 private val controlsComponent: ControlsComponent, in <lambda>() constant in com.android.systemui.statusbar.policy.DeviceControlsControllerImpl 74 controlsComponent.getControlsController().ifPresent { in <lambda>() 89 if (!controlsComponent.isEnabled()) { in <lambda>() 101 controlsComponent.getControlsListingController().ifPresent { in <lambda>() 110 controlsComponent.getControlsListingController().ifPresent { in <lambda>() 134 val controlsController = controlsComponent.getControlsController().get() in <lambda>() 170 controlsComponent.getControlsListingController().ifPresent { in <lambda>()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/homecontrols/ |
D | HomeControlsComponentInteractorKosmos.kt | 36 controlsComponent = controlsComponent, in <lambda>() 47 val Kosmos.controlsComponent by Kosmos.Fixture<ControlsComponent> { mock() } in <lambda>() constant
|
D | HomeControlsDreamStartableTest.kt | 67 private lateinit var controlsComponent: ControlsComponent variable in com.android.systemui.dreams.homecontrols.HomeControlsDreamStartableTest 81 controlsComponent = kosmos.controlsComponent in setUp() 88 whenever(controlsComponent.getControlsListingController()) in setUp()
|
D | HomeControlsComponentInteractorTest.kt | 73 whenever(controlsComponent.getControlsListingController()) in setUp() 166 whenever(controlsComponent.getControlsListingController()) in testPanelComponentReturnsNullWhenControlsComponentReturnsNullForListingController()
|
D | HomeControlsDreamServiceTest.kt | 89 whenever(kosmos.controlsComponent.getControlsListingController()) in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | DeviceControlsControllerImplTest.kt | 67 private lateinit var controlsComponent: ControlsComponent variable in com.android.systemui.statusbar.policy.DeviceControlsControllerImplTest 101 `when`(controlsComponent.getControlsController()) in capture() 103 `when`(controlsComponent.getControlsListingController()) in capture() 106 `when`(controlsComponent.isEnabled()).thenReturn(true) in capture() 110 controlsComponent, in capture() 177 `when`(controlsComponent.isEnabled()).thenReturn(false) in testControlsDisabledRemoveFromAutoTracker()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/start/ |
D | ControlsStartable.kt | 70 private val controlsComponent: ControlsComponent, in <lambda>() constant in com.android.systemui.controls.start.ControlsStartable 82 get() = controlsComponent.getControlsController().get() in <lambda>() 85 get() = controlsComponent.getControlsListingController().get() in <lambda>() 100 if (!controlsComponent.isEnabled()) { in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/ |
D | DreamHomeControlsComplication.java | 120 ControlsComponent controlsComponent, in Registrant() argument 125 mControlsComponent = controlsComponent; in Registrant() 226 ControlsComponent controlsComponent, in DreamHomeControlsChipViewController() argument 233 mControlsComponent = controlsComponent; in DreamHomeControlsChipViewController()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/homecontrols/domain/interactor/ |
D | HomeControlsComponentInteractor.kt | 65 controlsComponent: ControlsComponent, in <lambda>() 75 controlsComponent.getControlsListingController().getOrNull() in <lambda>()
|