frameworks_opt_telephony: Squashed commit of the following sync with CM:

commit 0342bf6cbbd8cdef15311d0c4add72bccccb395d
Merge: 6acd62c aee7b82
Author: Wizard0f0s <jamie.gilmer@gmail.com>
Date:   Tue Jun 11 02:45:32 2013 -0400

    Merge branch 'cm-10.1' of git://github.com/CyanogenMod/android_frameworks_opt_telephony into cm-10.1

    Conflicts:
    	src/java/com/android/internal/telephony/SamsungQualcommUiccRIL.java

    Change-Id: I608d81d34050d7069516f7cd8c0f38eb30402ff9

commit aee7b8203fae90edbc91ed879ffb6e53bb90b2d2
Author: Shareef Ali <shareefalis@cyanogenmod.org>
Date:   Fri May 31 21:58:27 2013 -0500

    SamsungQualcommRIL: fix errors and replaces it with known values

    * handles all exception and errors coming from the ril.
    * fix an issue with mnc, potentially fixing herpderpd/lte  daemon.
    * properly fix all exceptions
    * We only need AMR states, cyanogen said
    * clean up legacy stuff

    Change-Id: If76e0c995b1d95e155fc2fe724de1f12013125c3

commit a8dd7a045649b15d95b3afde47ba5c8ebe28d2de
Author: Daniel Hillenbrand <codeworkx@cyanogenmod.org>
Date:   Mon Jun 3 17:12:00 2013 +0200

    HTCQualcommRIL: clean up unused functions and responses

    Change-Id: I0c381677dbb2a8a76008c8eec6e1057fd22be43c

commit 61406f17b3041299a4350203682ff27bc15322e5
Author: David Ferguson <ferguson.david@gmail.com>
Date:   Sun Jun 2 12:23:41 2013 -0400

    SamsungQualcommRIL: evaluate samsungDriverCall in responseCallList()

      * fixes race condition where mRilVersion is not valid when setPhoneType() is
        called. When this happens, the auto-enable of samsungDriverCall for v7 RIL's
        is broken. The result is that hanging up does not work.
    Change-Id: I2642110d3683648aaff722c86d3dc21cbd9ee802

commit fdddaed0ea282cd90c849f3658cbce95c7f130b6
Author: Shareef Ali <shareefalis@cyanogenmod.org>
Date:   Sat Jun 1 02:48:49 2013 -0500

    SamsungQualcommRIL: fix race condition when starting phone type.

    * ril is init but hasn't picked cdma or gsm, instead the ril picks no-phone.
    * support switching gsm to cdma and vica versa
    Change-Id: Ib9eaf88d5a7e90b2458ab787da230fca9a41249f

commit cbe7c3f2aa1ab43af30e75090fc6f125495fea06
Author: Shareef Ali <shareefalis@cyanogenmod.org>
Date:   Fri May 31 21:15:24 2013 -0500

    SamsungQualcommRIL: use the advantage of static type.

    Change-Id: I3ebee8c6f6648be47ce896d64d34ddfa5e286208

commit 72ec18b6db0e381ed45c74527579e6f925f13c64
Merge: 3b838b6 df7c34d
Author: Steve Kondik <shade@chemlab.org>
Date:   Fri May 31 16:37:19 2013 -0700

    Merge "ril: Add Samsung-specific unsolicited commands" into cm-10.1

commit df7c34d2e5a0890731343034728b3088b2af51ec
Author: Steve Kondik <shade@chemlab.org>
Date:   Fri May 31 16:35:17 2013 -0700

    ril: Add Samsung-specific unsolicited commands

     * This is shamelessly stolen from the Exynos RIL, but it's relevant for
       JF now. Without a proper response to the WB_AMR query, audio fails in
       strange and unusual ways.

    Change-Id: I9f37c7b82e9b171479847a24ff3a1e10ada973bd

commit 3b838b6b200c69b3ae4b802b628369b18ab1343b
Author: Shareef Ali <shareefalis@cyanogenmod.org>
Date:   Fri May 31 13:12:17 2013 -0500

    SamsungQualcommRIL: fix logic order

    Change-Id: I9d201b0a4c00d8283108ba3f62c91d39c89bd001

