diff options
author | Banavathu, Srinivas Naik <snb@codeaurora.org> | 2012-09-21 09:58:12 +0530 |
---|---|---|
committer | Banavathu, Srinivas Naik <snb@codeaurora.org> | 2012-10-19 00:41:38 -0700 |
commit | 8ab862cbd4eeeb52ab921a555b7a006e89fd2abc (patch) | |
tree | 113f72af3eb405783ed4c154a3d8ba3e1bc1ab4b /telephony/java | |
parent | 826343138dfd8666d2263dd82bfdbf657fc1881e (diff) | |
download | frameworks_base-8ab862cbd4eeeb52ab921a555b7a006e89fd2abc.zip frameworks_base-8ab862cbd4eeeb52ab921a555b7a006e89fd2abc.tar.gz frameworks_base-8ab862cbd4eeeb52ab921a555b7a006e89fd2abc.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/java')
-rwxr-xr-x | telephony/java/android/telephony/SignalStrength.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/SignalStrength.java b/telephony/java/android/telephony/SignalStrength.java index 92b889b..4671310 100755 --- a/telephony/java/android/telephony/SignalStrength.java +++ b/telephony/java/android/telephony/SignalStrength.java @@ -279,7 +279,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 |