telephony: HTCQualcommRIL: fix signal strength calculation

HTC RIL defines a custom signal strength packet format. Modify the
signal strength packet data such that the framework signal strength
calculation function understands it.

Change-Id: I8640c2ab31f06740325f440ae4aa4a0953968146
telephony: HTCQualcommRIL: clean up processUnsolicited

Based on rmcc's processUnsolicited cleanup commit.

Change-Id: I00f266c52d281ed92b9f8dab0f3c432acc24c6e7
telephony: HTCQualcommRIL: add custom sim pin/datacall functions

HTC use a custom function set for data call and simlock functionality.
This patch fixes sim pin and 3G-2G switch functionality.

Change-Id: Ieb4b47501fe1665620afa4d58616180f6c516d9e
SystemUI: add some padding to tablet nav buttons

Change-Id: Ic75c228bb09d61349e94608cbafcad48417c605f
audioflinger: Optimze ditherAndClamp with ARM NEON

Change-Id: Ifc436e39f15b103cec404e8a81fa8b8a6b5f0e5f
Merge "audioflinger: Optimze ditherAndClamp with ARM NEON" into ics
surfaceflinger: Enable dithering if persist.sys.use_dithering=1

* fixes color banding
* needs reboots after changed (caches variable for performance)

Change-Id: I66de607b149ec4e01967febeec234ef2994d20a4
tethering: Tolerate socket exception from ifindex look-up

The code already handles the case of internalNetworkInterface being null,
but this would never happen since it throws an exception if
NetworkInterface.getByName(internalInterface) fails. Catch the exception
and continue processing.

This is needed with some older usb gadget code which don't populate
/sys/class/net/usb0/.

Change-Id: I15adead7835ff3a4f77f87175ac85c5d9f45f9c0
frameworks/base: enable meta mode for 7x27a video encoder

msm7627a family of chipsets supports only one input frame at
one time. camera expects the input frame to be released before
sending another frame. so send one input buffer and available
output bufefrs to video encoder component. release the input
buffer to camera (to get another frame) after receiving input
frame done callback from video encoder component.

Change-Id: I8fbc911f046ff7e2a3047dd65d8c09ac2d8608e1
stagefright: limit 7x27a meta mode check to QCOM_HARDWARE

This was breaking builds for non-qcom devices

Change-Id: I3ac4e23d1790185f1d3de13d6262d7e046fab5aa
libhwui: Delete display list objects and resources on the UI thread

Bug #6073717
Bug #6065504
Bug #6026515
Bug #5971725

Prior to this change, the destructor of DisplayList would always run
on the finalizer thread. This could cause a race condition if the UI
thread was busy rendering display lists at the same time leading to
various random native crashes.

CRs-Fixed: 353211, 343109
(cherry picked from commit 14baed35c789e53df7fd5150c90aa1c0c960ac6f)

Change-Id: Ib454326a8df9fc28ee140467a10d370ff21b9766
SurfaceFlinger: Invalidate HWC Geometry on buffer validity change

HWC layer's flags and properties need to be updated whenever the
properties of the layer change. This change adds support to update
the flag when layer's buffer validity changes.

CRs-Fixed: 334664

Change-Id: Ia785f58c8d89ebd18867c78d93f1733c82694435
(cherry picked from commit 242fc135f91e6967d0a37f6de78e6090643fa35d)
LGEQualcommUiccRIL: Fix multi-PDP support

Multiple concurrent PDPs are now functional, allowing the back-compat
singlepdp flag to be disabled

Change-Id: I8ef55e96b9f05d4a4dd8dbbaeddf6d48ded7fc67
Merge "telephony: HTCQualcommRIL: fix signal strength calculation" into ics
Merge "telephony: HTCQualcommRIL: clean up processUnsolicited" into ics
Merge "telephony: HTCQualcommRIL: add custom sim pin/datacall functions" into ics
Merge "SystemUI: add some padding to tablet nav buttons" into ics
Fixed 2G toggle

According to: http://teamhydra.im/viewtopic.php?f=8&t=120
I didn't test it yet, I didn't have had time to test it yet. I trust him.

Signed-off-by: netchip <vanderpoel24@gmail.com>
Merge remote branch 'aokp/ics' into ics