Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/color/
H A DColorDisplayServiceTest.java56 import com.android.server.twilight.TwilightState;
591 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOffAfterNight_turnsOff()
606 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOffBeforeNight_turnsOff()
621 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOffDuringNight_turnsOff()
636 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOffInFuture_turnsOff()
651 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOnAfterNight_turnsOn()
666 final TwilightState state = mTwilightManager.getLastTwilightState(); in twilightSchedule_whenRebootedAfterNight_ifOnBeforeNight_turnsOff()
1351 return new TwilightState(sunriseMillis, sunsetMillis); in getTwilightStateRelativeToNow()
1357 private TwilightState mTwilightState;
1364 void setTwilightState(TwilightState state) { in setTwilightState()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/twilight/
H A 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()
H A DTwilightService.java75 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()
H A DTwilightListener.java28 void onTwilightStateChanged(@Nullable TwilightState state); in onTwilightStateChanged()
H A DTwilightManager.java44 TwilightState getLastTwilightState(); in getLastTwilightState()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/twilight/
H A DTwilightServiceTest.java47 final TwilightState priorState = mTwilightService.mLastTwilightState; in testValidLocation_updatedLocation()
55 final TwilightState priorState = mTwilightService.mLastTwilightState; in testInvalidLocation_ignoreLocationUpdate()
/aosp14/frameworks/base/services/core/java/com/android/server/display/color/
H A DColorDisplayService.java83 import com.android.server.twilight.TwilightState;
1243 private void updateActivated(TwilightState state) { in updateActivated()
1289 public void onTwilightStateChanged(@Nullable TwilightState state) { in onTwilightStateChanged()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DUiModeManagerService.java98 import com.android.server.twilight.TwilightState;
288 public void onTwilightStateChanged(@Nullable TwilightState state) {
1639 final TwilightState lastState = mTwilightManager.getLastTwilightState(); in updateConfigurationLocked()
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/
H A DUiModeManagerServiceTest.java94 import com.android.server.twilight.TwilightState;
134 private TwilightState mTwilightState;