Searched refs:mTwilightManager (Results 1 – 4 of 4) sorted by relevance
79 private MockTwilightManager mTwilightManager; field in ColorDisplayServiceTest141 mTwilightManager = null; in tearDown()592 mTwilightManager.setTwilightState(null); in twilightSchedule_whenRebootedAfterNight_ifOffAfterNight_turnsOff()607 mTwilightManager.setTwilightState(null); in twilightSchedule_whenRebootedAfterNight_ifOffBeforeNight_turnsOff()622 mTwilightManager.setTwilightState(null); in twilightSchedule_whenRebootedAfterNight_ifOffDuringNight_turnsOff()637 mTwilightManager.setTwilightState(null); in twilightSchedule_whenRebootedAfterNight_ifOffInFuture_turnsOff()652 mTwilightManager.setTwilightState(null); in twilightSchedule_whenRebootedAfterNight_ifOnAfterNight_turnsOn()667 mTwilightManager.setTwilightState(null); in twilightSchedule_whenRebootedAfterNight_ifOnBeforeNight_turnsOff()682 mTwilightManager.setTwilightState(null); in twilightSchedule_whenRebootedAfterNight_ifOnDuringNight_turnsOff()697 mTwilightManager.setTwilightState(null); in twilightSchedule_whenRebootedAfterNight_ifOnInFuture_turnsOff()[all …]
181 private TwilightManager mTwilightManager; field in UiModeManagerService226 mTwilightManager = tm; in UiModeManagerService()428 if (twilightManager != null) mTwilightManager = twilightManager; in onBootPhase()489 if (twilightManager != null) mTwilightManager = twilightManager; in onStart()1433 if (mTwilightManager != null) { in dumpImpl()1436 pw.println(mTwilightManager.getLastTwilightState()); in dumpImpl()1637 if (mTwilightManager != null) { in updateConfigurationLocked()1644 if (mTwilightManager != null) { in updateConfigurationLocked()1645 mTwilightManager.unregisterListener(mTwilightListener); in updateConfigurationLocked()1992 if (mNightMode != MODE_NIGHT_AUTO || (mTwilightManager != null in updateComputedNightModeLocked()[all …]
126 private TwilightManager mTwilightManager; field in UiModeManagerServiceTest162 }).when(mTwilightManager).registerListener(any(), any()); in setUp()178 when(mTwilightManager.getLastTwilightState()).thenReturn(mTwilightState); in setUp()210 addLocalService(TwilightManager.class, mTwilightManager); in setUp()214 mTwilightManager, mInjector); in setUp()1277 mTwilightManager, new TestInjector(Process.SHELL_UID)); in enableCarMode_shell()1310 mTwilightManager, new TestInjector(Process.SHELL_UID)); in disableCarMode_shell()
1236 private final TwilightManager mTwilightManager; field in ColorDisplayService.TwilightNightDisplayAutoMode1240 mTwilightManager = getLocalService(TwilightManager.class); in TwilightNightDisplayAutoMode()1275 mTwilightManager.registerListener(this, mHandler); in onStart()1279 updateActivated(mTwilightManager.getLastTwilightState()); in onStart()1284 mTwilightManager.unregisterListener(this); in onStop()