frameworks/native: Fix build in ISO C++ 11 mode

Fix constructs that are considered new string literals in C++ 11 mode

Change-Id: Iadcad5f83c79e6726ca66ced5fc1e038b7587069
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
frameworks/native: Fix build in ISO C++11 mode

Change-Id: Icc19cde1bf9c72397ed8bda545e9056483d83e8d
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
binder: Fix ABI incompatibility between older and newer compilers

Parcel::writeString16's first parameter was a char16_t - defined to
uint16_t somewhere else.

With ISO C++11 compatible compilers, however, char16_t is a
compiler-defined-type that is not necessarily unsigned.

This causes the symbol to be different, breaking support for talking
to binary blobs built with pre-ISO C++11-compilers, such as the
Galaxy Nexus RIL.

Change-Id: Ibaa57fbd7d9fc4a95649d3b45d28d29963a9548b
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
frameworks/native: Fix build with ISO C++11 compilers

Fix macro definitions so they can't be confused with C++11 string
literals

Change-Id: I2856933291d08eed789188ea9be036324384e67f
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
surfaceflinger: Work around aliasing violations

Change-Id: I22e758390c1312e60bb4adac2365be201ba6f161
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

Conflicts:
	services/surfaceflinger/Android.mk
Initial commit
Merge remote-tracking branch 'pb/jellybean-google' into HEAD
Merge tag 'android-4.2.2_r1' of https://android.googlesource.com/platform/frameworks/native into HEAD

Android 4.2.2 release 1
Merge branch 'jb-mr1.1-release' of https://android.googlesource.com/platform/frameworks/native into jb-mr1

Conflicts:
	libs/ui/GraphicBufferAllocator.cpp
Dont use strict_aliasing in FW/Native yet

Change-Id: I2dcc3bde71998b325703e48e0a22c7e4bbab438f
Signed-off-by: Stevespear426 <stephen.k.spear@gmail.com>
Merge branch 'sm-jb-mr1' of git://github.com/SaberMod/android_frameworks_native into jb-mr1
Revert "Reset compositionType to HWC_FRAMEBUFFER before calling prepare()"

This reverts commit ee932d0ad1a16cc93b4bd9eaf9cb3cc756fb2dfc.

Conflicts:
	services/surfaceflinger/DisplayHardware/HWComposer.cpp
Merge tag 'android-4.2.2_r1' of https://android.googlesource.com/platform/frameworks/native into 1.1

Android 4.2.2 release 1

Conflicts:
	libs/ui/GraphicBufferAllocator.cpp

Change-Id: Id60a6580bf5a3ba04f8e1e2b1b950e0b93888166
GC triggering performance optimizations

Copy the correct starting heap size at process init.
Interfaces to set GC/managed heap parameters.

Change-Id: Ifbc6194310c61c05206f1d425ba5b4ebf8658141
Revert "Revert "Reset compositionType to HWC_FRAMEBUFFER before calling prepare()""

This reverts commit 8109c0889b5281fa04c2c9b1166b452c9bca4f6c.
Merge branch 'jb-mr1' of git://github.com/AOKP/frameworks_native into jb-mr1
GC triggering performance optimizations

Copy the correct starting heap size at process init.
Interfaces to set GC/managed heap parameters.

Change-Id: Ifbc6194310c61c05206f1d425ba5b4ebf8658141
Reset the FrameNumber for dropped frame in async mode

In Async, reset the framenumber of frames dropped by the BufferQueue.
This allows the client to dequeue and use this frame before the other
queued frames which may be with the MDP.

CRs-fixed: 448606
Change-Id: Icaabf77b55a7275dc98ba1fdfba89508feb92145
Revert "SurfaceFlinger: Change to support framebuffer flip for 2D blitters"

This reverts commit f442ef1dfc17ca56b88c68c318599942f94e1d68.
frameworks/native: Increase EGL blob cache size limits
Increase the size of the EGL Blob Cache to 2MB and the key size to 4K.
This helps improve the performance of OpenGL apps, especially Open GLESv1.1
apps whose shaders are generated on the fly.

This was backported from CM10

Change-Id: I536360e9dbbe9e8a1c4027dc04d3d4e669d922d3