Add dummy impl for setDataProfile

in setDataProfile for compilation to go through

Change-Id: Iaca9f4c07401b4e37d364dac6271082b65617bf8
Fix the roaming searching text display in standby screen

Display roaming searching text in the device when cdma subscription
source is NV.As per current implementation, ERI file is always loaded
ir-respective of NV or RUIM.

Conflicts:
        src/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java

Change-Id: I6858e47e669ad5068481d516fb36606e7cb55bb6
CRs-Fixed: 646971
Revert "Add getOperatorNumeric method in RuimRecords."

This reverts commit c0597320831cf2b8ab0e9b4331c725019348d47a.

Change-Id: I0184627933f5810d24d30596b37c24a9fc7da558
Usat Phase 2 feature and Screen status

This change combines below 3 fixes.
1) Usat Phase 2 fixes
Added changes to support Idle screen, Language Selection.

This also includes change to support Idle screen status information.

Fix to address alpha display for proactive commands
CRs-Fixed: 432647
2) Telephony: Correct terminal response sent for Idle mode text cmd

When a proactive command : SET_UP_IDLE_MODE_TEXT arrives with
empty text and non-self explanatory icon, terminal response
:CMD_DATA_NOT_UNDERSTOOD should be sent back to the UICC as
per the SAT spec
CRs-Fixed: 280223

3) The GCF Testcase GCF-PTCRB SAT/USAT 27.22.4.1.1seq1.2 expects a
screen busy response if the ME is not in idle screen and if the
display text message is a low priority message. Hence sending screen busy
response instead of RESPONSE_TIMEOUT. In present implementation a
USER_RESPONSE_TIMEOUT response is sent for all timeout cases.

Change-Id: I8370dfab498ce632a04d1b24ad576c30dbd8ccfd
MSIM: Do not set data attach state to true

On MSIM devices, data attach value is set to true
always and due to that setUpData call is being triggered
even if device is not in service.

To fix this remove the code that sets attach state to true.

Change-Id: I15b13ef36983e1ea426c78fd5358ae5f85ce3428
Add FLAG_RECEIVER_FOREGROUND to CatService broadcast intents.

Stk app can receive broadcast intents from CatService before
BOOT_COMPLETE, when Intent flag FLAG_RECEIVER_FOREGROUND is added
to the intents. Without this flag, broadcast intents sent before
BOOT_COMPLETE are queued up by android framework.

Change-Id: I92d1ecb19fdaf1e9ed9b881c1cc15bb01b591093
CRs-Fixed: 620457
Cat: Do not send TR immediately for Display_Text

Currently for DISPLAY_TEXT proactive command, if the application
response is not required, CatService sends a terminal response to
card immediately and then sends the proactive command to StkApp.
On receiving the TR, the card responds with a Session_End. If the
Session_End is sent to StkApp before it finishes processing the
Display_Text command, a nullPointerException is seen in StkApp

Do not send Display_Text TR to card immediately. Send the TR after
the Display_Text command response has been received from StkApp.

Change-Id: Ic00067fe48b264c77092dfef3278472d95663016
CRs-Fixed: 608287
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