commit 873f5a8692bcfa5b8394c95b2783f6bad7653a28
Author: Shareef Ali <shareefalis@cyanogenmod.org>
Date:   Fri May 17 07:46:42 2013 -0400

    SamsungQcomRIL: New class and get rid of old and outdated codes

    Consolidate the RIL and base on the CDMA RIL
    Now inherit class related to the Samsung Qualcomm family

    Special thanks to Dan Pasanen for coninuing the patcheset
    while my macbook was in repair.

    * Rebase on standard ril
    * samsungDriverCall now handled in the superclass

    * Supports:
      * Quad-core Exynos4 with Qualcomm modem and later
      * Snapdragon S3 and later

    Change-Id: Ie593e32087a9bfeb5d16802a10c2739cf1061676

commit 8f5a38069bac929e4aaaa94f7952aeae79208e79
Merge: a10af6b c38bc05
Author: Danny Baumann <dannybaumann@web.de>
Date:   Mon May 27 01:00:09 2013 -0700

    Merge "Fix a typo bug." into cm-10.1

commit a10af6b3f249f15b7aced21508daef2b5cb508b8
Merge: 757cd69 06519f3
Author: Giulio Cervera <giulio.cervera@cyanogenmod.org>
Date:   Thu May 23 06:11:14 2013 -0700

    Merge "RIL: Correct the RIL_REQUEST_DIAL api missmatch" into cm-10.1

commit c38bc05734e8e5f663becf7b3fae672f36fb32be
Author: Gao Rong <gaorong.dawn@gmail.com>
Date:   Wed May 15 13:29:16 2013 +0800

    Fix a typo bug.

    Card state log should be correctly dispalyed as cdma_id instead of cmda_id.

commit 06519f3cacfbd9c12ad7e2cb907f0e7fe44ecc7c
Author: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Date:   Wed Oct 10 11:12:05 2012 -0700

    RIL: Correct the RIL_REQUEST_DIAL api missmatch

    The uusPresent is written twice in dial() so it will always be
    marked as absent.

    Change-Id: Id50a4dc8a3eefdaf2284e410382428c52e9b5ef1

commit 757cd6996465b8e88d3f6502dac52556e23354a7
Author: Matthias Bosc <matthias.bosc@gmail.com>
Date:   Tue Apr 23 19:39:55 2013 +0200

    frameworks telephony - add DCHSPAP value

    Change-Id: Ic68579da84f25be0a824d7632ce9632b9ae66944

    Depends on: http://review.cyanogenmod.org/#/c/35439/

commit 4bacfdff1917e68474db00693ba1eee695a463c3
Author: Ethan Chen <intervigil@gmail.com>
Date:   Thu May 16 23:34:13 2013 -0700

    HTCQualcommRIL: re-add force LTE modes

    Change-Id: Ib1a53e0c34631ae187088a0f0161e3954ac36a80

commit f93cdeae46fb8415b9f77de5f5f9e62394a203a6
Author: Ethan Chen <intervigil@gmail.com>
Date:   Thu May 16 23:30:25 2013 -0700

    HTCQualcommRIL: remove unused responseIccCardStatus function

    Change-Id: I45fecfe2841911463e2dd02b7728ce5e6eca17a0

commit 1196b35e54e187a453b8bf6ecfbb37e1f98f83e3
Author: Ethan Chen <intervigil@gmail.com>
Date:   Thu May 16 16:09:58 2013 -0700

    Revert "libril: HTC8960RIL: add flag to force CDMA+LTE network mode"

    This reverts part of commit: 492c36536d259d55ea947a03ff22ad05ae6f51b2

    Change-Id: I8cd4d1261b26e9fbe2aaaf7d423b9606aa243494

commit fad8882d4a496a4cadb07bf2bfefbb8cad5c7579
Author: Ethan Chen <intervigil@gmail.com>
Date:   Thu May 16 15:55:11 2013 -0700

    HTCQualcommRIL: allow skipping of initial radio power off message

    HTC 8960 radio starts by powering itself off, which leads to a race
    situation where the radio powers on, then reads the power off message,
    powering itself off again. Allow the initial power off
    to be skipped.

    Change-Id: Iebd53b98e63c8f2ec9461c7f220fa1bb7ccd1e17

