CM11 Themes: Pipe stderr from aapt to logcat.

This will allow users to see why aapt failed when installing a
theme.

Change-Id: I74314daae9e844dce2f4c3eeb6c78a40b5ad6357
libs/gui: Release acquired buffer when createImage fails

When EGL fails to create an KHR image for an acquired buffer,
release the buffer before returning with error. This unblocks
the dequeue buffer call waiting and may succeed in the next queue.

CRs-Fixed: 624244

Change-Id: I674807f4bb1f1253cb787daaa5a7adf351caaae7
(cherry picked from commit 9e9b12d7f37a6120a705db56a4374e7141c79a41)
CM11 Themes: Common overlay for sharing resources. [2/2]

Change-Id: Ied21ede2f36ba16dd190bc1e6cec44fd8560ca90
Merge remote-tracking branch 'cm/cm-11.0' into cm11mod-linaro
PMem: fix c++11 narrowing for legacy PMem

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

Change-Id: I900b1ebb658fc9afbfbb4943faecce9d772285ac
Signed-off-by: DHOMD <DHO@dho.im>
OpenGL: Build with GCC for Adreno compatibility

Summary:
Clang treats const char type differently (view processed code to see).
For compatibility against Adreno prebuilts, we will build libopengl
and it's wrappers with gcc

Test Plan: verified

Reviewers: randall.rushing, synergy

Reviewed By: synergy

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

Change-Id: Ia133533751ad3e4257a257a9e83813028525346d
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: Properly fix aliasing violations

Change-Id: I5eaaa57665a2b34eea9d42e0df77c6747332b04e
Add OMX_AUDIO_CodingAPE and OMX_AUDIO_CodingDTS

Copied from the stagefright-plugins project.

add HEVC decoder and cleanup

Change-Id: I16342228014320161a22302a3c14df7725556cd2
Merge "CM11 Themes: Common overlay for sharing resources. [2/2]" into cm-11.0
SF: Reduce size of DisplayFrame according to "transparent region"

Calculating SourceCrop according to "transparent region" is taken care but
not DisplayFrame. DisplayFrame also need to be calculated according to
"transparent region" to avoid mismatch in SourceCrop and DisplayFrame.
This will avoid unwanted Scaling introduced because of mismatch.

CRs-Fixed: 651365
Change-Id: I33733c084702d46de1c9eb6663533fb083f9788a
Revert "SF: Reduce size of DisplayFrame according to "transparent region""

This reverts commit 3fda6efcd830dab28cd3c8a2d0a5cf8aa1dd1829.

Change-Id: I0b2e7b88c01e06b6e4e4a93094b39e0a0f0f7579
Themes: Fix -110 install error [1/2]

aapt was being called from PM with a ' ' at the end of the cmd. This would
cause installd to read unexpected parts of memory which sometimes
causes it to parse the command incorrectly.

Change-Id: Id9f1170db05b40f030d6ea5009bed38bc9fc3b5f
Avoid calling idmap w/ trailing whitespace [2/2]

installd performs a buffer over-read if trailing ws is sent to it.
No observable effect found yet for idmap, but until installd is
fixed upstream, best to play it safe.

Change-Id: I002de7a9d177df16f91b47e7f87af59457c1f421
Merge remote-tracking branch 'cm/cm-11.0' into cm11mod-linaro
Mira Cast Part 6/7

This series of patches is from s107ken's xda post here:
http://forum.xda-developers.com/galaxy-nexus/development/rom-maguro-meets-kitkat-miracast-t2540694/post52562917
The Tuna community, states it is working as intented

Mira4u is the work of kensuke
https://github.com/kensuke/How-to-Miracast-on-AOSP

Parts:
Build 1/7 (This will likely be abandoned in favor of building from device and/or vendor)
Device/samy/tuna 2/7
external/wpa 3/7
fw_av 4/7
fw_base  5/7
fw_native 6/7
packages/apps/mira4u 7/7

WTF is Miracast?... basically, the open source chromecast
http://en.wikipedia.org/wiki/Miracast

Please note,... the way this was patches has a great possibly to step on other commits, I will attempt to ensure this does not happen

Change-Id: I901d3227e0f7d4251c1c6cffa2cfb53fa9e1c2da
Change xhdpi-1024-dalvik to legacy values to support legacy devices in the modern world

This should improve compatibilty with legacy devices with new features like theme engine

Change-Id: I3f155b456073a9a8d9cd522746288f6aef409587
Signed-off-by: DHOMD <DHO@dho.im>