Searched refs:mTwilightManager (Results 1 – 4 of 4) sorted by relevance
78 private MockTwilightManager mTwilightManager; field in ColorDisplayServiceTest108 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 …]
133 private TwilightManager mTwilightManager; field in UiModeManagerService154 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()
68 TwilightManager mTwilightManager; field in UiModeManagerServiceTest78 mTwilightManager, mPowerManager, true); in setUp()
1058 private final TwilightManager mTwilightManager; field in ColorDisplayService.TwilightNightDisplayAutoMode1062 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()