summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorBanavathu, Srinivas Naik <snb@codeaurora.org>2012-09-21 09:58:12 +0530
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-07-20 23:44:54 -0700
commit3dbc6cae3ecc6356be8f046a1ed0194613570da5 (patch)
tree195eab14013d146d5538cbd5e202ee113cac80d6 /telephony
parentba124a9e8368917100dbdf78665975b75c372a34 (diff)
downloadframeworks_base-3dbc6cae3ecc6356be8f046a1ed0194613570da5.zip
frameworks_base-3dbc6cae3ecc6356be8f046a1ed0194613570da5.tar.gz
frameworks_base-3dbc6cae3ecc6356be8f046a1ed0194613570da5.tar.bz2
Telephony: Consider EVDO ecio zero value as valid.
When mEvdoEcio receives 0 getEvdoEcio returns -1. Ecio valid values are positive integers, to fix this consider EVDO ecio zero value as valid. Change-Id: Ice8415150e7502c7f39e1a4135d35ea2bec1eb1f CRs-Fixed: 402159
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/android/telephony/SignalStrength.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/SignalStrength.java b/telephony/java/android/telephony/SignalStrength.java
index c063290..f801010 100644
--- a/telephony/java/android/telephony/SignalStrength.java
+++ b/telephony/java/android/telephony/SignalStrength.java
@@ -336,7 +336,7 @@ public class SignalStrength implements Parcelable {
mCdmaEcio = (mCdmaEcio > 0) ? -mCdmaEcio : -160;
mEvdoDbm = (mEvdoDbm > 0) ? -mEvdoDbm : -120;
- mEvdoEcio = (mEvdoEcio > 0) ? -mEvdoEcio : -1;
+ mEvdoEcio = (mEvdoEcio >= 0) ? -mEvdoEcio : -1;
mEvdoSnr = ((mEvdoSnr > 0) && (mEvdoSnr <= 8)) ? mEvdoSnr : -1;
// TS 36.214 Physical Layer Section 5.1.3, TS 36.331 RRC