diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-08-09 20:50:31 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-08-09 20:50:31 +0000 |
commit | 1ba6751d20c1dd88339ba40459c13c4270d827fe (patch) | |
tree | 8fd283a836c11a1bae90f233f326984f75cfce03 | |
parent | c75fc62c3a511350109625ed5b3fbd0986163089 (diff) | |
parent | a29d03ace9c8d418b7581d0739e407a93b5a3c32 (diff) | |
download | libhidl-o-iot-preview-5.tar.gz |
Merge "Expose HidlInstrumentor data."android-o-iot-preview-5o-iot-preview-5
-rw-r--r-- | base/include/hidl/HidlInternal.h | 8 |
1 files changed, 7 insertions, 1 deletions
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 @@ struct HidlInstrumentor { 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. |