Add utility methods to support hidl instrumentation. am: 7e1286cc93
am: e721d4d06e

Change-Id: I9275e7ff4c1cf918d0bc30b2eccb912a6cf15fa2