OSDN Git Service

Start collecting mobile radio activity from the radio.
authorDianne Hackborn <hackbod@google.com>
Mon, 21 Apr 2014 22:56:18 +0000 (15:56 -0700)
committerDianne Hackborn <hackbod@google.com>
Thu, 24 Apr 2014 18:21:30 +0000 (11:21 -0700)
commit2ffa11e4b71c545e34533ef827bdc1a07fbe8246
treeaf0aa233d8c90bc6ab18c79a0724132f71f9b40b
parent79cb5505a97a0465fb849dc20dcaf3dd2f608c9f
Start collecting mobile radio activity from the radio.

Hook in to the new radio API to find out when the radio
is active and use that to track its state in batter stats.
We also still have the data being tracked from the kernel's
emulation, and continue to use that if we don't get data from
the radio.

Currently this monitoring is turned off until some issues
in the radio can be fixed that are providing bad data.

Also add a new API to get estimated drain and charge times.

Change-Id: Ifc4900fabb8f848f9cda361dce698664ea75f175
api/current.txt
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/NativeDaemonConnector.java
services/core/java/com/android/server/NetworkManagementService.java
services/core/java/com/android/server/TelephonyRegistry.java
services/core/java/com/android/server/am/BatteryStatsService.java
telephony/java/android/telephony/DataConnectionRealTimeInfo.java
telephony/java/android/telephony/PhoneStateListener.java