commit e17912c8bd5528c395325a165a0c46cf005d8577
Author: Ethan Chen <intervigil@gmail.com>
Date:   Thu May 16 15:03:59 2013 -0700

    HTCQualcommRIL: adaptable signal strength format

    HTC signal strength format has 14 fields, stock libril has 12

    Change-Id: I8f42a9864dcd5f3071663d16535423e5cc12afbd

commit 492c36536d259d55ea947a03ff22ad05ae6f51b2
Author: Ethan Chen <intervigil@gmail.com>
Date:   Fri May 10 16:38:14 2013 -0700

    HTCQualcommRIL: squashed set of updates

    libril: HTC8960RIL: add flag to force CDMA+LTE network mode

    HTC8960RIL: update unsolicited messages from m7wls stock

    RIL: make HTCQualcommRIL extend QualcommSharedRIL

    Change-Id: I650945f6e03ef9f0cbfa1cf605b22859bfe20def

commit c70b94eac2766ceae1f99703792b0dc5856b087f
Author: Steve Kondik <shade@chemlab.org>
Date:   Sun Apr 21 02:25:34 2013 -0700

    telephony: Remove SamsungQualcommD2RIL

     * This is now implemented in the superclass for v7.

    Change-Id: If86f10f7a64ca25db2f1f4d579c078c7545ffd98

commit 6f8007b2a2567fa9124d7f710f92ebb4e7717299
Author: David Ferguson <ferguson.david@gmail.com>
Date:   Thu Apr 18 20:28:52 2013 -0400

    SamsungQualcommUiccRIL: fix responseCallList for v7 RIL

      * copied Samsung-specific workaround from D2 RIL
      * only needed for v7 RIL; override not needed for v6 RIL

    Change-Id: Ifc7d7ebe1887317e4debc6acd2754e47ce1d0d6b

commit 1b9060697bbb5f13cd89bc89f9df599711c52303
Author: Steve Kondik <shade@chemlab.org>
Date:   Sat Apr 13 06:26:48 2013 -0700

    Revert "RIL.java - add DCHSPAP"

    This reverts commit bfdfa12266a3f3ddbc0415a84fd0922c3c681b1f

    Change-Id: I4d6633fe2a4ddd06cecee7f75bf85fc1c10376ed

commit bfdfa12266a3f3ddbc0415a84fd0922c3c681b1f
Author: Matthias Bosc <matthias.bosc@gmail.com>
Date:   Wed Apr 10 16:23:55 2013 +0200

    RIL.java - add DCHSPAP

    Change-Id: I27e8db7e710c2e2daed0a3db6849bd4f3b230445

commit eacffc5bdc6d94083af93c82bf2c539a1a86fd9b
Author: Tom Marshall <tdm.code@gmail.com>
Date:   Mon Apr 1 20:31:39 2013 +0000

    Allow disabling radio with property persist.ril.enable.

    This can be useful for phone with no active service.  It saves battery
    and prevents unwanted communication with cell carriers.

    Change-Id: I61ad66ee49384a53667066f426aedac1ab7d5d73

commit e243626e34bcf7383cfcdc4e80d1a9d6176b0ede
Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
Date:   Mon Apr 1 17:38:02 2013 +0100

    RIL: Add compatibility with qcom's DSDS

    Devices with radio libraries built against a DSDS-enabled qualcomm
    BSP (anything in the last 4 or 5 months, apparently) have a slight
    incompatibility in the RIL protocol: it expects the first 4 bytes
    of the datastream to be the slot's identification (even if the
    device isn't dual-SIM). Absence of those 4 bytes will make the
    connection hang.

    Change-Id: I9f5821add02e7e5b5286c3b0818cb4a94edcc13c

commit aeacbb9eebd087e6eaf921a1cb6a12c43033548a
Author: Michael Bestas <mikeioannina@gmail.com>
Date:   Thu Feb 28 00:59:57 2013 +0200

    RIL: Add SEMC 7x30 RIL

    By szlkiev https://github.com/szlkiev

    Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

    Change-Id: Ifcfcacada9a4e2586572f64f169ff6c9d84a8215

Change-Id: Id29c45336c4f0435fd4992facaeeaaa61c6ee52c