PhoneAccountRegistrar#getSimCallManager should consider disabled PhoneAccounts.

The enabled property of a PhoneAccount doesn't apply to connection managers.
This change simply iterates over all phone accounts, even if they're disabled,
to find the active call manager.

Without this change, the default call manager would be set to "None" in the
Dialer UI. getSimCallManager would return null because the default call
manager's PhoneAccount is disabled.

Bug: 21520812
Change-Id: Ieae8f5c377c47111acf262ff4bc0cf07db6ef64d
diff --git a/src/com/android/server/telecom/PhoneAccountRegistrar.java b/src/com/android/server/telecom/PhoneAccountRegistrar.java
index ca4d24a..b5ddc87 100644
--- a/src/com/android/server/telecom/PhoneAccountRegistrar.java
+++ b/src/com/android/server/telecom/PhoneAccountRegistrar.java
@@ -317,7 +317,7 @@
 
             if (!resolveInfos.isEmpty()) {
                 // See if there is registered PhoneAccount by this component.
-                List<PhoneAccountHandle> handles = getAllPhoneAccountHandles();
+                List<PhoneAccountHandle> handles = getPhoneAccountHandles(0, null, null, true);
                 for (PhoneAccountHandle handle : handles) {
                     if (componentName.equals(handle.getComponentName())) {
                         return handle;