Handle new cmds received as EVENT_NOTIFY.

QMI_CAT will cache some proactive commands and send
them as EVENT_NOTIFY when Android Telephony restarts.

Handle new cmds and do not send TR for these commands
when received as EVENT_NOTIFY.

Change-Id: I4635738620b2bbfc89e72d3668ff789ae0975282
CRs-Fixed: 665734
Read IMSI using SIM I/O for CSIM/RUIM

Use Sim I/O command to read the EF_IMSIM to retrieve the IMSI
from the card, rather than using CommandsInterface.getIMSIForApp.
When both SIM and RUIM app exists, we cannot specify the
application for which we should retrieve the IMSI using the getIMSI
API, since SIM and RUIM have no AID.

Conflicts:
        src/java/com/android/internal/telephony/uicc/RuimRecords.java

Change-Id: I905d4a271dfba168f2bc3830b8a50733cbe17f8c
CRs-fixed: 514270
Change SUB_ID column to PHONE_ID for SMS and MMS

As per Google SMS/MMS are storing with SUB ID in data base
due to this if user changed the SIM's then user won't be able
to see the already stored SMS/MMS in phone.

Modifying data base to store SMS/MMS with PHONE ID, now user
will be able to see the stored MMS/SMS in phone even after
inserting the different SIM's.

Change-Id: I4b17afe494e6ef8c53d2983653903667fbc4c0aa
Add ME Depersonalization support.

Add support for all ME De-Personalizations as per specs
3GPP2 C.S0068-0 and 3GPP TS 22.022.

Change-Id: Ieeb196c72eb74311643f6af0bf8958acb9541406
CRs-fixed: 467276
Fix data call retry issue for RAT change

If there is a data RAT change when current data
connection is in Retry state, the RAT change event
will transition data connection to Inactive state.
Due to this, though data is enabled, there will not
be any data connection.

Add a check for service state while processing RAT
change event in Retry state.

Conflicts:
	src/java/com/android/internal/telephony/dataconnection/DataConnection.java

Change-Id: Id2234c7efcccbeb034ac72dea31be433e6827131
CRs-Fixed: 623323, 677120
Telephony: Add an API for getting recipient address of SubmitPdu.

There is no API to get the recipient address of submit pdu for SIM
card message. getDisplayOriginatingAddress() return null for submit
pdu, it will cause applicatoin can not get address of sent message.
Thread ID can not be created for this invalid message record.

Add an API getRecipientAddress() for SubmitPdu in SmsMessage.

CRs-Fixed: 627278

Conflicts:
	src/java/android/telephony/SmsMessage.java

Change-Id: I8b8af6002b5b309cba5383adb37275642487f1f0
Add support CallBarring.

Add support for CallBarring in the Phone App
CallBarring now supports the following
-Barr All Outgoing Calls
-Barr Outgoing International Calls
-Barr Outgoing International Calls except to Home Country
-Barr All Incoming Calls
-Barr Incoming Calls when Roaming outside the home country
-All Barring services

CRs-Fixed: 520315

Conflicts:
	src/java/com/android/internal/telephony/PhoneBase.java
	src/java/com/android/internal/telephony/PhoneProxy.java

Change-Id: I6b69aaa422a06a8a839537ef658f24af32ace52c
Pass correct arguments to sendText api

Pass correct arguments to sendText api

Change-Id: I3b07c7c359af12fe6d63636408d4d6237acff8cd
Use proper coded for when a contact is written into EF_ADN of USIM

Based on the description in "3GPP TS 31.102 clause 4.4.2.3" shown below,
Alpha Identifier of EF_ADN of USIM is defined in default 7-bit coded
alphabet if bit8 is set to 0 otherwise, it is defined in UCS2 coded.

Change-Id: I02a68d9db7ede30661f2526d3b354bbc1f556110
CRs-fixed: 553329
Set the partial SMS segment expire age by config in xml

Define the value same as the original one, i.e. 30 days,
in config xml file, and change it via overlay for customization.

Change-Id: I70253b32074cfc39ab9d75131c4d9022470b5a3c
Manual CDMA and GSM search in global mode

Always set preferred network mode as Global.

Change-Id: I2b79c80a3d226156e4559f54b0d9e39ed0152d01
CRs-Fixed: 530240
Cat: Add support for Activate cmd and HCI connectivity event

Add support for Activate proactive command defined in ETSI TS
102 223 [6.4.40] and HCI connectivity event defined in ETSI TS
102 223 [7.5.18].

Change-Id: I3755cb275a09a346d7b0b799242c818d969f8dff
CRs-Fixed: 618962
Fix for MO MMS failure on Cdma.

In CdmaServiceStateTracker, MDN read from RuimRecords
is getting overwritten with null value returned from
RIL_REQUEST_CDMA_SUBSCRIPTION.
For MMS send transaction, MDN with null value is
returned to MMS app, and MMS app will skip inserting
"From" address in MMS Pdu. Mmsc is unable to resolve
the "From" address from MMS Pdu, thus resulting in MMS
failure.

Add a null check to MDN returned from RIL request.

Change-Id: I54fc34492d092de6b332a662cd595c8c3c7f28e4
CRs-Fixed: 696921
Revert "SIM Phone Book : Modify update operation"

Not required. Not present in AOSP and spec only mandates
numbser field in SIM but do not mandate the value in number
field which can be null.

This reverts commit 8e743dacced5fdc1a037630089f93ff15b2ed58e

Change-Id: I49749351597118183780ed268fca074349f1e2ab
Get proper network type when records loaded.

Get preferred netwotk type based on phone ID when records loaded

Change-Id: Ibc57cc7d2060cd3fa292d9589721f3073a04d20d
SEEK: Add support for getAtr api

Implement getAtr for SEEK on Android..

Conflicts:
	src/java/com/android/internal/telephony/BaseCommands.java

Change-Id: I22f8661bbe65e6d2449a7e2f56a0f9c42cf7d164
Add support for Silent Redial and SRVCC

1. Silent Redial uses the same notifications as SRVCC. Add support
to handle the notifications in CDMA mode.
2. Frameworks and UI support for connection handover.

Change-Id: Icc1f9ad50a1dcb53a2af1aae8d296af7101676aa
Conflicts:
src/java/com/android/internal/telephony/Phone.java
src/java/com/android/internal/telephony/cdma/CdmaCallTracker.java
MSIM(DSDA): Allow ringing calls on both subs at same time

For DSDA, Allow ringing calls on both subs at same time.

Change-Id: I90aca6f86322a1b8835bf0e76b8b15b2b15308b0
Ims: Send user selected TTY mode to lower layers.

Irrespective of whether TTY device is connected or not
send TTY mode setting to modem whenever user changes it
from settings.

Change-Id: I6f6b82e3bb7fd326f71b0aabf4c1098a06c8941c
CRs-Fixed: 698661
telephony: add overloaded CellBroadcast APIs

Change-Id: If2ffb195ed9dff09f68f35dca9c151384829a0bd