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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user