diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2022-04-04 05:56:56 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2022-04-04 05:56:56 -0700 |
commit | 05445d8b448ea0349822250fa0c2a6f651289736 (patch) | |
tree | ab7c399debcc86a00607387d37dc1cdf48abc500 /modules/sensors/dynamic_sensor/DummyDynamicAccelDaemon.cpp | |
parent | a650ca80c583ccf3c8dfcfac5e51f539931fae69 (diff) | |
parent | e1361aaa2d8bc275242203ffc5b74d8339e217a4 (diff) |
Merge e1361aaa2d8bc275242203ffc5b74d8339e217a4 on remote branch
Change-Id: I5d0b3493620052500838ebb2443206eddd6ca150
Diffstat (limited to 'modules/sensors/dynamic_sensor/DummyDynamicAccelDaemon.cpp')
-rw-r--r-- | modules/sensors/dynamic_sensor/DummyDynamicAccelDaemon.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/sensors/dynamic_sensor/DummyDynamicAccelDaemon.cpp b/modules/sensors/dynamic_sensor/DummyDynamicAccelDaemon.cpp index a1a47e81..10771e32 100644 --- a/modules/sensors/dynamic_sensor/DummyDynamicAccelDaemon.cpp +++ b/modules/sensors/dynamic_sensor/DummyDynamicAccelDaemon.cpp @@ -28,7 +28,7 @@ #include <netinet/in.h> #include <algorithm> //std::max -#define SYSPROP_PREFIX "dynamic_sensor.dummy" +#define SYSPROP_PREFIX "vendor.dynamic_sensor.mock" #define FILE_NAME_BASE "dummy_accel_file" #define FILE_NAME_REGEX ("^" FILE_NAME_BASE "[0-9]$") @@ -43,11 +43,13 @@ DummyDynamicAccelDaemon::DummyDynamicAccelDaemon(DynamicSensorManager& manager) if (strcmp(property, "") != 0) { mFileDetector = new FileConnectionDetector( this, std::string(property), std::string(FILE_NAME_REGEX)); + mFileDetector->Init(); } property_get(SYSPROP_PREFIX ".socket", property, ""); if (strcmp(property, "") != 0) { mSocketDetector = new SocketConnectionDetector(this, atoi(property)); + mSocketDetector->Init(); } } |