Instantiate third party phone on call DO NOT MERGE

With this CL we now create a new third party phone as needed.

Change-Id: I31880c9ac758ddf7f9538e1c182197b8d3e073e4
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 2834c9a..05b2308 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -180,16 +180,9 @@
                     request = (MainThreadRequest) msg.obj;
                     Pair<ComponentName, String> pair =
                             (Pair<ComponentName, String>) request.argument;
-                    for (Phone phone : CallManager.getInstance().getAllPhones()) {
-                        if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_THIRD_PARTY) {
-                            ThirdPartyPhone thirdPartyPhone = (ThirdPartyPhone) phone;
-                            if (thirdPartyPhone.getCallProviderComponent().equals(pair.first) &&
-                                    thirdPartyPhone.takeIncomingCall(pair.first, pair.second)) {
-                                if (DBG) log("newIncomingThirdPartyCall: call taken");
-                                return;
-                            }
-                        }
-                    }
+                    ThirdPartyPhone thirdPartyPhone = (ThirdPartyPhone)
+                            PhoneUtils.getThirdPartyPhoneFromComponent(mCM, pair.first);
+                    thirdPartyPhone.takeIncomingCall(pair.first, pair.second);
                     break;
                 }