Home
last modified time | relevance | path

Searched refs:mReduceBrightColorsController (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DReduceBrightColorsTileTest.java72 private ReduceBrightColorsController mReduceBrightColorsController; field in ReduceBrightColorsTileTest
89 mReduceBrightColorsController, in setUp()
113 when(mReduceBrightColorsController.isReduceBrightColorsActivated()).thenReturn(false); in testNotActive()
124 when(mReduceBrightColorsController.isReduceBrightColorsActivated()).thenReturn(true); in testActive()
135 when(mReduceBrightColorsController.isReduceBrightColorsActivated()).thenReturn(false); in testActive_clicked_featureIsActivated()
143 verify(mReduceBrightColorsController, times(1)) in testActive_clicked_featureIsActivated()
149 when(mReduceBrightColorsController.isReduceBrightColorsActivated()).thenReturn(true); in testIcon_whenTileEnabled_isOnState()
160 when(mReduceBrightColorsController.isReduceBrightColorsActivated()).thenReturn(false); in testIcon_whenTileDisabled_isOffState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DReduceBrightColorsTile.java55 private final ReduceBrightColorsController mReduceBrightColorsController; field in ReduceBrightColorsTile
74 mReduceBrightColorsController = reduceBrightColorsController; in ReduceBrightColorsTile()
75 mReduceBrightColorsController.observe(getLifecycle(), this); in ReduceBrightColorsTile()
101 mReduceBrightColorsController.setReduceBrightColorsActivated(!mState.value); in handleClick()
111 state.value = mReduceBrightColorsController.isReduceBrightColorsActivated(); in handleUpdateState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DAutoTileManagerTest.java119 @Mock private ReduceBrightColorsController mReduceBrightColorsController; field in AutoTileManagerTest
203 mCastController, mReduceBrightColorsController, mDeviceControlsController, in createAutoTileManager()
276 InOrder inOrderReduceBrightColors = inOrder(mReduceBrightColorsController); in testChangeUserCallbacksStoppedAndStarted()
277 inOrderReduceBrightColors.verify(mReduceBrightColorsController).removeCallback(any()); in testChangeUserCallbacksStoppedAndStarted()
278 inOrderReduceBrightColors.verify(mReduceBrightColorsController).addCallback(any()); in testChangeUserCallbacksStoppedAndStarted()
330 InOrder inOrderReduceBrightColors = inOrder(mReduceBrightColorsController); in testChangeUserSomeCallbacksNotAdded()
331 inOrderReduceBrightColors.verify(mReduceBrightColorsController).removeCallback(any()); in testChangeUserSomeCallbacksNotAdded()
332 inOrderReduceBrightColors.verify(mReduceBrightColorsController).addCallback(any()); in testChangeUserSomeCallbacksNotAdded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java93 private final ReduceBrightColorsController mReduceBrightColorsController; field in AutoTileManager
123 mReduceBrightColorsController = reduceBrightColorsController; in AutoTileManager()
177 mReduceBrightColorsController.addCallback(mReduceBrightColorsCallback); in startControllersAndSettingsListeners()
210 mReduceBrightColorsController.removeCallback(mReduceBrightColorsCallback); in stopListening()
421 mHandler.post(() -> mReduceBrightColorsController.removeCallback(this));