Searched refs:mTwilightManager (Results 1 – 3 of 3) sorted by relevance
71 private MockTwilightManager mTwilightManager; field in ColorDisplayServiceTest96 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 …]
113 private TwilightManager mTwilightManager; field in UiModeManagerService487 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()
1002 private final TwilightManager mTwilightManager; field in ColorDisplayService.TwilightNightDisplayAutoMode1006 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()