Searched refs:TwilightState (Results 1 – 9 of 9) sorted by relevance
32 public final class TwilightState { class37 public TwilightState(long sunriseTimeMillis, long sunsetTimeMillis) { in TwilightState() method in TwilightState84 return o instanceof TwilightState && equals((TwilightState) o); in equals()87 public boolean equals(TwilightState other) { in equals()
75 protected TwilightState mLastTwilightState;111 public TwilightState getLastTwilightState() { in onStart()216 final TwilightState state = calculateTwilightState(location, currentTimeMillis); in updateTwilightState()279 private static TwilightState calculateTwilightState(Location location, long timeMillis) { in calculateTwilightState()308 return new TwilightState(sunriseTimeMillis, sunsetTimeMillis); in calculateTwilightState()
28 void onTwilightStateChanged(@Nullable TwilightState state); in onTwilightStateChanged()
44 TwilightState getLastTwilightState(); in getLastTwilightState()
60 import com.android.server.twilight.TwilightState;596 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOffAfterNight_turnsOff()611 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOffBeforeNight_turnsOff()626 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOffDuringNight_turnsOff()641 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOffInFuture_turnsOff()656 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOnAfterNight_turnsOn()671 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOnBeforeNight_turnsOff()686 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOnDuringNight_turnsOff()701 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOnInFuture_turnsOff()716 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedBeforeNight_ifOffAfterNight_turnsOff()[all …]
47 final TwilightState priorState = mTwilightService.mLastTwilightState; in testValidLocation_updatedLocation()55 final TwilightState priorState = mTwilightService.mLastTwilightState; in testInvalidLocation_ignoreLocationUpdate()
85 import com.android.server.twilight.TwilightState;1279 private void updateActivated(TwilightState state) { in updateActivated()1325 public void onTwilightStateChanged(@Nullable TwilightState state) { in onTwilightStateChanged()
106 import com.android.server.twilight.TwilightState;317 public void onTwilightStateChanged(@Nullable TwilightState state) {1735 final TwilightState lastState = mTwilightManager.getLastTwilightState(); in updateConfigurationLocked()
104 import com.android.server.twilight.TwilightState;146 private TwilightState mTwilightState;