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>
Turn off "too slow" logs.

Author: Dianne Hackborn <hackbod@google.com>
Change-Id: I6ec306ca1c55226269c4644a869a984c4fa00f0d

Okay now let's really turn it off.

Author: Dianne Hackborn <hackbod@google.com>
Change-Id: Idda3c13339a6a29a300555d31e67219c9af4ae68
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
telefony: SonyQualcommRIL: misc update

* Check call status before validating data call state
* Add RIL_UNSOL_DATA_NETWORK_STATE_CHANGED string to RIL

Change-Id: I1620f1898c6c3ea64ec6c5991dc711c7a5ca789a
Add SCENE_MODE_OFF support for Camera framework

Some cameras such as on C800 (LG) need SCENE_MODE_OFF instead
of SCENE_MODE_AUTO. Otherwise Camera HAL thinks there is an
active scene mode and disables certain features. Changes in
both Framework and Camera App necessary.

Change-Id: Ieb510d2070853463be295497f945f930de220ba4
Merge "Turn off "too slow" logs." into ics
Revert "Add SCENE_MODE_OFF support for Camera framework"

This reverts commit 5d2cdae378292df01a772fbbdfd8b337e7b9810a.
SystemUI: HSPA+ Support

Add the ability to recognize HSPA+ by creating a separate case for HSPAP and
include new H+ icons.

Cherrypicked from JB: http://review.cyanogenmod.com/#/c/21869/
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/
OMXCodec: Don't log informational messages as errors

Change OMXcodec's informational messages from LOGE to LOGI, so that
logcat isn't spammed with "errors" such as:

E/OMXCodec(  124): Successfully allocated OMX node 'OMX.google.vorbis.decoder'
E/OMXCodec(  124): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'

They now appear as:

I/OMXCodec(  124): Successfully allocated OMX node 'OMX.google.vorbis.decoder'
I/OMXCodec(  124): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'

Change-Id: I5d0b8f16d1d7fe957e284b096e8208f70957afd5
sensors: Add dummy light sensor

Some devices have a sysfs toggle for the lightsensor instead of
passing the LUX values for userspace processing; for those,
use BOARD_SYSFS_LIGHT_SENSOR:=<sysfs path>

This is necessary for the rest of userspace to recognize its existence
and toggle it for auto-brightness. It doesn't generate actual light
values, though; all backlight adjustments are made in-kernel.

Change-Id: I978474a7d64b3ad16058a6d9d5af9c4d7bc1d45f
camera: allow proper preview window updates to be disabled

This causes issues with various video chat apps for devices such as
Sensation and possibly others using HTC MSM8660 camera HAL.

Change-Id: I9ea2d4c5d60c4f4771cac0f5fe992fb79ba0071d
Merge "sensors: Add dummy light sensor" into ics
sensors: dummy ls: set unique handle

handles and types are usually the same, but it's not mandatory.
Sony DASH use custom handles, and the previous assumption broke
Proximity sensor on Sony devices.

Change-Id: I489fe2e9deb06ab5c88cb4ae91e3fe1004aa8f99
Merge "sensors: dummy ls: set unique handle" into ics
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