Searched refs:mTwilightState (Results 1 – 2 of 2) sorted by relevance
146 private TwilightState mTwilightState; field in UiModeManagerServiceTest209 when(mTwilightManager.getLastTwilightState()).thenReturn(mTwilightState); in setUp()210 when(mTwilightState.isNight()).thenReturn(true); in setUp()270 doReturn(false).when(mTwilightState).isNight(); in setNightModeActivated_overridesFunctionCorrectly()281 doReturn(true).when(mTwilightState).isNight(); in setNightModeActivated_overridesFunctionCorrectly()282 mTwilightListener.onTwilightStateChanged(mTwilightState); in setNightModeActivated_overridesFunctionCorrectly()287 doReturn(false).when(mTwilightState).isNight(); in setNightModeActivated_overridesFunctionCorrectly()288 mTwilightListener.onTwilightStateChanged(mTwilightState); in setNightModeActivated_overridesFunctionCorrectly()498 when(mTwilightState.isNight()).thenReturn(false); in autoNightModeSwitch_batterySaverOn()671 doReturn(true).when(mTwilightState).isNight(); in nightModeAuto_thenChangeToCustomTypeBedtime_notInBedtime_shouldDeactivateNightMode()[all …]
1376 private TwilightState mTwilightState; field in ColorDisplayServiceTest.MockTwilightManager1385 mTwilightState = state; in setTwilightState()1422 return mTwilightState; in getLastTwilightState()