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: Don't crash on missing functions in hwcomposers

Some hwcomposers -- most notably hwcomposer.default.so -- don't
implement blank() or eventControl().
Don't crash when trying to use them.

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>