OSDN Git Service

Allow setting alarm to the same time as an earlier one
authorSuprabh Shukla <suprabh@google.com>
Mon, 12 Feb 2018 20:53:23 +0000 (12:53 -0800)
committerSuprabh Shukla <suprabh@google.com>
Mon, 12 Feb 2018 22:07:27 +0000 (14:07 -0800)
commit2fa9545e29ef6b6fc511c2136b5f91e5b7e29818
tree80c8f687fb3baade4f77e37d44de44b2180701c2
parent97661735aab95260f68d33896f76d071fe025fcd
Allow setting alarm to the same time as an earlier one

With alarm deferring, we may end up rescheduling an alarm to the exact
time we set the previous kernel alarm to. Removing the optimization to
prevent duplicate sets, as otherwise we may end up being in a bad state
of no kernel alarm set. Also added the field maxWhenElapsed to the alarm
dump for more details in the bugreports.

Test: Builds. Boots. Existing tests pass:
atest CtsAlarmManagerTestCases

Bug: 73069486
Change-Id: Iade4549b399def57902b644b1d50945722e60c28
services/core/java/com/android/server/AlarmManagerService.java