OSDN Git Service

Proper fix for zero signal strength and no_service. Fixes #2176141
authorAmith Yamasani <yamasani@google.com>
Fri, 9 Oct 2009 01:28:01 +0000 (18:28 -0700)
committerAmith Yamasani <yamasani@google.com>
Mon, 19 Oct 2009 22:16:26 +0000 (15:16 -0700)
commitf37447bad3773b62176baa837908daf6edb44273
treefb8f45b23288aeb84873c7e7735373505a98c977
parentb5d69242d10021f82632d62c30b1ce63785c9386
Proper fix for zero signal strength and no_service. Fixes #2176141

Track phone service state changes and use a separate timer for out-of-service
since the hunting can timeout on some devices.

Store the timeout value in the config.xml, as it is device/network specific.

Settings App will also change to use the hunting duration to compute the cost
of zero signal.
core/java/android/os/BatteryStats.java
core/java/com/android/internal/app/IBatteryStats.aidl
core/java/com/android/internal/os/BatteryStatsImpl.java
core/java/com/android/internal/os/PowerProfile.java
core/res/res/values/config.xml
core/res/res/xml/power_profile.xml
services/java/com/android/server/TelephonyRegistry.java
services/java/com/android/server/am/BatteryStatsService.java