Loading sensors/aidl/default/multihal/HalProxyAidl.cpp +12 −0 Original line number Diff line number Diff line Loading @@ -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 Loading sensors/aidl/default/multihal/include/HalProxyAidl.h +2 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,8 @@ class HalProxyAidl : public ::android::hardware::sensors::V2_1::implementation:: ::ndk::ScopedAStatus setOperationMode( ::aidl::android::hardware::sensors::ISensors::OperationMode in_mode) override; ::ndk::ScopedAStatus unregisterDirectChannel(int32_t in_channelHandle) override; binder_status_t dump(int fd, const char **args, uint32_t numArgs) override; }; } // namespace implementation Loading Loading
sensors/aidl/default/multihal/HalProxyAidl.cpp +12 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
sensors/aidl/default/multihal/include/HalProxyAidl.h +2 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,8 @@ class HalProxyAidl : public ::android::hardware::sensors::V2_1::implementation:: ::ndk::ScopedAStatus setOperationMode( ::aidl::android::hardware::sensors::ISensors::OperationMode in_mode) override; ::ndk::ScopedAStatus unregisterDirectChannel(int32_t in_channelHandle) override; binder_status_t dump(int fd, const char **args, uint32_t numArgs) override; }; } // namespace implementation Loading