Fix possible security issue which can happen if client changes
reserved size in meta data. This can cause wrong size munmap.
Change-Id: I5d2b55272d1b5df217e71c45ecdece9ed9eaae97
if gr_priv_handle.h is accessed via C files, it throws error.
Added ifdef for cpluplus to fix this.
Change-Id: I16e593fb369205fefec76b05e9c6199b376d2f67
Force 4 bytes padding to avoid data leak due to uninitialized padding.
Bug: 77237704
Change-Id: I3922bf62bfa6c78806a6d5fd969e2d9faf067abe
CRs-Fixed: 2257685
Implement the hidl .hal interfaces directly instead of using the
default shims.
This is required since new additions to .hal will no longer be
added to the legacy gralloc1 C header.
Change-Id: If577a14f75d7d13da0ff656c96ab451d21c910ce