libdmabufheap: Add Alloc()

Alloc() is a public method of class BufferAllocator()
which can be used to do allocations in either dmabuf heaps
or ion heaps(both legacy and non-legacy).

Bug: 154310076
Test: dmabufheap-unit-tests
Change-Id: Ibcf94bb2578fb62b78a7154b0982f86ccc6ef5aa
2 files changed
tree: 34795eb4a8d1bb2289ca375872ca4e76fd47fdee
  1. include/
  2. tests/
  3. Android.bp
  4. BufferAllocator.cpp