Merge "Add subscription specific API for IMS registration status" into stage-aosp-master
am: 8e52646ae9

Change-Id: I2a1a7a14cbe00a28924c7f49336683e8e9e5c6d7
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index c06e34e..7493858 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -3276,6 +3276,21 @@
         return mPhone.isImsRegistered();
     }
 
+    /**
+     * {@hide}
+     * Returns the IMS Registration Status on a particular subid
+     *
+     * @param subId
+     */
+    public boolean isImsRegisteredForSubscriber(int subId) {
+        Phone phone = getPhone(subId);
+        if (phone != null) {
+            return phone.isImsRegistered();
+        } else {
+            return false;
+        }
+    }
+
     @Override
     public int getSubIdForPhoneAccount(PhoneAccount phoneAccount) {
         return PhoneUtils.getSubIdForPhoneAccount(phoneAccount);