OSDN Git Service

Fix alarm delivery-order sorting
authorChristopher Tate <ctate@google.com>
Fri, 3 Oct 2014 00:27:57 +0000 (17:27 -0700)
committerChristopher Tate <ctate@google.com>
Fri, 3 Oct 2014 19:33:35 +0000 (12:33 -0700)
commit1590f1ee7b7b7962f08e8cc29b9891b2ad124c9b
tree5067314cece9d3d100346f6001dd61362fecdbdb
parent9f64867da107b772b867876ddf979d1a3ec19192
Fix alarm delivery-order sorting

We also refine the order of delivery within any given package.  Now,
we identify which apps have wakeup alarms being delivered in the
current pass, and deliver all of that app's alarms before moving
on to alarm delivery to apps who are only receiving non-wakeup alarms
in the current delivery pass.  The TIME_TICK alarm is also hoisted to
the start of the current delivery pass if present.

Bug 17778686

Change-Id: I6306a00fe657787a77d0254c0807ac51e810fdcf
services/core/java/com/android/server/AlarmManagerService.java