SMSDispatcher: Add option for sending pseudo-multipart SMSes

Serves as a workaround for devices that are otherwise unable to send
concatenated SMS messages on certain carrier networks, by providing the
option (enabled by the "telephony.sms.pseudo_multipart" property) to send
multipart messages as individual (not concatenated) messages.

For example, parts of Sprint's network hang on receipt of multipart SMSes
on devices (e.g., d2spr) that use the qcom SMSLock method in sending
multiple messages.  That is, the device waits for acknowledgment of the
first PDU before sending subsequent PDUs, while the network (incompatibly)
waits for subsequent PDUs before acknowledging the first.  While sending
the messages individually is suboptimal, it both works reliably and
matches stock ROM behavior.

Change-Id: I1da9d2320780d57b7b6881edb52fb9d7413332ec
telephony: set additional audio parameters for incall audio (2/2)

Change-Id: Ide8eeb61d4798fb18746b9c69c925c233709415f
Merge "SMSDispatcher: Add option for sending pseudo-multipart SMSes" into cm-10.1
Telephony: Start DataStallAlarm only on Data CONNECTED state

Telephony framework uses AlarmManager for recovery mechanism of data
stalled issue.
Framework configures the ELAPSED_REALTIME_WAKEUP alarm for every
6minutes irrespective of the data state. Due to this,quiet a few
wakeups are seen even when the device is not connected to Mobile
Data network.

Fix is to check the Data connection state before starting
this alarm.

Change-Id: I219bff9199e5ce70bbcd05c95d65731886215fe9
Author: Jeevaka Badrappan <jeevaka.badrappan@intel.com>
Signed-off-by: Jeevaka Badrappan <jeevaka.badrappan@intel.com>
Signed-off-by: Arun Ravindran <arun.ravindran@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 28494
Telephony: Unregister from UiccController when disposed

Change-Id: I296d3f292a72d2f8181f866bd1de7637c8333c63
Make ringing audio focus handling work with 'Speed up audio on MT call'
flag enabled.

Change-Id: I53c26afdbf95d4cc13c7b39d7dcb21d15bbe9a2c
Fix restoring network mode preference on reboot

When a user sets the option to use only 2G networks (for GSM networks) or its
equivalent for CDMA networks, each reboot erases that setting. That forces
the user to re-select the same option after each boot.
This (very simple) patch fixes it.

Ported from CM9:
http://review.cyanogenmod.org/#/c/16245/

Change-Id: I7ec9e155fed9f57934d7a73936f2bf425c8297fe
SamsungExynos3RIL: don't send IccStatus notification on CDMA devices

This causes the RIL to send erroneous GET_SIM_STATUS events that are
of course failing as CDMA devices lack a SIM card. This is causing a
persistent wakelock and quickly draining the battery.

Change-Id: Ic94ff85b63b21b66d66a757127585806c41a3ffa
Merge "SamsungExynos3RIL: don't send IccStatus notification on CDMA devices" into cm-10.1
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
CatService: Alpha ID fix for OPEN_CHANNEL and other p-commands (2/2)

p-cmds that support the below mentioned scenarios:
- SETUP CALL
- OPEN CHANNEL
- SEND DTMF
- SEND SMS
- SEND SS
- SEND USSD
- LAUNCH BROWSER
- PLAY TONE
- SELECT ITEM

Senarios handled :
- NO ALPHA ID : Introduce a new configurable sys prop
  "persist.atel.noalpha.usrcnf".
   --  Allow display of default UI confirmation if prop is set to true
   --  No UI confirmation to be show if prop is set to false
- NULL ALPHA ID (len = 0 ) :
   -- NO UI confirmation to be displayed

Cherry-picked from CAF commit 5ea0d64186ca08abc0857aae1f83de969393be3b
Without this SimToolkit will pop up asking for user response instead
of recieveing response from framework.

Change-Id: I75b9b9ee630e31154e940bc47ff951f8a1dab236
Signed-off-by: dhacker29 <davidhackerdvm@gmail.com>
Merge "Telephony: Start DataStallAlarm only on Data CONNECTED state" into cm-10.1
Merge "Telephony: Unregister from UiccController when disposed" into cm-10.1
Mms auto-retrieval (2/3): framework

Change-Id: If59780c1a4c153618a2110c60b1b1d4c03f145fd

It's only porting this http://review.cyanogenmod.org/#/c/26166/
Part 2 of 3

Patch Set2:
Correncting undifened symbols
Merge "Fix restoring network mode preference on reboot" into cm-10.1
Merge "SamsungExynos4RIL: fix signal strength" into cm-10.1
Merge remote-tracking branch 'upstream/cm-10.1' into cm10.1