Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/display/color/
DColorDisplayServiceTest.java71 private MockTwilightManager mTwilightManager; field in ColorDisplayServiceTest
96 mTwilightManager = new MockTwilightManager(); in setUp()
97 LocalServices.addService(TwilightManager.class, mTwilightManager); in setUp()
111 mTwilightManager = null; in tearDown()
561 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOffAfterNight_turnsOff()
562 mTwilightManager.setTwilightState(null); in twilightSchedule_whenRebootedAfterNight_ifOffAfterNight_turnsOff()
567 mTwilightManager.setTwilightState(state); in twilightSchedule_whenRebootedAfterNight_ifOffAfterNight_turnsOff()
576 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOffBeforeNight_turnsOff()
577 mTwilightManager.setTwilightState(null); in twilightSchedule_whenRebootedAfterNight_ifOffBeforeNight_turnsOff()
582 mTwilightManager.setTwilightState(state); in twilightSchedule_whenRebootedAfterNight_ifOffBeforeNight_turnsOff()
[all …]
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java113 private TwilightManager mTwilightManager; field in UiModeManagerService
487 if (mTwilightManager != null) { in dumpImpl()
490 pw.println(mTwilightManager.getLastTwilightState()); in dumpImpl()
499 mTwilightManager = getLocalService(TwilightManager.class); in onBootPhase()
564 if (mTwilightManager != null) { in updateConfigurationLocked()
565 mTwilightManager.registerListener(mTwilightListener, mHandler); in updateConfigurationLocked()
571 if (mTwilightManager != null) { in updateConfigurationLocked()
572 mTwilightManager.unregisterListener(mTwilightListener); in updateConfigurationLocked()
840 if (mTwilightManager != null) { in updateComputedNightModeLocked()
841 TwilightState state = mTwilightManager.getLastTwilightState(); in updateComputedNightModeLocked()
/frameworks/base/services/core/java/com/android/server/display/color/
DColorDisplayService.java1002 private final TwilightManager mTwilightManager; field in ColorDisplayService.TwilightNightDisplayAutoMode
1006 mTwilightManager = getLocalService(TwilightManager.class); in TwilightNightDisplayAutoMode()
1041 mTwilightManager.registerListener(this, mHandler); in onStart()
1045 updateActivated(mTwilightManager.getLastTwilightState()); in onStart()
1050 mTwilightManager.unregisterListener(this); in onStop()