Fix keystore access when utilizing quick unlock

Change-Id: Ia37b380312268f26235858612c93a84eb06e76ea
Give consistent names to properties controlling camera shutter sound

There is a property named "ro.camera.sound.force" which control if camera sound should be played
even if phone is in silent mode. This is standard property and it is not affected by this change.

Another property (used for HTC vivo/vivow/mecha devices) disables camera shutter sound on system level.
Currently it is named "persist.camera.shutter.disable". Renamed to "ro.camera.sound.disabled" to
keep consistent naming with previous option. Also, this property is intended to be read only
and therefore should live in "ro.*" namespace.

Adding support for third property, "persist.sys.camera-mute" which will allow control over camera
shutter sound if it is not disabled by prevoius property.

imported from gingerbread f62a0e8b12f06215454eee2a30f648e3d190be78

Change-Id: I447f9bc61ca20022d5b62ef9ea231d6a1d0b38d7
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
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
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/
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
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
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
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
telephony: reconcile Sony RIL with QualcommShared

Change-Id: Iba7a3e1a1ee70b3c99bfd79273290c0cd389eadb
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
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
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
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
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>
u8500: add ST Ericsson audio configs

to enable add STE_AUDIO

Change-Id: I9c0b6f2fe3e32f1626e95572bcfd27bdbd2fa09f