Merge "Expose HidlInstrumentor data."
am: 1ba6751d20
Change-Id: Ied57cd2e11e84facf4999ef957724b6d8e825ea2
diff --git a/base/include/hidl/HidlInternal.h b/base/include/hidl/HidlInternal.h
index d81dd9c..2a86c9e 100644
--- a/base/include/hidl/HidlInternal.h
+++ b/base/include/hidl/HidlInternal.h
@@ -156,7 +156,13 @@
const std::string &insterface);
virtual ~HidlInstrumentor();
- protected:
+ public:
+ const std::vector<InstrumentationCallback>& getInstrumentationCallbacks() {
+ return mInstrumentationCallbacks;
+ }
+ bool isInstrumentationEnabled() { return mEnableInstrumentation; }
+
+ protected:
// Set mEnableInstrumentation based on system property
// hal.instrumentation.enable, register/de-register instrumentation
// callbacks if mEnableInstrumentation is true/false.