diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2022-04-11 20:22:24 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2022-04-11 20:22:24 +0000 |
commit | 25d9d689fb47fbf6da6848a7e79b4e869636653f (patch) | |
tree | 2963d5ae7ede8d9f60f774c09fa59019ee01c3d1 /sensors/aidl/default/multihal/HalProxyAidl.cpp | |
parent | 2617cd08d40941b6fceadca71e4137fc596707c6 (diff) | |
parent | 5fc076011ca247da94426196f125aa1ee4040fa0 (diff) |
Merge "Implements AIDL multi-HAL debug dump" into tm-dev
Diffstat (limited to 'sensors/aidl/default/multihal/HalProxyAidl.cpp')
-rw-r--r-- | sensors/aidl/default/multihal/HalProxyAidl.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sensors/aidl/default/multihal/HalProxyAidl.cpp b/sensors/aidl/default/multihal/HalProxyAidl.cpp index 64805e6638..327db124c8 100644 --- a/sensors/aidl/default/multihal/HalProxyAidl.cpp +++ b/sensors/aidl/default/multihal/HalProxyAidl.cpp @@ -206,6 +206,18 @@ static ::android::hardware::sensors::V1_0::SharedMemInfo convertSharedMemInfo( resultToBinderStatus(HalProxy::unregisterDirectChannel(in_channelHandle))); } +binder_status_t HalProxyAidl::dump(int fd, const char ** /* args */, + uint32_t /* numArgs */) { + native_handle_t *nativeHandle = + native_handle_create(1 /* numFds */, 0 /* numInts */); + nativeHandle->data[0] = fd; + + HalProxy::debug(nativeHandle, {} /* args */); + + native_handle_delete(nativeHandle); + return STATUS_OK; +} + } // namespace implementation } // namespace sensors } // namespace hardware |