copybit: Fix type conversion error for GCC 4.7

GCC 4.7 has stricter type conversion rules

Change-Id: I699cfe1ceafb5728fb8e6f34f7b1996d3c812e7e
pmemalloc: fix GCC 4.7 errors

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Id5d7bc86780bd716b97257400e15793c29ff4dfb
gralloc: use module define

Change-Id: I3ec322168134f6177e3ce305140dd24793be5039
    display-legacy: gralloc: fix random fails of alloc_buffer for qsd8k after header update

    After the header update (Change-Id: Id2842abe5850462aa7b4c962a7dfeb4ae464475b) the
    field heap_mask is not initialized. This causes random fails of alloc_buffer.
    (ex.: Black flicker for WEB-rendering)
    Solution: Update ionalloc.cpp and ionalloc.h with the AOSP versions of
    platform/hardware/qcom/display
    per 2bf30b1072517ed92fb7f20cf5f256a8a0344024

Change-Id: I2ffbb60876bb907d3f3f2ac7aede1b17252260a4
gralloc: Allow legacy devices to use PMEM for ADSP (camera).

Partially bring back PMEM support for legacy devices having proprietary camera
libraries stuck in PMEM. This change allows these devices to continue using
PMEM for the camera, and ION for everything else.

Change-Id: I1382381134db21435ca725d0e2c2b3194da16f38