diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-12-04 02:07:09 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-12-04 02:07:09 +0000 |
commit | fcafef0ab6d0ca861a3d772447f3409c27722ad9 (patch) | |
tree | 76b9cbb0e9a203b1ae1fc9b9a6d07a4e64f17b5d /modules/sensors/dynamic_sensor/HidRawSensor.h | |
parent | befe5c9111096f45499448c6671415a363200e83 (diff) | |
parent | dbf2545214d16eaed5901bd41c8c8e8871ef0168 (diff) |
Snap for 7968112 from dbf2545214d16eaed5901bd41c8c8e8871ef0168 to sc-v2-release
Change-Id: Ib997e88b6354740fc623037cca0bc8e30c1b1d80
Diffstat (limited to 'modules/sensors/dynamic_sensor/HidRawSensor.h')
-rw-r--r-- | modules/sensors/dynamic_sensor/HidRawSensor.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/sensors/dynamic_sensor/HidRawSensor.h b/modules/sensors/dynamic_sensor/HidRawSensor.h index 99ddfe30..0989651f 100644 --- a/modules/sensors/dynamic_sensor/HidRawSensor.h +++ b/modules/sensors/dynamic_sensor/HidRawSensor.h @@ -121,6 +121,14 @@ private: // helper function to find sensor control feature usage from packets bool findSensorControlUsage(const std::vector<HidParser::ReportPacket> &packets); + // try to parse sensor description feature value to see if it matches any + // known sensors + void detectSensorFromDescription(const std::string &description); + + // try to parse sensor description feature value to see if it matches the + // Android header tracker sensor + bool detectAndroidHeadTrackerSensor(const std::string &description); + // try to parse sensor description feature value to see if it matches // android specified custom sensor definition. bool detectAndroidCustomSensor(const std::string &description); |