Merge IMS changes from klp-wireless-dev to master
Change-Id: I247fa2b0e3aa159a27d96951edb0b04afd4d5ec6
diff --git a/src/com/android/phone/PhoneUtils.java b/src/com/android/phone/PhoneUtils.java
index f446d36..2b76c91 100644
--- a/src/com/android/phone/PhoneUtils.java
+++ b/src/com/android/phone/PhoneUtils.java
@@ -914,6 +914,7 @@
phone.getForegroundCall().getLatestConnection());
} else if ((phoneType == PhoneConstants.PHONE_TYPE_GSM)
|| (phoneType == PhoneConstants.PHONE_TYPE_SIP)
+ || (phoneType == PhoneConstants.PHONE_TYPE_IMS)
|| (phoneType == PhoneConstants.PHONE_TYPE_THIRD_PARTY)) {
shouldMute = sConnectionMuteTable.get(c);
}
@@ -1481,6 +1482,7 @@
conn = call.getLatestConnection();
} else if ((phoneType == PhoneConstants.PHONE_TYPE_GSM)
|| (phoneType == PhoneConstants.PHONE_TYPE_SIP)
+ || (phoneType == PhoneConstants.PHONE_TYPE_IMS)
|| (phoneType == PhoneConstants.PHONE_TYPE_THIRD_PARTY)) {
conn = call.getEarliestConnection();
} else {
@@ -1583,6 +1585,7 @@
switch (phoneType) {
case PhoneConstants.PHONE_TYPE_NONE: log(" ==> PHONE_TYPE_NONE"); break;
case PhoneConstants.PHONE_TYPE_GSM: log(" ==> PHONE_TYPE_GSM"); break;
+ case PhoneConstants.PHONE_TYPE_IMS: log(" ==> PHONE_TYPE_IMS"); break;
case PhoneConstants.PHONE_TYPE_CDMA: log(" ==> PHONE_TYPE_CDMA"); break;
case PhoneConstants.PHONE_TYPE_SIP: log(" ==> PHONE_TYPE_SIP"); break;
case PhoneConstants.PHONE_TYPE_THIRD_PARTY:
@@ -2205,6 +2208,7 @@
answerCall(phone.getRingingCall());
} else if ((phoneType == PhoneConstants.PHONE_TYPE_GSM)
|| (phoneType == PhoneConstants.PHONE_TYPE_SIP)
+ || (phoneType == PhoneConstants.PHONE_TYPE_IMS)
|| (phoneType == PhoneConstants.PHONE_TYPE_THIRD_PARTY)) {
if (hasActiveCall && hasHoldingCall) {
if (DBG) log("handleHeadsetHook: ringing (both lines in use) ==> answer!");
@@ -2350,6 +2354,7 @@
== CdmaPhoneCallState.PhoneCallState.CONF_CALL);
} else if ((phoneType == PhoneConstants.PHONE_TYPE_GSM)
|| (phoneType == PhoneConstants.PHONE_TYPE_SIP)
+ || (phoneType == PhoneConstants.PHONE_TYPE_IMS)
|| (phoneType == PhoneConstants.PHONE_TYPE_THIRD_PARTY)) {
// GSM: "Swap" is available if both lines are in use and there's no
// incoming call. (Actually we need to verify that the active
@@ -2410,6 +2415,7 @@
&& (app.cdmaPhoneCallState.getAddCallMenuStateAfterCallWaiting()));
} else if ((phoneType == PhoneConstants.PHONE_TYPE_GSM)
|| (phoneType == PhoneConstants.PHONE_TYPE_SIP)
+ || (phoneType == PhoneConstants.PHONE_TYPE_IMS)
|| (phoneType == PhoneConstants.PHONE_TYPE_THIRD_PARTY)) {
// GSM: "Add call" is available only if ALL of the following are true:
// - There's no incoming ringing call