OSDN Git Service

More work on device idle mode.
authorDianne Hackborn <hackbod@google.com>
Mon, 23 Mar 2015 20:29:14 +0000 (13:29 -0700)
committerDianne Hackborn <hackbod@google.com>
Tue, 24 Mar 2015 18:03:49 +0000 (11:03 -0700)
commit88e98dfa59e68a860d8c3b462ec03bc0b06d6b5c
tree10e846a1db4f2307eaa5a32c920e2e9ec0aee79b
parente7f931c4505a6bd62e01bef5193dd724571a672b
More work on device idle mode.

- There is now an API for people to find out about
  its state.
- Moved DeviceIdleController to be closer to the
  power manager implementation, since they are
  closely related.
- Job scheduler now knows about idle state and doesn't
  run jobs while the device is idle.
- Battery stats now keeps track of "idling" vs "idle mode".
  Idling is when we consider the device to be idle,
  independent of whether we are actually in deep idle mode.
  This allows us to keep track of longer-term changes
  independently of cycling in and out of idle mode.
- Battery stats also now keeps track of package changes in
  its daily stats.
- Small optimization to network policy manager service to
  not touch uids that do not have the NETWORK permission.

Change-Id: I0b3304fb3722c78cdfdd0c1eada7369ece7cbcf9
13 files changed:
api/current.txt
api/system-current.txt
core/java/android/os/BatteryStats.java
core/java/android/os/IPowerManager.aidl
core/java/android/os/PowerManager.java
core/java/android/os/PowerManagerInternal.java
core/java/com/android/internal/os/BatteryStatsImpl.java
services/core/java/com/android/server/job/JobSchedulerService.java
services/core/java/com/android/server/job/controllers/StateController.java
services/core/java/com/android/server/net/NetworkPolicyManagerService.java
services/core/java/com/android/server/power/DeviceIdleController.java [moved from services/core/java/com/android/server/DeviceIdleController.java with 84% similarity]
services/core/java/com/android/server/power/PowerManagerService.java
services/java/com/android/server/SystemServer.java