Home
last modified time | relevance | path

Searched refs:TwilightState (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/display/color/
DColorDisplayServiceTest.java53 import com.android.server.twilight.TwilightState;
575 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOffAfterNight_turnsOff()
590 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOffBeforeNight_turnsOff()
605 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOffDuringNight_turnsOff()
620 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOffInFuture_turnsOff()
635 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOnAfterNight_turnsOn()
650 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOnBeforeNight_turnsOff()
665 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOnDuringNight_turnsOff()
680 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOnInFuture_turnsOff()
695 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedBeforeNight_ifOffAfterNight_turnsOff()
[all …]
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightState.java32 public final class TwilightState { class
37 public TwilightState(long sunriseTimeMillis, long sunsetTimeMillis) { in TwilightState() method in TwilightState
84 return o instanceof TwilightState && equals((TwilightState) o); in equals()
87 public boolean equals(TwilightState other) { in equals()
DTwilightService.java73 protected TwilightState mLastTwilightState;
109 public TwilightState getLastTwilightState() { in onStart()
209 final TwilightState state = calculateTwilightState(location, currentTimeMillis); in updateTwilightState()
281 private static TwilightState calculateTwilightState(Location location, long timeMillis) { in calculateTwilightState()
310 return new TwilightState(sunriseTimeMillis, sunsetTimeMillis); in calculateTwilightState()
DTwilightListener.java28 void onTwilightStateChanged(@Nullable TwilightState state); in onTwilightStateChanged()
DTwilightManager.java44 TwilightState getLastTwilightState(); in getLastTwilightState()
/frameworks/base/services/tests/servicestests/src/com/android/server/twilight/
DTwilightServiceTest.java47 final TwilightState priorState = mTwilightService.mLastTwilightState; in testValidLocation_updatedLocation()
55 final TwilightState priorState = mTwilightService.mLastTwilightState; in testInvalidLocation_ignoreLocationUpdate()
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java68 import com.android.server.twilight.TwilightState;
217 public void onTwilightStateChanged(@Nullable TwilightState state) {
878 final TwilightState lastState = mTwilightManager.getLastTwilightState(); in updateConfigurationLocked()
/frameworks/base/services/core/java/com/android/server/display/color/
DColorDisplayService.java79 import com.android.server.twilight.TwilightState;
1065 private void updateActivated(TwilightState state) { in updateActivated()
1111 public void onTwilightStateChanged(@Nullable TwilightState state) { in onTwilightStateChanged()
/frameworks/base/services/
Dart-profile6941 …TwilightNightDisplayAutoMode;->onTwilightStateChanged(Lcom/android/server/twilight/TwilightState;)V
6942 …ervice$TwilightNightDisplayAutoMode;->updateActivated(Lcom/android/server/twilight/TwilightState;)V
13487 …rver/twilight/TwilightService$1;->getLastTwilightState()Lcom/android/server/twilight/TwilightState;
13493 …e;->calculateTwilightState(Landroid/location/Location;J)Lcom/android/server/twilight/TwilightState;
13503 PLcom/android/server/twilight/TwilightState;->equals(Ljava/lang/Object;)Z