merge from tag exdroid4.1.1_r1-a10-v0.3
surfaceflinger: allow 180 degree hardware rotation

Change-Id: Id6991021701b15f2ce1e5513474238a09d8862bf
MemoryHeapBase: ifdef for gingerbread/froyo compatibility

Allow to "revert" by a board config flag the offset member addon
see commit f24c4cd0f20 (aosp change id Ie618fb5c0718e)

This change is required to use overlay based proprietary camera libs
coming from gingerbread and froyo builds.

This change also requires a global cflag named BINDER_COMPAT
because a lot of modules use the MemoryHeap includes

Add this in your BoardConfig.mk :
COMMON_GLOBAL_CFLAGS += -DBINDER_COMPAT

Backported from /#/c/13317/

Change-Id: I2e5c10d3cd9584803dd282aa17650661d6499e5b
Revert "get rid of MemoryHeapPmem"

This reverts commit 7a7524810a0950c1c2b18014a8f1c637275165c4 and
makes MemoryHeapPmem conditioned to BOARD_NEEDS_MEMORYHEAPPMEM

Change-Id: I2f38340984ba87d6970d17ec944e3faded4132c8
binder: add support for Ion

Add classes to allocate from the Ion memory manager.

Change-Id: I72ad0c95a06c47a5d7441f7f699ba1462e1b8632

binder: Get rid of old flag

MAP_LOCKED_MAP_POPULATE is an outdated flag that is not used
anymore. Get rid of this flag in MemoryHeapIon

Change-Id: Ib43d2a413f5177b98a66bf3ef1476db8caef56cd
Implement additional keycodes

    Adds keys for

    *) WLAN, Bluetooth, touchpad toggle,
    *) brightness down, up, auto and
    *) screenshot

    as found on docks for current Asus Transformer devices.

Change-Id: Icf7141e559b6bd29cfbe28148944d2081a0dd525
surfaceflinger: Enable dithering if persist.sys.use_dithering=1|2

* Fixes color banding(1) and blur effect(2)

0: surface doesn't need dithering
1: enable dithering if necessary (default)
2: enable dithering (always)

Change-Id: Icda52b0b11ed3e2fa0db769d581582c23beb90fd
Add Samsung OMX and Color Format support (1/2)

Change-Id: I842e5a84a81bdb39234162cdc262d9ce6ba2688e
surfaceflinger: fix filter for samsung omx patches

Currently, any device that doesn't have TARGET_SOC
defined is broken.

Change-Id: I573e770b1857706773186ab6879c4c572f6115dd
CleanSpec to rebuild surfaceflinger dependencies

Change-Id: If5710989631b761592da15b07acaa738588a9c56
libs/ui: Add support for triple framebuffers

Change-Id: I90dd38deeeda9a3785b87286cc7d252c6f948750
native: Add Tile format to OMX_IVCommon

Change-Id: I2b1fac62651fabe3338246d6b28057854f390a10
native: add support for color-converter

Defines interfaces to interact with mm-color-converter
wrapper class.

Change-Id: Iff2926e553442fca72d9f30a89b5b7177d7a870b
native : Add Yamato format to OMX_IVCommon

- Add Yamato format to OMX_IVCommon

Change-Id: Ifd51eb74a0ade99bef63ccaefa055a8d6943ce0f
native: fix FB compilation

Change-Id: Ib52cfe6c2a9f7dc45ffcc0dbe98e870bded32381
SurfaceFlinger: send the orientation information to HWC

Change-Id: I04a30d472ac2d12706b8d82b4bb433598482454d
CRs-fixed: 382796
frameworks/native: Add support for external-only layers.

Add support for external-only layers, used for dual-display
or closed captions.
Do not draw external-only layers.

Change-Id: Ieeb945d8a01f16a61a40433aa388a7c7822dcc8a
SurfaceTexture: Add support for drawing non-GPU supported buffers.

Add support for drawing buffers which are not supported by the GPU.
These buffers are drawn using the overlay or C2D. During rotation,
when the draw operation is performed, the GPU clears the clip region
for this buffer.

Change-Id: I7e7abef68ef5aefddaf1596979819ddd66be3681
Add the capability to set GC paramter system wide or per app level

Set system wide default value for xhdpi-1024 device.

Change-Id: I52dd8f85b867d85e3c5a4c93328db734f26c5d2c
readd bluetooth