Telephony: Added ME Depersonalization support.

Added support for all ME De-Personalizations as per specs
3GPP2 C.S0068-0 and 3GPP TS 22.022.
CRs-fixed: 467276

Change-Id: Iba74e3e5eb4fe96361585f4933897c5c8f17db97
Telephony: Add DETECTED state and PIN/PUK retry count.

1. Add App state DETECTED in the IccCardConstants.State enum.
   Modified logic for allowing PIN cancel based on number of
   cards configured/activated instead of number of cards present.

2. Add method in ITelephonyMSim.aidl to retrieve PIN1RetryCount.
   Display Attempts remaining in PIN/PUK lockscreen UI.

3. Clean up KeyguardUpdateMonitorCallback and MSimCarrierText by
   removing Initialize method from Callback.

Change-Id: I89c9825b35257c1cca5946bf0cbffedb07d0015b
CRs-Fixed: 501887, 504086, 508283, 510400, 513293
Telephony: Remove CDMA cellbroadcast API's

Remove CDMA cellbroadcast API's, handle CDMA cellbroadcast
 management based on phone type in IccSmsInterfaceManager
 to sync with AOSP.

Change-Id: I25b382d232799e964e8812de99c46e2dd372b20f
    CSVT: Introduce Circuit-Switch Video Telephony.

    Introduce CSVT Service which provides necessary API
    for Circuit-Switch Video Telephony.

Change-Id: I1d483212450720d64d05f4e2b02abf8da9f4b37e
Telephony(MultiSim): Add support for emergency calls

Populate ecclist by reading ril.ecclist corresponds to
each subscription.
If dialed number is present in consolidated ecclist then
mark as emergency number.

Change-Id: Ibba48a930e29dac0d80d0c8add2e01214a9bf9c3
CRs-fixed: 445415
Telephony: Add support for NETWORK_TYPE_GSM

Add support for NETWORK_TYPE_GSM in TelephonyManager and
corresponding mapping in ServicState.java so that when
application queries getVoiceNetworkType() and currently
camped rat is GSM, they get network mode as GSM instead
of network mode unknown.

Change-Id: I5e971c625532696776b9555ad8cfd85eba4fc423
CRs-Fixed: 526435
Telephony(MSIM): Define invalid subscription constant

Define a new constant for invalid subscription id.

Change-Id: I7bc433d5f24c70b710cde7ef5ac362b7ee945d2d
CRs-Fixed: 529780
Add onDataRatChanged trigger to DcTracker

It is required to reload apns when data rat switches from
gsm to cdma

Change-Id: Ifdb04d0c8be325a226dbc707a3fa8c8c697089fa
CRs-Fixed: 530277
frameworks/base: Add constants for call_state and vsid

For DSDA, CallManager will call setParameters() to indicate
the call state changes between CS Multimode call,
CS GSM only call and IMS Multimode. Add constants for
call_state and vsid keys. Add pre-defined VSID and call
state constants.

Change-Id: I6add5f13d4a2ad5eacdf0750bbd402128d86f7cd
audio: Manage audio focus for QCHAT

- Cherry-picked from the commit with commit ID:
c14c6156e879ec1c3f83f6a2cc31dac1d22147a2
- FR-fixed: 8965

Change-Id: I51c554b82c6177b7d3e845bdc8970825b5d1198a
frameworks/base: Add support for QCHAT call.

- Add VSID for QCHAT.
- Add a key which can be used with getParameters()
to query all call states.

Change-Id: If7be9467013700b220c9b10c6236a99d56f7a8cc
media: Configure audio encode parameters only for valid audio codec

Added extra check for audio codec in profile

Change-Id: Idc83bcc6d77361bd298bbff3eee1d0132e5498ea
CRs-fixed: 513887