summaryrefslogtreecommitdiff
path: root/base/HidlSupport.cpp
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2017-02-16 19:23:24 -0800
committerSteven Moreland <smoreland@google.com>2017-02-17 11:25:48 -0800
commit23bb9993014e064f9c720d889269764f4d4ec7a5 (patch)
treec8b228dc8535b5dd9add776bd929da1b0ccd8241 /base/HidlSupport.cpp
parentb54e30bdf0979e26720099671bc61c5025375738 (diff)
downloadlibhidl-23bb9993014e064f9c720d889269764f4d4ec7a5.tar.gz
split android.hidl.memory
Split android.hidl.memory into android.hidl.memory and android.hidl.allocator. This must be done because IAllocator is served over hwbinder transport and IMapper/IMemory are always going to be passthrough hals. Test: hidl_test, device boots with allocator Bug: 35327976 Change-Id: Ib135b5e101fadadbbf16126a98f90181f76a253b
Diffstat (limited to 'base/HidlSupport.cpp')
-rw-r--r--base/HidlSupport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/HidlSupport.cpp b/base/HidlSupport.cpp
index b359f1d..595a928 100644
--- a/base/HidlSupport.cpp
+++ b/base/HidlSupport.cpp
@@ -28,10 +28,10 @@
namespace android {
namespace hardware {
vintf::Transport getTransportForFrameworkPackages(const std::string &name) {
- // TODO(b/34772739): check with VNDK team to see if this should be in an XML.
+ // TODO(b/34772739): move to framework vintf
const static std::unordered_map<std::string, vintf::Transport> sTransports {
{"android.hidl.manager@1.0::IServiceManager", vintf::Transport::HWBINDER},
- {"android.hidl.memory@1.0::IAllocator" , vintf::Transport::HWBINDER},
+ {"android.hidl.allocator@1.0::IAllocator" , vintf::Transport::HWBINDER},
{"android.hidl.memory@1.0::IMapper" , vintf::Transport::PASSTHROUGH},
{"android.hidl.memory@1.0::IMemory" , vintf::Transport::PASSTHROUGH},
};