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

Change-Id: Ia6e3a293c757ae5d14ac3f5012d295654ecaf59d