SurfaceFlinger: Make secure display ifdefs more narrow.

  * apq8084 target hals do not export display attrs
   the same as previous platforms (8974, 8960 etc)
   but continue the use of QCOM_BSP.
  * Due to this difference secure content is non-visible
   on apq8084 platforms because SF pushes the rendering
   to GLES vice the secure buffer of HWC and MDP.

Change-Id: Ie078638b1e22d1c9f73441e290c2882b4081b294
libEGL: allow devices to workaround Google bug 10194508

Most older blobs don't have the EGL_KHR_gl_colorspace
extension and need this workaround.

Change-Id: Ifc5d097c1a0b68275d23c2d191976ac96631b695
opengl: reduce PB size from 2MB to 512KB

this allows us to enable h/w acceleration on low-end
devices while keeping memory usage down.

Bug: 6557760
Change-Id: I8af2de3038dc2579360b8b73aa452cb7a0e506a9
Add 3GB dalvik heap and hwui memory

Should be used on devices with 3gb's of ram (Bacon, LG G3, etc)
Change-Id: I5833a19ea77b99009fc9f9c7c2a967b0dde06b77
(2/3) allow to configure lcd density

Change-Id: I8366d29027f3ac75f61ae727bd865dceede42c06
Avoid overwriting EGL14.EGL_NO_SURFACE

Both EGL14 and EGLExt have the same initialization codes for
EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_CONTEXT and EGL14.EGL_NO_DISPLAY.
Since EGLExt is initialized later, they are overwritten by EGLExt's
initialization codes.
Therefore, EGL_NO_SURFACE returned by methods in EGL14 is not
actually EGL14.EGL_NO_SURFACE object and it makes several problems in
handling error cases.
For instance, "Let's fish" game application cannot be run on L.

To solve the problem, this patch makes EGL14.EGL_NO_SURFACE,
EGL14.EGL_NO_CONTEXT and EGL14.EGL_NO_DISPLAY initialized just once.

Change-Id: Icce878164ff0b715ad2b5a2cd038a9616c7cf1e9
binder: Add {read,write}Uint32 methods to Parcel

Adds readUint32 and writeUint32 methods to the Parcel class. This
saves a lot of static_casting in anything implementing a Binder
interface on the native side.

Change-Id: Iafc73b0633654a3a4c49767f41806b56906c924f
binder: Return pid_t/uid_t instead of int

Makes IPCThreadState::getCalling{Pid,Uid} return a more
appropriate type.

Change-Id: I97f8a83c1c0722bc1afbf8a6df1a288f8f1f0d2c
Fix for corruption when numFds or numInts is too large.

Bug: 18076253
Change-Id: I4c5935440013fc755e1d123049290383f4659fb6
(cherry picked from commit dfd06b89a4b77fc75eb85a3c1c700da3621c0118)
Fix crash when user provides large values in the Parcel.

Bug: 18102648
Change-Id: Ie6a24718e586a34424238363de80f9545951514f
(cherry-picked from commit 8afa1c4ab86d724feb7716e153b7835385534590)
ui/sf: Add support for exynos HDMI

Change-Id: I27b34e95c04750e3dd321a2183b6cc1d89f29b5d
exynos: fix HDMI include path for exynos

Change-Id: I21155d03d38defa4e0bd5b072969db58d46248fd
ui: fix blit2Hdmi function arguments

Change-Id: Id5148d06b72fb22ef190101db3866d7586c66b57
sf: workaround for swapBuffers bug on Exynos4

Change-Id: I4cae4ae2ef39cc83c1d7256effebb893efe3fe03