telephony: add SamsungExynos4RIL class

Forward ported from CM10 including contributions from:
Andrew Dodd<atd7@cornell.edu>
Daniel Bateman <jetison.24@gmail.com>
Daniel Hillenbrand <codeworkx@cyanogenmod.org>
Ethan Chen <intervigil@gmail.com>
Lee Chu <lee.lc.chu@gmail.com>
Mike Kasick <mike@kasick.org>

Change-Id: Ibc33a866a02a88b346ae30aa6f09a398edfc79c1

Conflicts:
	src/java/com/android/internal/telephony/RIL.java
SamsungExynos4RIL: set number of elements returned from QAN response

Change-Id: Ia9b50814987f9bd4cf7f69d7fe7e8f9dfa4316c6
SamsungExynos4RIL: fixup radio states, notify on PIN-unlock

Change-Id: Id512e61d383ccc0df8ca1a6c398adce80d917a5d
SamsungExynos4RIL: fix signal strength

Doesn't work with Gingerbread radios!

Since ICS, the modem sends the signal strength in the first 8 bits
and the number of bars as from bit 9.
For old radios the first 8 bits are always 99.

Change-Id: I67b31baf18cbce2dfa7e6f8b096caaae74cd7cd8
SamsungExynos4RIL: Allow signal strength to be handled for GB modems

For devices that have no modems that support the ICS signal strength handling, allow handling it the old way with the ro.ril.gbmodem system property.

Change-Id: I68270c5a4026b2c8f448125607ee47dd04249176
SamsungExynos4RIL: provide a fallback solution if signalstrength is invalid

Change-Id: Ib533b15feb4f56c00f1ce3c7baff5e0e73255e6c
SamsungExynos4RIL: fix emergency dialing

Change-Id: Ib910b82141a737b85b6c4e6cc7cec7c72a1d08b3
SamsungExynos4RIL: cleanup for use with opensource libril

* only emergency dialing needs hacks

Change-Id: Ib573d65fd4fb3201bdbe0960838d15f88645a8ec

Conflicts:
	src/java/com/android/internal/telephony/SamsungExynos4RIL.java
test
x
CM: Use Rlog

Change-Id: I7439a200b9b8f815500ce89c922df069acbfc1a0

Conflicts:
	src/java/com/android/internal/telephony/HTCQualcommRIL.java
	src/java/com/android/internal/telephony/LGEQualcommUiccRIL.java
	src/java/com/android/internal/telephony/SamsungCDMAv6RIL.java
	src/java/com/android/internal/telephony/SamsungExynos3RIL.java
	src/java/com/android/internal/telephony/SonyQualcomm8x60RIL.java
RIL subclasses: Fix processSolicited for the new API

Conflicts:
	src/java/com/android/internal/telephony/HTCCDMAQualcommRIL.java
	src/java/com/android/internal/telephony/QualcommSharedRIL.java
	src/java/com/android/internal/telephony/SamsungCDMAv6RIL.java
	src/java/com/android/internal/telephony/SamsungExynos3RIL.java
	src/java/com/android/internal/telephony/SamsungQualcommRIL.java
telephony: Fix custom RILs for new API

Change-Id: Ibc4174fbe9046dcdfcdf58f6aaf2dc7b5bcd483b

Conflicts:
	src/java/com/android/internal/telephony/QualcommSharedRIL.java
	src/java/com/android/internal/telephony/SamsungCDMAv6RIL.java
	src/java/com/android/internal/telephony/SamsungExynos3RIL.java
	src/java/com/android/internal/telephony/SamsungQualcommRIL.java
SamsungExynos4RIL: buffer CAT Proactive Command

The RIL sends a CAT proactive command (init) before the registrant
is registered causing the command to be missed and STK menu to
not show up. Buffer it and fire it when the registrant is registered.

Change-Id: I021ce911e55b30c1a2d95d8060f7d9ff72e3b742
Add Samsung STK support (telephony part)

Support for SMS-based SIM applications.
Partially rewritten the original patch by Jüri Schultz to be less intrusive.

Change-Id: I15d2de1781a2823e24941dd792db3d372578aa9f

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

Conflicts:
	src/java/com/android/internal/telephony/CommandsInterface.java
	src/java/com/android/internal/telephony/RIL.java
	src/java/com/android/internal/telephony/cat/CatService.java
	src/java/com/android/internal/telephony/cat/CommandParams.java
	src/java/com/android/internal/telephony/cat/ValueParser.java
Samsung STK: Add USSD support

Allow USSD-based STK applications to work

Change-Id: I483f37a44a6c3ed43eefcf979e17b84877d03f93

Conflicts:
	src/java/com/android/internal/telephony/cat/CatService.java
Samsung STK: Fix SMS-based STK

SEND_SMS was falling through to SEND_USSD (which used to do nothing
until USSD support was added) causing an Exception because cmdParams
is not an instance of SendUSSDParams.

Fix by using type-checking instead of checking if Samsung STK is
enabled (because SendSMSParams and SendUSSDParams will only be
created if Samsung STK is enabled.)

Change-Id: I671014e295e9e529aad25a8b6fbd5a2e5788fc44
Fix Samsung STK code for msim

Change-Id: I726f03351f42ce58b8387fad20adfac224c28199

Conflicts:
	src/java/com/android/internal/telephony/cat/CatService.java
fix merge derp
another merge derp
CdmaLte: Fix 3G reported as unknown on certain devices

Some older CDMA/LTE RILs only report VoiceRadioTechnology which
results in network Unknown. In these cases return
RilVoiceRadioTechnology for RilDataRadioTechnology.

Set ro.telephony.ril.config=usevoicetechfordata to enable

Change-Id: Icfbc8739993beae1b0f024bf71374751aa200a01