Refactor the static checks of layout structures.

Uses templates instead of macros.
Eliminates versioning of layout structures (not needed since host and
guest versions are compiled together).
Eliminates checks for constant values.
Will ease the burden on the programmer to assert shm compatibility for
every new region layout. Once the vsoc_mem.json file is substituded
the layout will be automatically validated when added to the vsoc
device.

Bug: 79602833
Test: build and run locally
Change-Id: Ia176d7678bff96e509da182def51d3a74b598cd3
16 files changed
tree: d373c0754f4ea4c1366f729c5183b76a1cbad5c0
  1. common/
  2. guest/
  3. host/
  4. tests/
  5. tools/
  6. Android.bp
  7. Android.mk
  8. OWNERS