OSDN Git Service

Fix issue #29006049: Add logging for implicit broadcasts
authorDianne Hackborn <hackbod@google.com>
Fri, 3 Jun 2016 00:15:08 +0000 (17:15 -0700)
committerDianne Hackborn <hackbod@google.com>
Sun, 5 Jun 2016 06:40:12 +0000 (23:40 -0700)
commitbc02a3901dea52d236dd855722191155156cb856
tree68f0286b4436183970c020cff07e025961761067
parenteb47d6205f28d89d8bb1a3e127659dc24727fa7e
Fix issue #29006049: Add logging for implicit broadcasts

We now have stats on broadcasts.  We collect them over a day and
then reset, retaining the last days stats.  When a checkin happens,
we return either the last day or the current stats and then clear
them.  Not bothing to persist anything to storage, this data is
not that critical.

Change-Id: I1c3b331bcd03f79fa5e10575d9bc2ad7d9104f6f
services/core/java/com/android/server/am/ActivityManagerService.java
services/core/java/com/android/server/am/ActivityManagerShellCommand.java
services/core/java/com/android/server/am/BroadcastQueue.java
services/core/java/com/android/server/am/BroadcastRecord.java
services/core/java/com/android/server/am/BroadcastStats.java [new file with mode: 0644]
services/core/java/com/android/server/am/PendingIntentRecord.java