summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxinhe <xinhe@google.com>2014-12-19 00:07:28 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-12-19 00:07:29 +0000
commitffe80ab7f68d553fbda221e3457f288a3b7baa0a (patch)
tree641f1daae186258d3dff2116abbed58af63baa3a
parent8a0399c442522bf2dab20c688a99d92faa01f9b1 (diff)
parentac11ae91c7c926e792a35eb66e71e9f3b5cf4f93 (diff)
downloadframeworks_base-ffe80ab7f68d553fbda221e3457f288a3b7baa0a.zip
frameworks_base-ffe80ab7f68d553fbda221e3457f288a3b7baa0a.tar.gz
frameworks_base-ffe80ab7f68d553fbda221e3457f288a3b7baa0a.tar.bz2
Merge "take out SIM card, the RSSI Triangle is still full" into lmp-mr1-dev
-rw-r--r--services/core/java/com/android/server/TelephonyRegistry.java17
1 files changed, 11 insertions, 6 deletions
diff --git a/services/core/java/com/android/server/TelephonyRegistry.java b/services/core/java/com/android/server/TelephonyRegistry.java
index 776f836..72c2eaf 100644
--- a/services/core/java/com/android/server/TelephonyRegistry.java
+++ b/services/core/java/com/android/server/TelephonyRegistry.java
@@ -620,7 +620,11 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub {
final int recordCount = mRecords.size();
for (int i = 0; i < recordCount; i++) {
if (mRecords.get(i).binder == binder) {
- if (VDBG) log("remove: binder=" + binder);
+ if (DBG) {
+ Record r = mRecords.get(i);
+ log("remove: binder=" + binder + "r.pkgForDebug" + r.pkgForDebug
+ + "r.callback" + r.callback);
+ }
mRecords.remove(i);
return;
}
@@ -954,7 +958,7 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub {
+ " state=" + state + " isDataConnectivityPossible=" + isDataConnectivityPossible
+ " reason='" + reason
+ "' apn='" + apn + "' apnType=" + apnType + " networkType=" + networkType
- + " mRecords.size()=" + mRecords.size() + " mRecords=" + mRecords);
+ + " mRecords.size()=" + mRecords.size());
}
synchronized (mRecords) {
int phoneId = SubscriptionManager.getPhoneId(subId);
@@ -1558,11 +1562,12 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub {
}
boolean idMatch(int rSubId, int subId, int phoneId) {
+
+ if(subId < 0) {
+ // Invalid case, we need compare phoneId with default one.
+ return (mDefaultPhoneId == phoneId);
+ }
if(rSubId == SubscriptionManager.DEFAULT_SUBSCRIPTION_ID) {
- if(subId < 0) {
- // Invalid case, we need compare phoneId with default one.
- return (mDefaultPhoneId == phoneId);
- }
return (subId == mDefaultSubId);
} else {
return (rSubId == subId);