rild: Send extended information records as ByteBuffer

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

Change-Id: I558a41565b3e5e20aa40b5d0c5e748b204993e26
CRs-Fixed: 338368
(cherry picked from commit 74ec9e48d6515865384cdf8607fb265d096d4f12)
(cherry picked from commit fd77b4fab982575dd35f89ce071004d55edd365e)
(cherry picked from commit c7c939156c3f1e5110001b8ac45b82b64f04f655)
Support reading data profiles from OMH cards

Change-Id: I371a15428cd296cd02a2f82d5904dea483058c26
(cherry picked from commit e2d39f6cf77d29ad57243649dc54d96a60db922c)
(cherry picked from commit 54866893124465af843a16148ff53534e725eb54)
(cherry picked from commit 494ba62c5119b0002bfedb51d4ed51514c76aa0e)
STK Call Control feature implementation.

Change-Id: I1164df9ddbf70fb42e760c1f3ab7f3df4b3b5339
(cherry picked from commit 3ad8ca2d4c4fa62192d27edfca110db316001c6f)
(cherry picked from commit a08b126d1c9bcd967be6fcae681f911d57b4f929)
(cherry picked from commit ee940a0adcb8d8915979e47dc3eabc92e5a555fb)
Add WRITE_SMS_TO_SIM and UNSOL_SUPP_SVC_NOTIFICATION.

Add WRITE_SMS_TO_SIM and UNSOL_SUPP_SVC_NOTIFICATION in
requestToString method.

Change-Id: I323f276d4048b168b27669a0aebb58cd9decf9bd
(cherry picked from commit 5eb546bf114ecf44b3fe003ce13a2c395f45d0f9)
(cherry picked from commit 138bbe329306994e33f07febb2bb974932798c55)
Add Multi RILD support.

Support Multiple instances of RILD identified by the arguments
passed to RILD

Change-Id: I3ac00242aed7fd40e3b7a71d00f906e7c9805c7c

Conflicts:
	reference-ril/reference-ril.c
(cherry picked from commit 424e8db95c9d483dcefcbd8d861364f1589e8dd1)
Interface changes to support Multi SIM functionality.

Add support for
    RIL_REQUEST_SET_UICC_SUBSCRIPTION
    RIL_REQUEST_SET_DATA_SUBSCRIPTION
    RIL_UNSOL_UICC_SUBSCRIPTION_STATUS_CHANGED

Change-Id: I21ac55007610e6695c7f798db16f1d47b143c9e9

Conflicts:
	include/telephony/ril.h
	libril/ril.cpp
(cherry picked from commit cd388722d9fe05760ee4ab4c24e6e1fd832aa676)
Support Additional SIM Depersonalizations.

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

Change-Id: I6c102ac7c253bbc8dda1e8c96cdf33c3dfbf787d
Add TD-SCDMA support

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

Change-Id: I4eda094237ebc69ad1d2b8cc07c7fab2b4c00f17
Use SimRefreshResponse struct in RIL Versions greater than 7.

Modify condition to use SimRefreshResponse struct in
all RIL Versions greater than 7.

CRs-Fixed: 597007

Change-Id: I40fb4ad96e191ae6641eb31da014515d08704382
Fix parameter mismatch between header and implementation

RIL_onUnsolicitedResponse's second parameter is
const void *data
according to include/telephony/ril.h and rild/rild.c, but
void *data
according to libril/ril.cpp

This mismatch causes a compile failure with clang (and I'm surprised
it compiles with gcc with the mismatch - probably gcc parses this as
function overloading even though it's extern "C", which wouldn't do
what is expected).

Change-Id: Ib437040aeca4be43cc2d327c3715ffa98c76878c
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Fix pthread_create error handling in ril.

Bug: https://code.google.com/p/android/issues/detail?id=64189
Change-Id: Ie6282dda582a574aaad5513c39f2d8d965f6dee3
Merge branch 'cm-11.0' into kk_mkt