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

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

Signed-off-by: Amit Pundir <amit.pundir@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

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
surfaceflinger: Work around aliasing violations

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
surfaceflinger: Handle screen timeout on hw without vsync

timeout currently at 1 second waiting for vsync. With
this change timeout happens at 16ms.

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
frameworks/native: Fix build with ISO C++11 compilers

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

Change-Id: I8d18acd12341306436cd5037d05eaef1563c1bc8
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Fix some char16_t vs. uint16_t bits

Change-Id: Ie2392098fa6b25f3c0713a7774929e36d824d26f
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
libEGL: use s/w rendering on h/w with no GPU

Fallback to Software Renderer used for emulators if we are running
on a hardware with no GPU support.

Change-Id: Id0772f466b5a08f90e7f9eceeb9b8f5f69179539
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Merge branch 'kk4.4' of https://github.com/SlimRoms/frameworks_native into kk4.4
sf: work around for no EGL_RENDERABLE_TYPE support

Conflicts:
	services/surfaceflinger/SurfaceFlinger.cpp

Change-Id: I04de379c73fc349526527ded9ddd3dd07f1998a0
Merge branch 'kk4.4' of https://github.com/SlimRoms/frameworks_native into kk4.4
surfaceflinger: Set max acquired buffer count

If triple framebuffers are enabled, the number of acquired
buffers isn't increased by default. Set the count to one less
than the max buffers to make sure all three buffers come into
play.

Change-Id: I65054ed4004607f5be68c893f6f621e821cfbf1c
libs/ui: Fix crash issue because of null pointer access

- handle NULL check is required while flatten GraphicsBuffer

CRs-fixed: 579102

Change-Id: I292b4b25dc1f5320378cc9e4affbad326e1fdaed
Merge branch 'kk4.4' of https://github.com/SlimRoms/frameworks_native into kk4.4
Merge branch 'kk4.4' of https://github.com/SlimRoms/frameworks_native into kk4.4
sensorservice: Fix init sequence for pre-1.1 API sensor HALs

The sensors API introduced a new flush() method that older binaries
won't have. For those, replace the firstFlush invocation with a
setDelay call since a lot of implementations interpreted that as
the initialization step.
We also don't want any kind of call to flush() to happen when it
isn't there, since it'll either hit a random OEM extension or
a memory address we really don't want to execute.

Change-Id: I26ce923fe385751fed7d1c483a53c074249f0620
Merge branch 'kk4.4' of https://github.com/SlimRoms/frameworks_native into kk4.4

Conflicts:
	services/sensorservice/SensorService.cpp

Change-Id: I937fcc0ddb2b0c0746eda70db48c2bb16d2c825c
Merge branch 'kk4.4' of https://github.com/SlimRoms/frameworks_native into kk4.4
Merge branch 'kk4.4' of https://github.com/SlimRoms/frameworks_native into kk4.4
Fix boot animation rotation problem when ro.sf.hwrotation is set to 90 or 270

Change-Id: I7ad3c83e23ce38280818ec5283d173d50c889531