Add utility methods to support hidl instrumentation.

* Add method registerInstrumentationCallback which looks up and
  dynamically loads the hidl instrumentation libraries and registers
  the instrumentation callbacks.
* The method looks up interumentation libraries under directories:
  /system/lib(64)/hw, /vender/lib(64)/hw, /odm/lib(64)/hw.
* The method only loads libraries with a particualr name pattern, e.g.
  android.hardware.nfc@1.0.*.profiler.so
* The method is a no-op for user builds.

Bug: 31266145
Test: test pass with hidl_test.

Change-Id: Id11486e36081d75481a45836219f84ddf5b112d7
3 files changed