libgralloc: Fix secure buffer issues.

-- Though buffer usage is not marked with any Heap, if usage flags
set with GRALLOC_USAGE_PROTECTED allocate from IOMMU heap.
-- Allow using  GRALLOC_USAGE_PROTECTED for non tz level protection.

Change-Id: Ie3c8bd8821f4ab344a2b798a723ab65d4ef5b44e
CRs-fixed: 484838
CRs-fixed: 480493
Merge "libgralloc: Fix secure buffer issues."
libhwcomposer: actionsafe support for video layer

actionsafe support for video layer

Change-Id: Ia40c3e2bb21f808ec127df3edb10e484b82cec3f
CRs-fixed: 481442
libexternal: change action safe property to persist

It is more probable that end user always use same TV to connect.
Hence make the action safe property persist, so that it is
persistent across reboot
Also, change property to sys. from hw. so that hwc can write

Change-Id: I5a77156012d121e28d1adbadb9162fcdf7ca3edd
CRs-fixed: 472431
Merge "libhwcomposer: actionsafe support for video layer"
Merge "libexternal: change action safe property to persist"
hwcomposer, overlay : Cleanup RGB+A downscale support in MDP comp

On MDP 4.x, Only RGB pipes can downscale RGB+A layers. Right now,
we abort MDP composition, if RGB+A downscale is required.

* Modified availablePipes to give stats for all pipe types.
* Abort MDP COMP, if number of layers with RGB+A+ downscale are
  more than available RGB pipes.
* Request an RGB pipe, for RGB+A downscale layer.

Change-Id: I2c275ac933849fa54e78d1a40e2337815a6a600e
CRs-Fixed: 483692
Merge "hwcomposer, overlay : Cleanup RGB+A downscale support in MDP comp"
Revert "Revert "gralloc: Align protected allocations with the spec""

This reverts commit 8ba3f53523bd89fad7f86cca8e0197cd575b8929.
Merge remote-tracking branch 'remotes/CA/jb_2.5' into HEAD
libgralloc: No need for double-securing the MM heap

Change-Id: Ic58bfcd1ea2c34b24bd033925b62866636f59fc3