Handle non-POINTER memory types in getBuffer

Discussion:
http://ag/c/platform/frameworks/ml/+/9911408/42/nn/runtime/ExecutionPlan.cpp#926

Bug: 148458829
Bug: 149693818
Test: NNT_static
Change-Id: I035739db915eecef1859b58a4132fac58497fba2
Merged-In: I035739db915eecef1859b58a4132fac58497fba2
(cherry picked from commit f214bd8bc908d19e1a4669085cedffdfa47cee62)
diff --git a/runtime/Memory.cpp b/runtime/Memory.cpp
index 34c8c56..5c8136f 100644
--- a/runtime/Memory.cpp
+++ b/runtime/Memory.cpp
@@ -203,6 +203,11 @@
     return pool;
 }
 
+std::optional<RunTimePoolInfo> Memory::getRunTimePoolInfo() const {
+    // TODO(b/147777318): Cache memory mapping within the memory object.
+    return RunTimePoolInfo::createFromHidlMemory(kHidlMemory);
+}
+
 intptr_t Memory::getKey() const {
     return reinterpret_cast<intptr_t>(this);
 }