MSIM(DSDA): Use conversation sub to maintain LCH properly

Use conversation sub to maintain LCH properly

Change-Id: I2307d04a9e32a43234a5e56d995e20db464a6187
CRs-Fixed: 659123
MSIM(DSDA): Start the LCH reminder tone properly

During sub switch, lCH reminder tone is stopped but not restarted
properly.

Change-Id: Ia801b205c196c28e9fff9214548d3138a4154e79
CRs-Fixed: 665424
MSIM: Dial emergency call on activated sub

Check if subscription activation status is activated, even if the
sim state is ready before choosing the subscription for making
emergency call. As sim ready state also comes when there is illegal
card event from network.

Change-Id: I1775619201d7cfe39362802b2b59193a67a9a1a7
CRs-Fixed: 662770
Telephony: Set the default uri for Ringer according to different sim cards

When the phone ringtone is set as "None", getActualRingtoneUriBySubId()
in framework return null.But null won't be set to Ringer, so the uri
is still the value which was set in the last time.

Set the default uri in Settings.System to the Ringer instead of
the uri returned from the method before.

CRs-Fixed: 661216

Change-Id: I82dd48a8946eebdca477dfae0e09b4ed640e481c
MSIM: Update persist.radio.airplane_mode_on property during APM change.

RIL uses persist.radio.airplane_mode_on property to check if sim
cards need to be powered down when telephony requests RADIO_POWER
OFF during boot up. So telephony needs to update this property
whenever there is a change in airplane mode.
Add the missing code to update the property in MSimPhoneGlobals.

Change-Id: Id5c6b8315ad8329b348a4e527e38e1d7c889bb03
CRs-Fixed: 661325
MSIM: Use DDS data sub if no sub is passed

On a multi-sim device, getDataNetworkType will return data
radio technology value of designated data subscription(DDS).

Change-Id: I6b40431a88a5e17589e1b1d1b759838ff61475ee
CRs-Fixed: 661835
Stop call waiting timers after waiting call accepted

After user accepted CDMA waiting call, remove call waiting timers.

Change-Id: I1b9f3036c07aee2e14528e05573bd1b106f9a31f
CRs-Fixed: 673246
CSVT: fix cannot end videocall issues after NFC read contact and lauch another call
      when CSVT call is active back ground
      CRs-Fixed: 678578

Change-Id: I1b0aff348a6d01d7648d1a754ae6168af270f3c4
MSIM(DSDA): if any sub is active dont disconnect BT

Don't disconnect BT, when call is active in any of the
subscriptions.

Change-Id: I9b0ab528ded4a1c8e7ef67a81217a6f8aade0613
CRs-Fixed: 679187
TeleService: Add FDN seting for CDMA network type

FDN Setting is removed when network type is CDMA. Do not remove
it directly, but add resource config for it. Default status is false
which means to enable FDN settings.

CRs-Fixed: 680615

Change-Id: Ib578495a50efff7fc0df54f517c67679e2f5da69
Telephony: Add Multi SIM support for voicemail ringtone

Do not support Multi SIM for voicemail ringtone settings.

Add Multi SIM support for voicemail ringtone of call feature settings.

CRs-Fixed: 671167

Change-Id: Ia20953ba3cd528f506407651ba5081232e9e3a89
Fix call barring always request from default sub

Update subscription in MSIM mode before enter call barring settings.

Change-Id: Iddba105d3ab4bef42e8f1df93020eebe4dbb1ee9
MSIM: on permanent failure cause, don't redial

If permanent redial failure cause is recieved for emergency call
from lower layers, then redial shouldn't occur again on that subscription.

CRs-Fixed: 682517
Change-Id: I7a9adb958efacf7e72234974977fa525c8b2a59e
Phone: Disconnect current call if there is an active call on other sub

UE should disconnect current foregroundCall if answering
a MT call on other sub and current foregroundCall state is dialing.

CRs-Fixed: 679208

Change-Id: I6d16e92f52462050581471600d84f5fedae038bd
Add MSIM check to avoid phone app crash

Add MSIM check before calling method of MSimCallNotifier as this
class is applicable only for multisim.

Change-Id: I18d91061fd08ac8b64d3a644b11868eb9659b68b
CRs-Fixed: 685937
Disable data in manual PLMN search on non-dsda mode.

While doing manual PLMN search disable data if data
is connected on non-dsda mode.

CRs-Fixed: 657194

Change-Id: I16f2e010e492497a2598ee1b9bdd8977f3d7d048
TeleService: Hide sim label when calling sub is absent

When make emergency call without sim card, the sim
card index 0 will be used.

If the state of calling sub is absent, hide the sim label.

CRs-Fixed: 683248

Change-Id: I657c5e905ae15e9a1e370a6c874b81ab700bd286
TeleService: Support call waiting on CDMA phone

There is no call waiting function on CDMA phone.

Support call waiting on CDMA phone.

CRs-Fixed: 694575

Change-Id: Ie51b0981eeca02bb3561c92a4a57f026ca927908
Merge branch 'cm' into HEAD