Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/display/color/
DColorDisplayServiceTest.java78 private MockTwilightManager mTwilightManager; field in ColorDisplayServiceTest
108 mTwilightManager = new MockTwilightManager(); in setUp()
109 LocalServices.addService(TwilightManager.class, mTwilightManager); in setUp()
123 mTwilightManager = null; in tearDown()
575 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOffAfterNight_turnsOff()
576 mTwilightManager.setTwilightState(null); in twilightSchedule_whenRebootedAfterNight_ifOffAfterNight_turnsOff()
581 mTwilightManager.setTwilightState(state); in twilightSchedule_whenRebootedAfterNight_ifOffAfterNight_turnsOff()
590 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOffBeforeNight_turnsOff()
591 mTwilightManager.setTwilightState(null); in twilightSchedule_whenRebootedAfterNight_ifOffBeforeNight_turnsOff()
596 mTwilightManager.setTwilightState(state); in twilightSchedule_whenRebootedAfterNight_ifOffBeforeNight_turnsOff()
[all …]
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java133 private TwilightManager mTwilightManager; field in UiModeManagerService
154 mTwilightManager = tm; in UiModeManagerService()
677 if (mTwilightManager != null) { in dumpImpl()
680 pw.println(mTwilightManager.getLastTwilightState()); in dumpImpl()
689 mTwilightManager = getLocalService(TwilightManager.class); in onBootPhase()
876 if (mTwilightManager != null) { in updateConfigurationLocked()
877 mTwilightManager.registerListener(mTwilightListener, mHandler); in updateConfigurationLocked()
878 final TwilightState lastState = mTwilightManager.getLastTwilightState(); in updateConfigurationLocked()
884 if (mTwilightManager != null) { in updateConfigurationLocked()
885 mTwilightManager.unregisterListener(mTwilightListener); in updateConfigurationLocked()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiModeManagerServiceTest.java68 TwilightManager mTwilightManager; field in UiModeManagerServiceTest
78 mTwilightManager, mPowerManager, true); in setUp()
/frameworks/base/services/core/java/com/android/server/display/color/
DColorDisplayService.java1058 private final TwilightManager mTwilightManager; field in ColorDisplayService.TwilightNightDisplayAutoMode
1062 mTwilightManager = getLocalService(TwilightManager.class); in TwilightNightDisplayAutoMode()
1097 mTwilightManager.registerListener(this, mHandler); in onStart()
1101 updateActivated(mTwilightManager.getLastTwilightState()); in onStart()
1106 mTwilightManager.unregisterListener(this); in onStop()