OSDN Git Service

Properly reset doze transition alarms with force-stop
authorChristopher Tate <ctate@google.com>
Fri, 2 Nov 2018 21:05:47 +0000 (14:05 -0700)
committerChris Tate <ctate@android.com>
Thu, 9 May 2019 18:31:15 +0000 (18:31 +0000)
commit490227cc3726b7de97d9c2af2e4ea6e705bb8b37
treeb6fd59f3ffac45a3554bb894bbdbbffa6bbc9c69
parentf992bb99b26558487abcc61defe69e8d4480d85e
Properly reset doze transition alarms with force-stop

If alarms from the force-stopped app were being used as doze transition
triggers, state tracking around doze wound up being incorrect, and the
device would potentially not re-enter doze again until reboot.

Bug: 112326433
Test: manual
Test: atest CtsAlarmManagerTestCases
Change-Id: I74ca826c6ee75f7acc7e45847ad7e0f6c6383eb1
services/core/java/com/android/server/AlarmManagerService.java