libdmabufheap: Introduce AllocSystem() API

The API selects the correct system heap variant depending on whether or
not CPU access of the allocated data is expected.

Bug: 154310076
Test: atest dmabufheap-unit-tests
Change-Id: Iff6c1f891c402998286816da81639163e063425f
6 files changed
tree: ec0f0471d720e7d8a961cf4b4090c0ece8fdd84f
  1. include/
  2. tests/
  3. Android.bp
  4. BufferAllocator.cpp
  5. BufferAllocatorWrapper.cpp