Searched refs:mTwilightState (Results 1 – 2 of 2) sorted by relevance
96 private TwilightState mTwilightState; field in UiModeManagerServiceTest125 when(mTwilightManager.getLastTwilightState()).thenReturn(mTwilightState); in setUp()126 when(mTwilightState.isNight()).thenReturn(true); in setUp()176 doReturn(false).when(mTwilightState).isNight(); in setNightMoveActivated_overridesFunctionCorrectly()187 doReturn(true).when(mTwilightState).isNight(); in setNightMoveActivated_overridesFunctionCorrectly()188 mTwilightListener.onTwilightStateChanged(mTwilightState); in setNightMoveActivated_overridesFunctionCorrectly()193 doReturn(false).when(mTwilightState).isNight(); in setNightMoveActivated_overridesFunctionCorrectly()194 mTwilightListener.onTwilightStateChanged(mTwilightState); in setNightMoveActivated_overridesFunctionCorrectly()232 when(mTwilightState.isNight()).thenReturn(false); in autoNightModeSwitch_batterySaverOn()423 when(mTwilightState.isNight()).thenReturn(true); in nightAuto_appliesOnlyWhenScreenOff()
1344 private TwilightState mTwilightState; field in ColorDisplayServiceTest.MockTwilightManager1353 mTwilightState = state; in setTwilightState()1390 return mTwilightState; in getLastTwilightState()