Telecomm: Don't prompt to select the subscription when adding another call

Can't MO calls in different SIM cards in DSDS mode,
no need to prompt again when adding another call.

Use the current active call's phoneAccount to MO a second call.

CRs-Fixed: 746622

Change-Id: I5169cf4b5406b39ca6c28a090e21a79074b8c56a
Telecom: Disable "Add call" if the call is not active or on hold

The call state check is missing in isAddCallCapable function.

When set the capabilities for call, check it's state,
enable the "add call" capability only for the
"ACTIVE/ON_HOLD" state.

Change-Id: If6220e68a55fcf10798c8e6909c3038788a8a55e
CRs-Fixed: 740949
IMS: Allow dial Conference call without URI List

Remove empty string check to place Conference call
without URI List.

Change-Id: Ibcd76618cab820973a769a23af5ee13c956ed23c
CRs-Fixed: 681238
IMS Call Extras Feature

Adding support to allow OEMs to send
extra information with the Dial Intent all the
way to the IMS service layer and beyond.
Similarly, extras for MT calls are propagated
from IMS Service layer till the UI layer.

Change-Id: I351d32c15494c7df5d00c05053368fd5fa17b49b
CRs-Fixed: 724860
Fix to prevent null pointer exception

Add null check while checking for phone account.

Change-Id: I0eeeee3c5d42b9230a2c5bff450b193db8504e9f
CRs-Fixed: 753768
Set active subscription properly

Unset ACTIVE bit only for a subscription which is not an active
subscription.

CRs-Fixed: 755483
Change-Id: Ie8aa357dc16057bea7c99128e3c68258d6bfdde7
IMS-VT : Set the flag to start call with speaker on for incoming VT calls

- There seems to be a race condition between when InCallUI
  enters the video mode and sets the speaker phone on and
  when call state changes to active.

- As a result, the audio route gets reset to earpiece as we
  are not setting speaker phone on flag for the incoming
  case. This change fixes that issue.

Change-Id: I3e665cbd426da0f321d85cd4a23310776c80cc96
CRs-Fixed: 741320
DSDA: Update the active sub when no live calls.

Unset the ACTIVE bit of phone account when there
are no active calls.

Change-Id: I0ef458e8704298ca2791cf0afd1289979887363e
CRs-Fixed: 759506
Display merge icon to add users to existing conference call

Set phone account for conference call to get correct call
capabilities.

Change-Id: I0c2c9b4d38bf192a48a7cc19728ce981d43400d8
CRs-Fixed: 738818
DSDA: Fix to stop playing LCH tone

When there are no more calls on a particular sub and it is in LCH
state then reset its LCH state.

Change-Id: Iec6948a2b10d9478d07af55764167138bcf09860
CRs-Fixed: 749515
Fix the difference in design between SSSS and DSDA

In SSSS when an additional call is attempted on top of an active call the call
is allowed if the call was made on the  same account as that of active call.
But in DSDA the hold capability of an ACTIVE call is checked and if it had
the capability then the active  is first put to hold and then the new call
was placed which contradicts the SSSS behavior.
So allow the call in DSDA if the phone account of the new call is same as
the ACTIVE call.

Change-Id: I6c06723884638e1b92af16c873c517f89ceb35b8
CRs-Fixed: 761862
Handle NumberFormatException gracefully.

Handle NumberFormatException at relevant places
when subId is parsed as Long.

Change-Id: Ie245c840a9aa394629a4eff86f10cecaa5ec2955
IMS-VT: Set speaker phone to true only if bluetooth or headset is not connected

Change-Id: I29fbbc3640453e5713193b815e64a3355e26be04
CRs-Fixed: 755377
Fix to fetch conversation sub correctly and prevent NPE

If the sub is not in LCH and it has a active call then it should
be considered as the conversation sub.
Add null check to avoid NPE due to phone account being null
when there is no sim card.

Change-Id: I5f1b5a978bb2b0f84dfbedb9e4984ba734963496
CRs-Fixed: 764545,764581
Fix issue during swapping of SIP and CS calls.

Since SIP phone account id is different from Telephone account id
hold/unhold was not issued correctly during swapping of sip and cs
calls. To fix this, avoid comparing the account ids if one of the
calls is a sip call.
Also make sure that there is no LCH update during active/hold sip
calls.

Change-Id: I46955d1b750cf6336c59fddb03fa1e996d768c28
CRs-Fixed: 738816
Creating connections for conference event package participants.

- Add "addExistingCall" method to Connection service wrapper to handle
the creation of new calls for connections which already exist in telephony.
- Fixed but in setIsConference message where an isValidCallId check made
outside of the handler would result in a newly added call NOT being
marked as conferenced due to a race condition.  The MSG_SET_IS_CONFERENCED
handler already checks if the call exists before performing its operation.

Bug: 18057361
Change-Id: I2348c8e6985cd831f2cae56b37dfcb33bae014a8

Make add-call a global property of telecom. (2/4)

ADD_CALL didn't make sense as a property of Connection or Call.
This changes it to be a global property instead.

Bug: 18285352
Change-Id: I5189e114e74dba2d81d74c6d24cf5b17f1e0922a

Set appropriate capabilities to TestConference

This allows the "Manage conference" screen to show up correctly
for test conference calls

Bug: 18269622
Change-Id: I8467654a8158c5da8c354057f613f122b22a0ed3

Create IMSConference to represent IMS conference calls.

- Removing check in ConnectionServiceWrapper which would prevent adding
a new confernece with no calls in it; an IMS conference by default will
have no calls.

Bug: 18200934
Change-Id: I2e70b9350e779310e8c4ee8e91bc8020b126bcfa

Change-Id: I2e70b9350e779310e8c4ee8e91bc8020b126bcfa
Temporary fix to enable Addcall button on UI.

Temp fix to enable UI option addcall.

Change-Id: I5b436bcccad05b86c02a0ee9d5ed2bbc3d8feade
telecomm: Remove dead code, fix build.

Change-Id: I570c59ca9e48ad71180a8e5cf0f9be37a9b2b14f