summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-08-09 20:50:31 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-08-09 20:50:31 +0000
commit1ba6751d20c1dd88339ba40459c13c4270d827fe (patch)
tree8fd283a836c11a1bae90f233f326984f75cfce03
parentc75fc62c3a511350109625ed5b3fbd0986163089 (diff)
parenta29d03ace9c8d418b7581d0739e407a93b5a3c32 (diff)
downloadlibhidl-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.h8
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.