Telephony(MSIM): Add StatusBar support for MultiSim.

Add support for Signal Strength icon display for MultiSim.

Add support for NO SIM icon support for multiple SIMs.

Change-Id: I11fb6ed37e7ba40b8db7840feedd109557128758
Fix for data and roaming icons

- Enable data connected flag based on the data state.

- Do not display data icon in data connected state
if radio type is unknown

- Display data icon independent of voice service state
i.e even if voice network is unavailable

- Show cdma roaming indicators if either voice
or data is roaming.

- Cleanup roaming indicator default values.
Set default CDMA Eri index to roaming off

- Show service if either voice/data is in
service if ro.config.combined_signal is true

- Consider eri only when in service

- Add in service check to isCdmaEri.
roaming related information
in registration state will not be valid
during out of service.
CRs-Fixed: 285986, 303275, 326204, 326634, 333008,
           339297

Change-Id: I915421a6f5906d80ed5b8dd9c433115ad5df1f14
Ims: Fix for Phone App crash and NullPtrException in getCountryIso API

When back to back VOLTE calls are made, sometimes
next MO VOLTE call is failing due to a NullPointerException. The
issue is because of unexpected value in getting the current
country code. Added null check for detector.detectCountry(), if this
function call fails, then CountryIso will be picked up based on the Locale
CRs-Fixed: 478645, 490472

Change-Id: I9f35fe959fc072bf59a6aabc6c17dc4162426721
Telephony: Add TD-SCDMA support

Add  network mode TD-SCDMA to the list
of supported network modes.
CRs-Fixed: 479310

Change-Id: I132ac6a2108ef641ce4e71942a5c057a8df8e76c
Telephony: Add RIL request and event for OMH support

Change-Id: I8f68d6d9e1e188a2c2295a814376dccaaad5ec24
Telephony(MSIM): Set priority when send sms

Add the priority support in 3gpp2 text message

Change-Id: I27e92709a04a89c125424f99c2c61fbf6802c6b1
Telephony(MSIM): MultiSim support for PIN/PUK & Operator Name.

-> Add CarrierText, SimPinView and SimPukView classes for MSIM.
-> Add support to Display Multiple operator name.
-> Add Support for Multiple PIN/PUK Lock screens.
-> Overload few Keyguard methods to take sub info.

Change-Id: I500129a5dc09adcb2cd8eb664d30ae2e8bad2642
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
frameworks/base: Add wifi display to fixed volume devices

Wifi display should be treated as device with fixed volume like HDMI.
User should not be able to change the volume on device. Volume
change should be supported only on the end device
CRs-Fixed: 480334

Change-Id: I2e41e9aef01167d1bdca3bca09ed863834dae1d8