Separate SIM states from Radio States

A UICC can have multiple applications (USIM, CSIM). Both USIM and CSIM may be Ready.
So indicating modem state as SIM_READY/RUIM_READY will be incorrect. RADIO_ON is a more
appropriate Radio State. SIM status can be obtained from the RIL_REQUEST_GET_SIM_STATUS
and RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED messages.

The change does the following

 - Remove SIM states from RIL_RadioState
 - Add messages to indicate voice radio technology

Change-Id: Ied45ba6e62963920815aa09fc0a7bfd6acc6f701
Support SMS on IMS, Additional SIM Depersonalization and data change messages

- support for Additional Depersonalization types
- support for SMS over IMS
- changes to ril.cpp to reflect ril.h changes
- added unsol tethered mode changed & data network
  state change

Change-Id: I8af8fd5f7759fef1f0611b40293c04e56c31a453
Support reading data profiles from OMH cards

Change-Id: I53d8c163711dbadc34377e981399459d6faf6486
Add RIL_APPSTATE_ILLEGAL required by qcril

Change-Id: I5540081e0e58519244aaf67f970e22cb73d3c147
STK Call Control feature implementation.

Change-Id: I5e495d353b878308675749b19f8e7d5cd31e2d40
Add support for DSDS

Change-Id: I1b958b4abb0d2584ba98b6ad63bdbaa9aa34f508
Implement sim_refresh and get_imsi as per ril v6

Change-Id: I8d28f30266678e7cb646179ed53aa0d3480140ac
hardware/ril: Add new RIL interface to specify transmit power

The new interface to specify the transmit power is added to meet
the FCC regulation (Title 47 CFR Part 15).

Change-Id: Id3f2d0bc8de60b91c7bfb18b723e74d1288aba55
Quality of Service (QoS) support in Android - RIL APIs

* Add RIL APIs to enable the use of QoS in mobile data
* APIs to enable creation, deletion and modification of
  traffic flows on various radio technologies.
* Support for specifying various flow and filter parameters

Change-Id: I00adfab8a31b3b10ef982c3787343036d93ece4a
telephony: fix logging for setup_data_call response

Change-Id: I611d96e7653da4f14d73c6d6f9663365dd983628
reference-ril: Add support for a RUIM application

Change-Id: I9377d1cc8e851f4119faf3aba3417b4dd184336f
reference-ril.c : Support for processing SignalStrength response

Change-Id: Id92e313eaed0d674ded5d320cf9d60b9a098b518
Add CDMA and multimode support to reference-ril

Reference RIL will query emulator modem the supported radio technologies
and the current radio technology and respond to telephony with the
information. Support for basic CDMA RIL request messages and messages
to set and query preferred network mode to be able to switch between
radio technologies.

Change-Id: I96dfe0f5a1defd79e67966739016388ad5c709fc
Telephony: Added STK proactive commands support for emulator

Change-Id: I629d26d238f2725e808dcbb4fcad3879a73d551c
Rild: Ril should try to write again  to the socket EAGAIN error

In case of  EAGAIN error, the RIL should write to socket again after some
time.

Change-Id: I31765d943009f0013997491389c888010548decb
CRs-Fixed: 285312
Changes to work with dynamically shared library.

Change-Id: Ia59bbf322f7a8b1a7d3210abe331ccaa9f8a897e
reference-ril : Fix for F8 toggle cell networking

F8 key is used toggle data network connection.
On pressing F8 RIL_UNSOL_RESPONSE_DATA_NETWORK_STATE_CHANGED is sent
in addition to RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
to induce polling of data network state.

CRs-Fixed: 305275

Change-Id: I2a763ec07cdea271d89f81dfc606733bc39abdc3
Merge "reference-ril : Fix for F8 toggle cell networking" into ics
Hardware/ril (DSDS): Add DSDS support

Add support to handle two clients.
Add ril_msim.h for all definitions related to DSDS.
Add msimreference-ril to support DSDS in emulator.

Change-Id: I96275d490e8b2d6f48b8092afbc888eff8a5f7cc
Add retry and messageRef fields for RIL_REQUEST_IMS_SEND_SMS

In case of Sms over Ims failure, RIL_REQUEST_IMS_SEND_SMS sets messageRef from RIL_SMS_RESPONSE
of corresponding failed MO SMS, and sets retry field to non-zero. If voice is available, sends
RIL_REQUEST_IMS_SEND_SMS retries with data encoded based on voice tech available.
If voice is not available, sets retry counter to max and skips retries and sends failure
to client.

Change-Id: I0b837967604d7cb6ba0b317132e7872a1f3f23ef
CRs-Fixed: 318759