Home
last modified time | relevance | path

Searched refs:isNight (Results 1 – 5 of 5) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/twilight/
H A DTwilightState.java77 public boolean isNight() { in isNight() method in TwilightState
H A DTwilightService.java236 final long triggerAtMillis = state.isNight() in updateTwilightState()
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/
H A DUiModeManagerServiceTest.java179 when(mTwilightState.isNight()).thenReturn(true); in setUp()
235 doReturn(false).when(mTwilightState).isNight(); in setNightModeActivated_overridesFunctionCorrectly()
246 doReturn(true).when(mTwilightState).isNight(); in setNightModeActivated_overridesFunctionCorrectly()
252 doReturn(false).when(mTwilightState).isNight(); in setNightModeActivated_overridesFunctionCorrectly()
464 when(mTwilightState.isNight()).thenReturn(false); in autoNightModeSwitch_batterySaverOn()
637 doReturn(true).when(mTwilightState).isNight(); in nightModeAuto_thenChangeToCustomTypeBedtime_notInBedtime_shouldDeactivateNightMode()
652 doReturn(true).when(mTwilightState).isNight(); in nightModeAuto_thenChangeToCustomTypeBedtime_duringBedtime_shouldActivateNightMode()
895 when(mTwilightState.isNight()).thenReturn(true); in nightAuto_appliesOnlyWhenScreenOff()
/aosp14/frameworks/base/services/core/java/com/android/server/display/color/
H A DColorDisplayService.java1250 boolean activate = state.isNight(); in updateActivated()
1291 + (state == null ? null : state.isNight())); in onTwilightStateChanged()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DUiModeManagerService.java1640 activateNightMode = lastState == null ? mComputedNightMode : lastState.isNight(); in updateConfigurationLocked()