diff options
author | jsh <jsh@google.com> | 2010-03-18 11:14:42 -0700 |
---|---|---|
committer | jsh <jsh@google.com> | 2010-03-18 12:05:19 -0700 |
commit | ee63e47940d5a3bf6f1001153750e885ac3a7dcd (patch) | |
tree | da3650ef3bee60a99e6f66b7ce52bf5514b4585c /services/java/com/android/server/status | |
parent | b82ac6bf374c14082f7142614eb7d8e545b9a18b (diff) | |
download | frameworks_base-ee63e47940d5a3bf6f1001153750e885ac3a7dcd.zip frameworks_base-ee63e47940d5a3bf6f1001153750e885ac3a7dcd.tar.gz frameworks_base-ee63e47940d5a3bf6f1001153750e885ac3a7dcd.tar.bz2 |
Update signal strength mapping for GSM/UMTS.
b/2480975
New mapping:
4 bars: >= 12 asu
3 bars: >= 8 asu
2 bars: >= 5 asu
1 bar: >= 3 asu
0 bars: <= 2 asu
Change-Id: I73dcc8e490d039ec392f027fc96f95dc951ca793
Diffstat (limited to 'services/java/com/android/server/status')
-rw-r--r-- | services/java/com/android/server/status/StatusBarPolicy.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/java/com/android/server/status/StatusBarPolicy.java b/services/java/com/android/server/status/StatusBarPolicy.java index 44e0dad..55840e2 100644 --- a/services/java/com/android/server/status/StatusBarPolicy.java +++ b/services/java/com/android/server/status/StatusBarPolicy.java @@ -991,10 +991,10 @@ public class StatusBarPolicy { // asu = 0 (-113dB or less) is very weak // signal, its better to show 0 bars to the user in such cases. // asu = 99 is a special case, where the signal strength is unknown. - if (asu <= 0 || asu == 99) iconLevel = 0; - else if (asu >= 16) iconLevel = 4; + if (asu <= 2 || asu == 99) iconLevel = 0; + else if (asu >= 12) iconLevel = 4; else if (asu >= 8) iconLevel = 3; - else if (asu >= 4) iconLevel = 2; + else if (asu >= 5) iconLevel = 2; else iconLevel = 1; // Though mPhone is a Manager, this call is not an IPC |