Support GSM AT commands for SMS over bluetooth (1/2)

Modifications required to support the older GSM "AT+" commands for SMS over
the bluetooth transport for use with car radios, etc.  This must piggy back
on the existing handsfree code as the spec uses that channel for the commands.
(2 parts: frameworks/base and packages/apps/Phone)

frameworks/base:
Additions to JNI and supporting framework code to allow sending of individual
characters and to receive the PDU stream - neither of which are CR terminated.

Change-Id: Ib0d0a2ba1ffcd55708b42f53ff38c6ff4a7292d1
Signed-off-by: Gary Dezern <garyd9@gmail.com>
telephony: neighboring cells are now handled properly

GsmServiceStateTracker.java sets the System Property
PROPERTY_DATA_NETWORK_TYPE = "TypeName:RadioTechnology"
for the current network type (ex. EDGE:2 or HSPA:11).

When neighboring cell info is sent to responseCellList() in RIL.java,
the routine compares PROPERTY_DATA_NETWORK_TYPE to just the TypeName
(without the :) and can not find a match.  It defaults to
NETWORK_TYPE_UNKNOWN and does no interpret the location.

This patch splits off the string part of PROPERTY_DATA_NETWORK_TYPE
so a proper match is found and the location is interpreted.

Also HSPA+ (HSPAP) is added as a valid match.

Patch compiled and tested on HP TouchPad 4G.

Change-Id: I223db80d6c4a7791300e299826aa316854738d5c
Revert "Revert "Add SCENE_MODE_OFF support for Camera framework""

This reverts commit 12538695a741670c094ca31efab1c275a808ba38

Does not break builds: Example of a successful build here: http://jenkins.cyanogenmod.com/job/android/7513/
SystemUI: Fix RecentsPanel deadlock on rapidly pressing

Make sure mShwoing is false when view is not visible to
avoid deadlock.

CRs-Fixed: 380332
Change-Id: I301e24809765d47a5a2ac729790541030f328d6e
SurfaceTexture: Reset buffer values during connect

Reset buffer values during connect instead of disconnect since other
clients may still be accessing the SurfaceTexture after disconnect.

CRs-fixed: 360883 375225
(cherry picked from commit e324ee6f793ddb1031c97fe71d64c42cd3b8f315)

Change-Id: Ib2c04a1b224fd5f278d0da665e8d23d7fe97b2ef
SurfaceFlinger: Dont skip composition if it is incomplete.

If the composition is not complete because of suspend we need at least
one complete composition to happen without skipping.

Set force composition flag so that next time hwc does not skip the
composition.

CRs-fixed: 374830
(cherry picked from commit f03f679fc34eb839c801330e58c3c898a392a3b6)

Change-Id: Id907e6ff259aef7caec32c6edc44bb6082c583bb
telephony: reconcile Sony RIL with QualcommShared

Change-Id: Iba7a3e1a1ee70b3c99bfd79273290c0cd389eadb
Merge "SystemUI: Fix RecentsPanel deadlock on rapidly pressing" into ics
Merge "SurfaceTexture: Reset buffer values during connect" into ics
Merge "SurfaceFlinger: Dont skip composition if it is incomplete." into ics
Fix Qcom ifdef

Till latest SF CAF changes perform was only used for external Display
(HDMI/WFD), now is used also for primary

Change-Id: I1a6b9ea089538ab2615d49f869d640144220713a
Merge "telephony: neighboring cells are now handled properly" into ics
Update adb icon for LDPI

The current icon is the Honeycomb bumblebee.  I've taken the ICS
LDPI icon from Ricardo Cerqueira's LG e400 overlay.

Change-Id: I9f72253b760cb3e260dcd1272706c939b196d027
u8500: add ST Ericsson audio configs

to enable add STE_AUDIO

Change-Id: I9c0b6f2fe3e32f1626e95572bcfd27bdbd2fa09f
Merge "Update adb icon for LDPI" into ics
Merge "Support GSM AT commands for SMS over bluetooth (1/2)" into ics
Merge "u8500: add ST Ericsson audio configs" into ics
Always set buffers orientation when setting the qcom camera preview window

Fixes the rotated preview on TouchPad

Change-Id: I9763dff8c06f445d905b9f21fb5f899995f816ed
Merge "Revert "Revert "Add SCENE_MODE_OFF support for Camera framework""" into ics
audio: fix inputClientId for ST-E audio support

This fixes a uninitialized parameter to getInput() which is needed for
audio recording.

Change-Id: I9a8c2580f847e9a581bda3ccef1cd3b6887f3e5e