Dynamic dealing with missing GL_OES_EGL_image_external extension

- instead of static replacement of GL_TEXTURE_EXTERNAL_OES with GL_TEXTURE_2D
and patching the platform code at various places, use gl library call hooks
and shader source filtering at runtime to achieve the compatibility
also with apps compiled outside of the platform (e.g. Opera Mobile)

Change-Id: If995753e3e1fdc2cbc895a74537396f193f31115

Fix buffer overflow and make code a little more readable.
Shaders: Rewrite the rewrite proc to handle all cases

Just patch the occurrences of samplerExternalOES

and use "enable" suffix instead of "require" which never fails
on "#extension GL_OES_EGL_image_external : require" header

Change-Id: Idec2c2762a87ef5b956303f4955476c44c076985
surfaceflinger: define BOARD_WITHOUT_HW_COMPOSER flag

it's the only place where MISSING_GRALLOC_BUFFERS is really required

Change-Id: I96e999643c6b4240e1f8717a0a8841ce4b56c5a1
libui: fix the last (sign) warning

Change-Id: I74f1700e84fe8637b02979819e183e74d5b7447d
libui: Overlay for omap3 camera devices (squashed commit)

Add Overlay.cpp in libui if BOARD_OVERLAY_BASED_CAMERA_HAL is set.

From our hard work on overlay based camera libs...

Overlay: move the class in libcamera_client

review patchset 3

Change-Id: I20a596983dbc624b39e41c3b139df94e843c05cb
Proper BOARD_WITHOUT_PIXEL_FORMAT_YV12 variable

prevent use of the global cflag -DMISSING_EGL_PIXEL_FORMAT_YV12

This is not really related to EGL, but to libui and stagefright
video buffers allocator

Change-Id: Icf198e7aed55930daa9143aaa2a607811842f318
Force the screen-on after phone calls, ignore proximity sensor

Proximity workaround for device specific settings, this is required
on phone with a case hiding the proximity sensor, or buggy sensors.

From Quarx2k <agent00791@gmail.com> (gingerbread)

Change-Id: I5b6174d5f19ef601dd503b4dadafb3defbf2bb00
enable bandwidth control: ignore the iptables errors

Change-Id: I2f85c8d93482b7c03631db810bc25d402164701c
hwui: blacklist and whitelist properties

Change-Id: I112fadad9976183a9fde7d7a4aa713030912ff92
hwui: Rewrite the white list system due to property limits

Add support for a local folder with process names white list
/data/local/hwui.allow/<package name>

Add support for a local folder with process names black list

To complete the system, and now that all apps seems to works with hwui,
we will use (or not) the folder /data/local/hwui.deny/<package name>
to blacklist processes when no hwui black/white list properties are set.

Change-Id: I8f89537dcf57df486220d9f92ef5c42e40f087e7
wifi: allow to switch on/off wifi debug logs

with "setprop wifi.debug true"

Change-Id: I35e9722839239d6b4128a930da8629333ae33dc1
Wifi: Fix the resume problem, if locked in stopping state (never stopped)

That happens only when wifi sleep is allowed in adv. wifi settings.
and look like related to a missing intf down event by wpa_supplicant

Change-Id: Ic60566066d8ba54201a128e362112d6c24f6dbbb
wifi: send FORCE_STOPPED_STATE delayed message

- to make sure to get out of the DriverStoppingState
  when no supplicant state change event comes
  (driver stopping to sleep while not associated to ap)

Change-Id: I93b8156c8d5b9ac7d55b201de8d4becd311609bc

+ stopped state transition cleanup
fix video playback when rendering to YV12 (esp. 720x480 vids)

yv12 render in black and white with pvr 1.8 libs

Change-Id: I2c96cc74a2dbad7ae5d5aa06811ea7bf52bc1903
Let the OMX.TI.VideoDecoder do its job

Change-Id: I8d25d1f4f2f99ffd06d9596e3359d4f0e14e50fa
SoftwareRenderer: preliminary version of UYVY > YV12 conversion

Change-Id: I482d731848060cf03dd5e74f60118ac1893993c7
TODO: adapt for possible stride and crop difference from width and height
Fix sluggish to launch an app

The new trace feature/code in 4.0.4, which will dump the app stack
trace every 500ms if an app can't be launched within 500ms, is
holding the global ActivityManagerService lock unnecessarily. It
slows down the app's startup.

Change-Id: Ic0cf095c779f0e925f54e75b8cd9d5ccf6f4ed8d
From: Catherine Liu <wlcl05@motorola.com>