Add MemoryDealer to libhidlmemory

Now we have hidl_memory to represent a virtual memory region that a
process can use mmap() to get the data. Also we have MemoryBlock to
represent a sub-region in the main region and the MemoryBlock
can be passed between processes with small overhead. The MemoryDealer
here is used to

- allocate a MemoryBlock from a hidl_memory heap
- release a MemoryBlock to a hidl_memory heap

Test: hidl_cache_test/ internal master/ sailfish
Bug: 70309364
Change-Id: I01c30b8ca12880a26da5cdda3bff4a673881de73
diff --git a/libhidlcache/Android.bp b/libhidlcache/Android.bp
index ea846d8..d28a4f1 100644
--- a/libhidlcache/Android.bp
+++ b/libhidlcache/Android.bp
@@ -38,16 +38,17 @@
         "android.hidl.memory@1.0",
         "android.hidl.memory.block@1.0",
         "android.hidl.memory.token@1.0",
-        "libhidlbase"
+        "libhidlbase",
     ],
     srcs: [
         "HidlMemoryCache.cpp",
-        "mapping.cpp"
+        "MemoryDealer.cpp",
+        "mapping.cpp",
     ],
 }
 
 cc_test {
-   name: "libhidlcache_test",
+    name: "libhidlcache_test",
     defaults: ["hidl-gen-defaults"],
 
     shared_libs: [