OSDN Git Service

Add tracking of uid process states in battery stats.
authorDianne Hackborn <hackbod@google.com>
Wed, 9 Jul 2014 23:13:01 +0000 (16:13 -0700)
committerDianne Hackborn <hackbod@google.com>
Thu, 10 Jul 2014 03:04:03 +0000 (20:04 -0700)
commit61659e5daaea80104d4d0fd567e78b5f757b5df4
tree7a61cc57948338836d6fa57f46888dc6776382fc
parent6b1e88e5d09a88dd77e631918aa7122a95a7ff4b
Add tracking of uid process states in battery stats.

We now keep track of how long each uid had processes in
various states: foreground, active, running.  This is based
on a collapse of the various activity manager process states
into these three bins.

You'll see these in a checkin like this:

8,10013,l,st,61504,61504,83109

Also fix issue #16021555: App showing up as on "top" even
when the screen is off.  This is "fixed" by just saying we
always report the current app at the top of the activity stack,
regardless of the state of the screen.

Change-Id: I1204904225101243eb00b43425d9806bffdd2ab9
core/java/android/os/BatteryStats.java
core/java/com/android/internal/app/IBatteryStats.aidl
core/java/com/android/internal/os/BatteryStatsHelper.java
core/java/com/android/internal/os/BatteryStatsImpl.java
services/core/java/com/android/server/am/ActivityManagerService.java
services/core/java/com/android/server/am/BatteryStatsService.java