where is the implementation of method registerAsService() in Android HIDL

1.3k Views Asked by At

Where is the implementation of method registerAsService() in Android HIDL.

To register a service we are supposed to call this method. But where is the implementation of this method?

1

There are 1 best solutions below

0
On

It is implemented in the generated code of your interface.

All it does is call registerAsServiceInternal() in system/libhidl/transport/include/hidl/ServiceManagement.h.

See system/libhidl/transport/ServiceManagement.cpp