DCTracker: HACK Fix eHRPD/LTE data connection.

* UICC controller is suppose to send a event that says uicc updated
  We are experiencing a race condition when UICC is init before the
  radio start which cause the sim is not ready response from radio.
* This forces data when we have cdma voice connection.

Change-Id: Ifccafa148a703a2f9e137733d8450a3a961dca2a
Telephony: DcTracker: Fix CDMA APN Data issues.

Fix CDMA data issue when it can't find an APN match. This fixes cases
CDMA NV or RIUM/SIM doesn't have the information to pass on.
It assumes GSM like mode on CDMA. So fix that and pass on to CDMA
stubbed apn found in android 4.2.

Change-Id: I53a229de353bae34b7180ef3e7253d83d1f9d20c
Telephony: Add OperatorReplace api to framework:

this converts the operator number into carrier name, 2 API

this one load once if the number is the same through the life span of the SIM.
public static String operatorReplace(String response)

This one is for loop based sisuation, doesn't lazy load the selective-spn.xml,

public String unOptimizedOperatorReplace(String response)

Change-Id: I4273e6091df8c0e59ca86ac6d69bd8e40e9c4d44
Fix for correct subscription in Cell Broadcast message

Issue: When CB message sent over SUB2, it displays as SUB1 in UI
Fix: Update the subscription ID as per CB message in Parcel

Change-Id: Iff4f2f52c95dbf557b953d8579c70e5c404ca7af
CRs-Fixed: 625204
IMS-VT: Do not allow changing the TTY mode during a Video call

When the device is already in a video call, the user SHOULD NOT
be allowed to change the TTY mode. If the user tries to change,
then an UI alert message will be displayed explaining it cannot
be changed during video calls.

Change-Id: Id7fdeb7d90fbbdf94a6418eb58fd4bf00a5c241c
CRs-Fixed: 734258
Fix bug in CDMA phantom call handling.

Update the unknown connection object when a phantom call
is received during polling.

Change-Id: Idd1a9e25baec1ea460776338f465b32572196dc8
CRs-Fixed: 703983
IMS-VT: Peer capabilities

-Add support for peer capabilities

Change-Id: I44177dd6804b69a7b790021502eda0eb3bea3cab
Correct handling of modem capability query failure.

If modem capability query is not supported, getMaxDataAllowed
API causes null pointer exception. Fix the null pointer access.

Change-Id: I96a8c12fd171ffc5682eed949b2ce15ae130fcc0
Check the unsupported type's uri to avoid NullPointerException

Forwarding an unsupported type of mms may have an
unexpected Uri, such as missing authority part.
Make sure the uri has an authority before using it.

Change-Id: I33417d0566ad5ff93e2c52ddb6aa107641c7d5ba
CRs-Fixed: 583527
MSIM: Fix for getSimOperatorName() returning empty string

Set the property for MSIM as well.

Change-Id: Ic9294c41bb486277e5ceb503e1bdc1dd70b24aa5
CRs-Fixed: 628015
Telephony: Release on-demand dds request upon dct dispose.

- During 3GPP to 3GPP2 and vice-versa RAT transition DCT may
be disposed by respective phone objects.
- Release all the current dds requests since the messenger between
connectivityService and DCT would get disconnected and both would get
out of sync with respect to DDS requests. ConnectivityService resets
score from corresponding telephonyNetworkFactory and likewise DCT should
also release all the requests.

Change-Id: I26459bb6db3c9d92f706b0e43f3702278099d079
Fix mms pdp activation issue

RefCount on apncontext will be decremented even though
it is not set if there is a release request while doing
PS attach on a sub. With negative refCount value, the
next pdp activation on same apncontext will be ignored.

Change-Id: If01d182f5072140be842add13784d7d51078687a
MSIM: Do not triger DDS after flex map

If "Switch DDS to Primary sub(FR 20891)" feature enabled,
Telephony application(PrimarySubSetting.java) will take
care of sending DDS request on multi mode sub so do not
send DDS request from framework layer.

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

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

Change-Id: Ic7337939f2c7e42a47840d8f9673a9f303584707

CSVT: Add an interface to check active CSVT calls.

CSVT clients need to check if there is an active CSVT call.
Add an interface to query CSVT service if it contains an active
CSVT call.

Change-Id: Icb1d4c88009daced629070b91da0400653da4dd4
(cherry picked from commit c9c5ed960a6527ec4e0bc9962fc2096a5c307746)
(cherry picked from commit aa7acf036f9474a4254edbac4b86c02afeeaac4a)
(cherry picked from commit e230f56ad9c5397d017d7f75c24ddda07e44211d)
Telephony: Add CallFailCause values for clear code

Add needed CallFailCause values and convert to DisconnectCause

Change-Id: Ib247757d0caed2cb36ae9ccd3e7e332004556db4
MSIM: Broadcast dds and set uicc request result

- Add support to broadcast DDS switch operation
result as part of DDS intent.
- Add support to broadcast set uicc result using
  intent ACTION_SUBSCRIPTION_SET_UICC_RESULT.
- Handle set uicc failure in ModemStackController

Change-Id: Iddfed4ccb80ea5202a9e45a8ee5b9e113d2e165e
Telephony: Disable manual network selection in Global modes

For multimode targets disable manual network selection
and force automatic mode network selection
in Global and Global+LTE modes.
Global Pre-FIT Test Cases: 5.6.4, 5.6.5, 5.6.8

Display error message for network search in Cdma

CRs-Fixed: 301939, 302354, 290268
Change-Id: I2a9528d1b5eeb9e7f22aeecaafb42bc8b6ed01e1
(cherry picked from commit e6a8214f0526f783f5a1ba9ebbf8b777b974ac43)
(cherry picked from commit 4f2a1c0113f6f4701f904a31ccc58ca0bd0d1a3e)
(cherry picked from commit d88c225acaf8de84e84a56f0778b59802c81c0ea)
IMS-VT: Multitasking feature

-Support for video multitasking

Change-Id: Ic56285f5df30f1252f97239a5e0fa667a5c9c5f0
Send external state again after updating siminfo table

Send external SIM state again after record is updated
in siminfo table.

Change-Id: Ia8f13880aa3c75ec4f729d89162dbf01eae02481
CRs-Fixed: 747191
MSIM: Update Default subId value

- If current default subId is inactive set the first
  available active subId as default sub.
- When no SIMs present on device initialize default
  data/voice/sms preferences with dummy subId

Change-Id: Ifda5b3c41a6f100dbabe67b07ac0aa07b2fcb146
CRs-Fixed: 750335