RIL: Support SMS on IMS

RIL_REQUEST_IMS_REGISTRATION_STATE is used to aquire IMS registration state.
RIL_UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED is called when IMS registration
state has changed.
RIL_REQUEST_IMS_SEND_SMS is used to send MO SMS over IMS. However, if retry
field is set in case of 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.

Change-Id: Ib71527c7c91b365549d667bc89ad5eec545ea939
hardware/ril: Add Unsol tethered mode state changed message
CRs-Fixed: 428833

Change-Id: I9cdfb20a05a0be7b72320cb3a802ab78f2d581f6
Support for LTE/WCDMA mode

Add network mode LTE/WCDMA to preferred network type
Operator mandated requirement

Change-Id: I25afaf61d21f24108f2730c1ddb5236693d9ab2b
Support Additional SIM Depersonalization

Add support for Additional Depersonalization types

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

Change-Id: I371a15428cd296cd02a2f82d5904dea483058c26
STK Call Control feature implementation.

Change-Id: I1164df9ddbf70fb42e760c1f3ab7f3df4b3b5339
rild: Send extended information records as ByteBuffer

Send information records to java as a ByteBuffer to prevent
UTF-8 parsing from mangling bytes.
CRs-Fixed: 338368

Change-Id: I558a41565b3e5e20aa40b5d0c5e748b204993e26
Reference-ril: Fix emulator

Cdma specific commands have to fall thru
all the way to default.

Change-Id: Ifaf2c691e8ced981d6c7f375337b1d69d6846bcb
hardware/ril(MSIM): Add support for multi sim

    Changes includes:
    1. Support Multiple instances of RILD identified by the arguments
       passed to RILD
    2. Add messages needed to support MSim
    3. Enhance emulator for MultiSim.

Change-Id: I16bfb90d13b3cbf9dd4940e11650d4f425f1d6db
Add TD-SCDMA support

1) Add TD-SCDMA RAT support.
2) Add TD-SCDMA SignalStrength support.
3) Add TD-SCDMA network modes

Update RIL_QCOM_VERION to 3.

Change-Id: I4eda094237ebc69ad1d2b8cc07c7fab2b4c00f17
Reference-ril: Send sms using RIL_REQUEST_SEND_SMS_EXPECT_MORE

Add support for RIL_REQUEST_SEND_SMS_EXPECT_MORE in reference-ril.

Change-Id: I60bba3a7970d92f59d762e5e2ba93d3b58bbee3b
CRs-fixed: 498301
Merge "Reference-ril: Send sms using RIL_REQUEST_SEND_SMS_EXPECT_MORE"
libril: some blobs don't support CELL_INFO_LIST commands

RIL blobs that don't support CELL_INFO_LIST needs this ifndefs,
or rild keeps crashing with segfaults.

Change-Id: Ifcd717740db812ce9a2371fcb20ed61d07efffe1
Merge tag 'android-4.3_r3.1' of https://android.googlesource.com/platform/hardware/ril into cm-10.2

Android 4.3 Release 3.1
Merge branch 'jb_mr2' of git://codeaurora.org/platform/hardware/ril into cm-10.2

Change-Id: Ic6f1409bc49d25339d7d21f920c9a5cb76f20c95
rild: Compensate for lack of CELL_INFO_LIST support

 * Lack of support for CELL_INFO_LIST throws off the command ids of
   pre-MR2 RILs. Adjust accordingly.

Change-Id: I08a7e2cd42a69a9f6003a33a6f07b01588e0ac5a
rild: Don't use the clientId argument with non-qcom hardware

Other modems' implementations won't know how to deal with it, and
some are confirmed to simply reject the RIL_Init call.

If the hardware isn't qualcomm, just skip the whole multi-ril stuff
entirely

Change-Id: I132a4d7fc3d4532b2015f7e95863fac78889f833
rild: Weaken the RIL_setRilSocketName symbol

custom libril implementations won't have it, but its lack isn't
fatal outside of multi-SIM

Change-Id: If8312078921bb4ed756dcd86e17e85847638c155
Merge remote-tracking branch 'cm/cm-10.2' into jb3

Conflicts:
	libril/ril.cpp
	libril/ril_commands.h
	libril/ril_unsol_commands.h