summaryrefslogtreecommitdiffstats
path: root/core/res
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2009-10-08 18:28:01 -0700
committerAmith Yamasani <yamasani@google.com>2009-10-19 15:16:26 -0700
commitf37447bad3773b62176baa837908daf6edb44273 (patch)
treefb8f45b23288aeb84873c7e7735373505a98c977 /core/res
parentb5d69242d10021f82632d62c30b1ce63785c9386 (diff)
downloadframeworks_base-f37447bad3773b62176baa837908daf6edb44273.zip
frameworks_base-f37447bad3773b62176baa837908daf6edb44273.tar.gz
frameworks_base-f37447bad3773b62176baa837908daf6edb44273.tar.bz2
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.
Diffstat (limited to 'core/res')
-rw-r--r--core/res/res/values/config.xml4
-rw-r--r--core/res/res/xml/power_profile.xml4
2 files changed, 7 insertions, 1 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index 45fcaa59..780f611 100644
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -40,6 +40,10 @@
<!-- The duration (in milliseconds) of a long animation. -->
<integer name="config_longAnimTime">400</integer>
+ <!-- The duration (in milliseconds) that the radio will scan for a signal
+ when there's no network connection. If the scan doesn't timeout, use zero -->
+ <integer name="config_radioScanningTimeout">0</integer>
+
<!-- XXXXX NOTE THE FOLLOWING RESOURCES USE THE WRONG NAMING CONVENTION.
Please don't copy them, copy anything else. -->
diff --git a/core/res/res/xml/power_profile.xml b/core/res/res/xml/power_profile.xml
index 710b71e..ce623e8 100644
--- a/core/res/res/xml/power_profile.xml
+++ b/core/res/res/xml/power_profile.xml
@@ -29,10 +29,12 @@
<item name="dsp.audio">0.1</item>
<item name="dsp.video">0.1</item>
<item name="radio.active">1</item>
+ <!-- The current consumed by the radio when it is scanning for a signal -->
+ <item name="radio.scanning">0.5</item>
<item name="gps.on">1</item>
<!-- Current consumed by the radio at different signal strengths, when paging -->
<array name="radio.on"> <!-- Strength 0 to BINS-1 -->
- <value>1</value>
+ <value>0.2</value>
<value>0.1</value>
</array>
<!-- Different CPU speeds as reported in