OSDN Git Service

Make NightDisplayService robust to early alarms
authorJustin Klaassen <justinklaassen@google.com>
Mon, 8 Aug 2016 22:01:47 +0000 (15:01 -0700)
committerJustin Klaassen <justinklaassen@google.com>
Thu, 11 Aug 2016 01:22:42 +0000 (18:22 -0700)
commit4346f63dbfb23379d967c793dd0851d408f48a2e
tree179b53a951c150d711f57b6a39dccd29819e48e6
parent262f0186bd41af30f31fc3074f552f9dd95ff8a9
Make NightDisplayService robust to early alarms

Bug: 30743700

Use the same time for calculating the next activated state and
scheduling the next alarm. This prevents the alarm from being scheduled
incorrectly if the activated state is updated slightly before the
scheduled start or end time.

Change-Id: I690aebddd28547a25b507c227c4527ffdd7c6a02
services/core/java/com/android/server/display/NightDisplayService.java