summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorjsh <jsh@google.com>2009-07-14 20:33:54 -0700
committerjsh <jsh@google.com>2009-07-15 16:41:11 -0700
commitae49180f280fdda509103a403ec909fbebdf3971 (patch)
tree8720cfb4b0ad395c2eff35801ea99bf4d4a0565b /telephony
parent211aef308bc6ca55d99777d19227f412492db9c2 (diff)
downloadframeworks_base-ae49180f280fdda509103a403ec909fbebdf3971.zip
frameworks_base-ae49180f280fdda509103a403ec909fbebdf3971.tar.gz
frameworks_base-ae49180f280fdda509103a403ec909fbebdf3971.tar.bz2
Minor tweak to CDMA_SUBSCRIPTION.
H_SID and H_NID are now comma separated lists, so update CdmaServiceTracker accordingly. Note: For now, we still only store away the first of each. Also remove H_SID and H_NID fetching from RuimRecords.java, since it is unused (and unlikely to be used) in that class.
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java11
-rw-r--r--telephony/java/com/android/internal/telephony/cdma/RuimRecords.java4
2 files changed, 9 insertions, 6 deletions
diff --git a/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java b/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
index af8e202..abb4a43 100644
--- a/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
+++ b/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
@@ -665,8 +665,15 @@ final class CdmaServiceStateTracker extends ServiceStateTracker {
if (cdmaSubscription != null && cdmaSubscription.length >= 4) {
mMdn = cdmaSubscription[0];
- mHomeSystemId = Integer.parseInt(cdmaSubscription[1], 16);
- mHomeNetworkId = Integer.parseInt(cdmaSubscription[2], 16);
+ // TODO: Only grabbing the first SID/NID for now.
+ if (cdmaSubscription[1] != null) {
+ String[] sid = cdmaSubscription[1].split(",");
+ mHomeSystemId = sid.length > 0 ? Integer.parseInt(sid[0]) : 0;
+ }
+ if (cdmaSubscription[2] != null) {
+ String[] nid = cdmaSubscription[2].split(",");
+ mHomeNetworkId = nid.length > 0 ? Integer.parseInt(nid[0]) : 0;
+ }
mMin = cdmaSubscription[3];
} else {
diff --git a/telephony/java/com/android/internal/telephony/cdma/RuimRecords.java b/telephony/java/com/android/internal/telephony/cdma/RuimRecords.java
index c7e61da..4d888f6 100644
--- a/telephony/java/com/android/internal/telephony/cdma/RuimRecords.java
+++ b/telephony/java/com/android/internal/telephony/cdma/RuimRecords.java
@@ -55,8 +55,6 @@ public final class RuimRecords extends IccRecords {
private String mImsi;
private String mMyMobileNumber;
- private String mSid;
- private String mNid;
private String mMin2Min1;
private String mPrlVersion;
@@ -242,8 +240,6 @@ public final class RuimRecords extends IccRecords {
m_ota_commited = false;
}
mMyMobileNumber = localTemp[0];
- mSid = localTemp[1];
- mNid = localTemp[2];
mMin2Min1 = localTemp[3];
mPrlVersion = localTemp[4];