fix sms receiving for some Samsung CDMA phones

Change-Id: I4639b10e5d1c512135572807f9430e81b6b8869b
add MotoWrigley3GRIL

to fix:
- outgoing call identification dependency on Caller ID setting
- supplementary service notification issue known from gingerbread

Change-Id: Ic17b52e4abf5bf44a585e58bd6cb6e4863041a87
Telephony: Make the compat-flag verification method available everywhere

Export needsOldRilFeature() through the commands interface to make it
available to other parts of the telephony stack

Change-Id: I0e6fec083f5208795bf5067f8c73e35660e942ed

Conflicts:

	telephony/java/com/android/internal/telephony/CommandsInterface.java
	telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
	telephony/java/com/android/internal/telephony/sip/SipCommandInterface.java
	telephony/java/com/android/internal/telephony/test/SimulatedCommands.java
Fix contact lookup with CLIR prefix

Allow phone numbers which are saved in the phonebook including a
CLIR prefix to be correctly resolved on an incoming call.

For a proper fix, all special cases detailed in calledPartyBCDToString()
should be taken into account; unfortunately that function cannot be
directly used as it currently is.

Change-Id: Ie070e1efc0921bfb0ae0802f500afced5071a652
QualcommNoSimReadyRIL: Drop the initialstatechange check

ICS doesn't have it anymore, and it actually breaks the P930's init
sequence

Change-Id: Ic9dfb5f2eddcda825a6d3fc5d380ebc4d56add90
LGEQualcommUiccRIL: New subclass to deal with the latest qcom RIL

Yet another generation of CAF RIL, this one is necessary to support
multi-RAT (GSM/LTE) radios...

Change-Id: I87b5126ffbc16f3ccc7caaf227354edf95543c35
RIL: qcom: Stop the card handler thread when radio is off

Ensure the SIM is reinitialized when the radio is turned on, to
prevent state mismatches from dirty variables.
Fixes occasional crashes while entering/leaving airplane mode.

Change-Id: Ib8ca81eee00fd4a983f63190f51f5f27fd0947b6
LGEQualcommUiccRIL: Fix LTE support

Change-Id: Ifab51550113926d6d1b6c421e805f456d95faca8
LGEQualcommUiccRIL: Fix LTE signal strength

The RSRP sign is wrong, results in always-excellent network indication. Fix
it.

Change-Id: I3ad40eabca88babf41ad89903648e76f6d8c0830
LGEQualcommUiccRIL: Fix PIN/PUK operations

PIN/PUK settings/changing/disabling was broken due to missing parcel
items, fix it;
Each set of strings must be prepended by a count of said strings.

Change-Id: I902eea6ba275b24e105f1b42f7d5d9f23e76d0c5
SamsungRIL: clean up and re-organization

Clean up some messy code in the Samsung RIL.

Change-Id: If8bc9c0e4264de5919be1b6a858896076c879708
Telephony: Add getLteOnGsmMode() method

Same functionality as the existing getLteOnCdmaMode, but for GSM
LTE devices.
Enable with the telephony.lteOnGsmDevice system property

Additionally, support GSM LTE in the SystemUI LTE power widget

Change-Id: Ibfb47ca608e51393b99d3308e0a6c66050b3f32e

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/LTEButton.java
	telephony/java/com/android/internal/telephony/BaseCommands.java
	telephony/java/com/android/internal/telephony/ITelephony.aidl
LGEQualcommUiccRIL: Adapt to new GSM+LTE support

User LTE preferences now stick, instead of resetting to LTE-on after
reboot

Change-Id: If8285af9a9eeaa70594f8a10ce5d8177b5fe030f
QualcommNoSimReadyRIL: Support radio state in new generation rils

The radio-state enums in CAF's ICS have changed from GB, radio_on is
now 10

Change-Id: I81f84a551bec0537925c4b34aa158b7c7a037f59
LGE*RIL: Skip data-call format conversions unless it's a non-ICS RIL

Use the same "datacall" feature filter as the main CM RIL

Change-Id: Id7afbe69b709774794372bf9426e6eba600df3a2
LGEQualcommRIL: Fix PIN status for e73x

The QUERY_FACILITY_LOCK call is completely broken on the e730/739
when the SIM card status (SC) is requested.
Instead of letting it go through (and fail), use the pin1 status
from the IccCard application to figure out what the lock state is,
and return it as a message to the calling handler.

Change-Id: Iaed16bcb1a3ee71d9e833e4a4ccee423de0593a4
LGEQualcommRIL: Fix dataCallState objects

Change-Id: I5f36370981737200de808922bd6772a08dc85608
LGEQualcommRIL: Fix radio version on victor

Use that device's specific GET_MODEM_VERSION request to fill in
the usual BASEBAND_VERSION data

Also, merge QualcommNoSimReadyRIL into LGEQualcommRIL, since no
other device subclasses it anymore

Change-Id: I191f7229b59fcc8ace920c9b66ee0cff0113934b
LGEQualcommRIL: Clean up processUnsolicited

At David Ferguson <ferguson.david@gmail.com>'s suggestion, remove
the full overload of processUnsolicited and have it just work with
the requests unknown by the RIL superclass. Pass everything else
upwards, unmodified.

Change-Id: Ie019fbaa3d5010bf7adc5528f3d523a77efb146f
telephony: SamsungRIL cleanup

== RIL ==
* remove unused "found" boolean in processSolicited
* make requestToString/repsonseToString append the request
  ID on unknown requests.

== Samsung RIL ==
* add CM copyright header to file
* SAMSUNG_UNKNOWN_MAGIC_REQUEST_3 is actually UNSOL_AM
* add DIAL_EMERGENCY to a SamsungRIL::requestToString
* add DIAL_EMERGENCY response to processSolicited
* move emergency dialing into dialEmergencyCall()
* dialEmergencyCall() also ditches UUS info like on stock.
* cleanup and improve readibility of responseCallList()
* move isVideo before isVoicePrivacy, as it is in stock:
    ref "stock" code: http://pastebin.com/WePMyXDi
    ref "stock" order: isMpty then isMT then als then isVoice then isVideo
                       then isVoicePrivacy
    ref cm code: http://pastebin.com/UU105gNr
    ref cm order: isMpty then isMT then als then isVoice then
                  isVoicePrivacy then "videoMagic"
* general cleanup

Change-Id: Ic4ada0a3d6ac1bf580b3930a2599a91e822540ef

Conflicts:

	telephony/java/com/android/internal/telephony/RIL.java