summaryrefslogtreecommitdiffstats
path: root/telephony/java/android
diff options
context:
space:
mode:
authorPrerepa Viswanadham <dham@google.com>2015-05-05 01:05:57 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-05-05 01:06:38 +0000
commitd1808401ca3bfd6b6b9a975c1e739b194d18f849 (patch)
tree50c16a5c966772fd3b3ac4f7d2e79c97252935c7 /telephony/java/android
parent44b60be189183138437a3faf9a73388af0efcf44 (diff)
parent059ded5a7b7389b7eefc2502bd712228931ed107 (diff)
downloadframeworks_base-d1808401ca3bfd6b6b9a975c1e739b194d18f849.zip
frameworks_base-d1808401ca3bfd6b6b9a975c1e739b194d18f849.tar.gz
frameworks_base-d1808401ca3bfd6b6b9a975c1e739b194d18f849.tar.bz2
Merge changes from topic 'mwd-merge-050415' into mnc-dev
* changes: Merge commit 'b6f59f4' into master_merge Merge commit 'f6db0ce' into master_merge Merge commit '17455a3' into master_merge Merge commit 'b4d5b32' into master_merge Merge commit 'a1a2fa7' into master_merge Merge commit '8dfdb98' into master_merge Merge commit 'eba66c3' into master_merge
Diffstat (limited to 'telephony/java/android')
-rw-r--r--telephony/java/android/telephony/SubscriptionManager.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/SubscriptionManager.java b/telephony/java/android/telephony/SubscriptionManager.java
index e4c003a..33e52bf 100644
--- a/telephony/java/android/telephony/SubscriptionManager.java
+++ b/telephony/java/android/telephony/SubscriptionManager.java
@@ -1129,5 +1129,19 @@ public class SubscriptionManager {
logd("getSimStateForSubscriber: simState=" + simState + " subId=" + subId);
return simState;
}
+
+ /**
+ * @return true if the sub ID is active. i.e. The sub ID corresponds to a known subscription
+ * and the SIM providing the subscription is present in a slot and in "LOADED" state.
+ * @hide
+ */
+ public boolean isActiveSubId(int subId) {
+ try {
+ ISub iSub = ISub.Stub.asInterface(ServiceManager.getService("isub"));
+ return iSub.isActiveSubId(subId);
+ } catch (RemoteException ex) {
+ }
+ return false;
+ }
}