summaryrefslogtreecommitdiffstats
path: root/telephony/java
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2013-04-08 11:35:47 -0700
committerWink Saville <wink@google.com>2013-04-08 11:35:47 -0700
commitefbca4d01d2fe6ecb9e697aea71da44fefcfc094 (patch)
tree0b4fe28fd9937f352da78f7c148741761ee4ccd8 /telephony/java
parenta56b78dcd1292a4291d85113bdeeda8496c1a0c0 (diff)
downloadframeworks_base-efbca4d01d2fe6ecb9e697aea71da44fefcfc094.zip
frameworks_base-efbca4d01d2fe6ecb9e697aea71da44fefcfc094.tar.gz
frameworks_base-efbca4d01d2fe6ecb9e697aea71da44fefcfc094.tar.bz2
Fix SignalStrength response.
Add makeSignalStrengthFromRilParcel for use by RIL responseRilSignalStrength. Bug: 8561333 Change-Id: Ie6eb3b0335e8d7ea114ec70b3fb72e917094632e
Diffstat (limited to 'telephony/java')
-rw-r--r--telephony/java/android/telephony/SignalStrength.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/SignalStrength.java b/telephony/java/android/telephony/SignalStrength.java
index 3ed9cef..674955c 100644
--- a/telephony/java/android/telephony/SignalStrength.java
+++ b/telephony/java/android/telephony/SignalStrength.java
@@ -274,6 +274,33 @@ public class SignalStrength implements Parcelable {
}
/**
+ * Make a SignalStrength object from the given parcel as passed up by
+ * the ril which does not have isGsm. isGsm will be changed by ServiceStateTracker
+ * so the default is a don't care.
+ *
+ * @hide
+ */
+ public static SignalStrength makeSignalStrengthFromRilParcel(Parcel in) {
+ if (DBG) log("Size of signalstrength parcel:" + in.dataSize());
+
+ SignalStrength ss = new SignalStrength();
+ ss.mGsmSignalStrength = in.readInt();
+ ss.mGsmBitErrorRate = in.readInt();
+ ss.mCdmaDbm = in.readInt();
+ ss.mCdmaEcio = in.readInt();
+ ss.mEvdoDbm = in.readInt();
+ ss.mEvdoEcio = in.readInt();
+ ss.mEvdoSnr = in.readInt();
+ ss.mLteSignalStrength = in.readInt();
+ ss.mLteRsrp = in.readInt();
+ ss.mLteRsrq = in.readInt();
+ ss.mLteRssnr = in.readInt();
+ ss.mLteCqi = in.readInt();
+
+ return ss;
+ }
+
+ /**
* {@link Parcelable#writeToParcel}
*/
public void writeToParcel(Parcel out, int flags) {