changes from CM

Add support for custom buffer sizes.., ty Ramkumar Radhakrishnan
frameworks/native: Add support for custom layers in Surfaceflinger., ty
Ramkumar Radhakrishnan
surfaceflinger: Allow gpu to render widevine level3., ty Prabhanjan
Kandula
Surface: Fix gralloc flags conflicting values., ty Saurabh Shah
sf: Override presentation layer with ext_only layer, ty Ramkumar
Radhakrishnan
Surface: Initialize variable and add a defensive check, ty Rama Vaddula
Check fence is not NULL before dereferencing it, ty Lynus Vaz
SurfaceFlinger: Add support for virtual display., ty Jeykumar Sankaran
Telephony(MSIM): Add support for MultiSim, ty Rakesh Pallerla
Fix for VirtualDisplay CTS issues., ty Justin Philip
Merge UDC changes from Perforce, ty rob20812
exynos4: getphys implementation on buffermanager for samsung omx, ty
rmcc
exynos4: ui: define USAGE_HW_FIMC1 to support gralloc, ty codeworkx
libgui: Add ICS/MR0-compatible client::createSurface constructors, ty
rmcc
surfaceflinger: Reimplement hwrotation, ty rmcc
ui: exynos4: getphys is common, ty rmcc
GraphicBuffer: exynos4: set FIMC1 usage bit on samsung specific formats,
ty rmcc
libui: exynos4: apply FIMC usage flag on format HAL_PIXEL_FORMAT_YCbC…
…r_420_SP_TILED. ty codeworkx
surfaceflinger: odd hw rotation (90/270) patch for swapping
width/height, ty Hashcode
binder: Add MemoryHeapBaseIon, ty codeworkx
Add setOrientation back, ty BuzzBumbleBee
ui/sf: Add support for exynos HDMI, ty rmcc
sensors: Add dummy light sensor, ty rmcc
sensordevice: Dummy ALS: Solve fortified libc warning, ty rmcc
SurfaceComposerClient: bring back getDisplayWidth, Height & Orientation,
ty chirayudesai
SurfaceFlinger: Removal of NO_RGBX_8888 flag for OMAP3, ty Krylon360
servicemanager: Allow tegra audio to register as a service, ty rmcc
samsung: add support for tvout and yamahaplayer services, ty codeworkx
libgui: Add pre-MR2-compatible symbol for setPosition, ty rmcc
Revert "Revert "Second try at adding a compatibility symbol for the M…
…emoryBase constructor."", ty RonGokhale
binder: add compat symbol, ty pawitp
frameworks_native: Add back PixelFormatInfo, ty jruesga
Allow building against other qcom display HALs, ty invisiblek
frameworks/native: fix copy back dirty region, ty Omprakash Dhyade
GlES2: Add NULL check, ty Anshuman Dani
hax: Add back the SURFACE_SKIP_FIRST_DEQUEUE legacy EGL workaround, ty
rmcc
Forward-port surface dithering from CM10.2, ty steven676
sensorservice: Fix init sequence for pre-1.1 API sensor HALs, ty rmcc
libs/ui: Fix crash issue because of null pointer access, ty Baldev Sahu
Revert "get rid of MemoryHeapPmem", ty rmcc
libgui: Bring back support for mHeap-based screenshots, ty rmcc
Fix boot animation rotation problem when ro.sf.hwrotation is set to 9…
…0 or 270, ty bokbokan
sensorservice: Set the rate for pre-1.1 HALs _after_ activation, ty rmcc
libgui: Add native window attributes to query usage, ty Manoj Kumar AVM
Add sessionId metadata with every buffer queued through Surface, ty
Ranjith Kagathi Ananda