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>
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>
installd: insert one backdoor to support boot via nfs

when boot via nfs, we need the install usr on nfs server to have the
chown permission as it does on android. but that's no easy to do with
setting of nfs. so we will make the install to run as root via the
property hack.installd.for.nfs set to 1 when want to boot via nfs

Change-Id: I101849f9b7f55b9e8dd657ae321cf9341ddc7d02
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
servicemanager: enable bctest with debug logs

Enable bctest binder test and put ioctl pass/failure logs for lava.

Change-Id: I33eb6b87d3f9efcef7334dbb0a649ce23b8b0a21
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 remote-tracking branch 'linaro/linaro_android_4.4.2' into HEAD
binder: fix c++11 narrowing violations

Summary:
The best fix for these narrowing
violations is to use static casting

Test Plan: verified

Reviewers: randall.rushing, synergy

Reviewed By: synergy

Differential Revision: http://review.codefirex.com/D85

Change-Id: I7717f7b09b75167a7db979fef7212e00d0541051
Signed-off-by: DHOMD <DHO@dho.im>
Surfaceflinger: conform string literals to C++11

Test Plan: verified

Reviewers: randall.rushing, synergy

Reviewed By: synergy

Differential Revision: http://review.codefirex.com/D110

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

- handle NULL check is required while flatten GraphicsBuffer

CRs-fixed: 579102

Change-Id: I292b4b25dc1f5320378cc9e4affbad326e1fdaed