Fixed cyanogenmod issue 2861: asset redirection breaks access to AndroidManifest.xml.

Themed asset managers lose the ability to access application assets
without a cookie because the search order favors most recently added
asset paths (theme apks are added last).  So, searching for
AndroidManifest.xml would always return the themes manifest, not the
application manifest.

The solution is to mark the themed asset path and ignore it when
searching for cookie-less assets.  This should not cause problems with
theme application because the theme uses resource identifier based
redirections which always retain the asset path cookie that is to be
used to load the final resource.
Replace status bar theme change hack with a proper reinflation approach.

Now, when the theme changes we reinflate all status bar views and
reattach them.  This is an approximate simulation of the normal Activity
onDestroy/onCreate cycle that the system goes through when a config
change (in our case, a theme change) occurs.

Also reverts "Hack to update status bar service drawables on theme
change.", a478f39ef58713a8c64823988b952f1d596123f1
WifiService: Fix wifi re-enabling after user exits airplane mode (lost in merge)

Same as I4b501139b660255fc935d6a12fd6ecf44d06ec6e, which was lost
in the merge

Change-Id: I0208731a35b81e2df8f6c45615fe16caed66b558
AudioPackage5 contains duplicated bad-case filenames
libgui: Add workaround for older Tegra2 devices

 * Commit e2fa30cba0c3412d07214dec346bb21a562d3461 breaks some older
   graphics drivers. Add a board flag to work around it.

Change-Id: If5abfd25da3fc184df64204b3f481f631978f51b
added georgian glyphs from DeJaVu project

Change-Id: I2f5ed5e2089aceeb77557b2766aa2152c2e29bb6
Inverted LID logic

Change-Id: Ie06a08e8256166b76f4e2e3ddf92bfe037598d54
Georgian Glyphs now from Sans family dejavu fonts

Change-Id: Iae62a20b43b01fd10fd8a5024ef2e10acb7cf6f0
opengl/libs/EGL: Bring back eglRenderBufferANDROID extention

This change brings back the eglGetRenderBufferANDROID extension Define EGL_EGLEXT_PROTOTYPES in order to be able to use this extension.

    Revert "cleanup EGL a bit. remove unused extension."

    This reverts commit 9d75f1341524910b00d35dd4eeb426d7e7791f6e.

Change-Id: I8b3805157cb1f72af507bc823d16910b738cec4c
Base Georgian files (cldr and location)

Change-Id: I2f4ea0021f1182b1617b65f90e2105dbda2e21af
Fix B key issue

Change-Id: Ib1fc59833d066dee9c4c5f02a9bf1a912463cb1e
Pimp automatic backlight.

Moving average filter for light sensor, support for custom levels, battery stats fix and dim fix.

Optimization: Don't compute the sum of all samples in filter window every run. Instead, keep track of the sum, subtract phased out sample, add new sample and divide new sum by number of valid samples. Massive CPU cycle savings.
Thanks to Jonathan (zenpoy on gmail dot com) for pointing me in the right direction!

Fix: The code for stopping the filter if the sensor has been stable the entire filter window time was only enabled if debug logging was enabled. Oops. CPU cycle savings in steady ambient light.

Tweak light sensor filter

1. Only allow decrease if user permitted it
2. Only perform filter reset on sensor increase and current average is below 1500 ("indoors")
3. Filter reset in 2. means pushing the filter half way towards new sample
4. Filter reset is disabled by default

This change requires commits from CMParts:

5f4026702b67b5d23c9a992f408e3861c90566db
f9238a01e4a4a64cb414dbdada36c97ae2a37db9
0a4b490035c333b3d77e6e59fcc0f7d16d78ebda
5036cc8217daf59aa9f2800bc3fa40e4dd4b3117
b43caaab217848668241681613ce8d54ceda69e9
cc0682a4cc43d0058db8b5195d4d329336f2d3fd

Change-Id: I9c88704484f4a23b3d643597f35b55d74cf36b56
Notification Power Widget

Ported over from CM 7.1 into CM9

Rewrite by cvpcs
Requires configuration settings from CMParts. Will be done when settings app available.

Disabled WiMax button until WiMax support is added back in.

ToDo: Change default color to Cyan to match ICS default color Scheme.
      Make indicator bar smaller?

Requires:
      http://review.cyanogenmod.com/#change,10578    - Light Sensor Information.

Also requires CMSettings for Configuration:
      https://github.com/Pedlar/android_packages_apps_CMSettings

Change-Id: I657f459969c784164730e6b0660db40822d8c491
opengl/libs/EGL: Bring back eglRenderBufferANDROID extention

This change brings back the eglGetRenderBufferANDROID extension Define EGL_EGLEXT_PROTOTYPES in order to be able to use this extension.

    Revert "cleanup EGL a bit. remove unused extension."

    This reverts commit 9d75f1341524910b00d35dd4eeb426d7e7791f6e.

Change-Id: I8b3805157cb1f72af507bc823d16910b738cec4c
surfaceflinger: Send the alpha value to HWC

C2D composition can handle fade cases. Don't skip layers in fade
case if C2D composition is used. Send the alpha value of the layer
to the HWC

Change-Id: I2751bcb175679b063617102cecda874bc94ad5cf
CRs-fixed: 288257
frameworks/base: support for QCOM tiled rendering

Support for tiled rendering, disabled by default,
can be enabled with debug.enabletr property.

Change-Id: I2bd94aa3480f62c6f4089d722e318481013495fd
Revert "HardwareRenderer: Make sure preserve_buffer Swap is set properly"

This reverts commit c64375178c8ff2d4647b2cb491f7d77d64ab05e5.
SurfaceTexture: Add Qcom perform function.

Add a perform function that performs Qcom specific operations. The
client invokes the ANativeWindow's perform operation with the Qcom
specific operation and the arguments. The SurfaceTexture server
performs the required operation.

Change-Id: Id96ac8e2402c201c539e298b81774076f4e298fb
SurfaceTexture: Add support for setting the buffer size.

Add support for setting the buffer size for the SurfaceTexture
buffers. Invoke libQcomUI to perform this operation.

Change-Id: Ia6f46cd3023c34a05200b48fb8148638821dc03b
Add support for drawing non-GPU supported buffers.

Add support for drawing buffers which are not supported by the GPU.
These buffers are drawn using the overlay or C2D. During rotation,
when the draw operation is performed, the GPU clears the clip region
for this buffer.

Change-Id: I8738dcffbfb31db330872ec2c295181b540e03fb