summaryrefslogtreecommitdiff
path: root/modules/sensors/dynamic_sensor/HidRawSensor.cpp
AgeCommit message (Collapse)Author
2021-12-02dynamic_sensor: Support recognizing head tracker sensor.Erik Staats
Bug: 207008609 Test: Verified dynamic sensor sampling with proposed standard Android head tracker. Test: Verified dynamic sensor sampling with custom Android sensor. Change-Id: Ia9b991d4a8f7de132cb8509bcc84c51f62e56b31
2021-12-01dynamic_sensor: Support non-8-bit sized HID report items.Erik Staats
Bug: 207008609 Test: Verified dynamic sensor sampling. Test: Verified unit tests pass. Change-Id: I797ccabadefa0dde59fd0f3e8541f9853d657f3f
2021-11-22dynamic_sensor: Support report and power usage collections.Erik Staats
Bug: 207008609 Test: Verified dynamic sensor sampling. Change-Id: If0bef3647d5c52f9bf1d92a2a0ead72e98c70b8c
2019-11-11libhardware: fix -Wreorder-init-listNick Desaulniers
C++20 is stricter about member ordering in designated initializers than C99. Bug: 139945549 Test: mm Change-Id: I045da46821280e720286a25a0c96b5750d1ad05e Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-11-01Fix accidental implicit fallthroughsColin Cross
-Wimplicit-fallthrough was printing warnings for these, they look like real errors. Fix them and re-enable the error. Test: treehugger Change-Id: I818e18a995760f17b85b4c72ee577e531fa2a601
2018-12-12Fix cert-dcl16-c clang-tidy warningsChih-Hung Hsieh
Bug: 120614316 Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,cert-dcl16-c Change-Id: I744040edc476bf2bb58413a2a14965c27113a5bd
2017-04-20HID dynamic sensor: add support to three types of sensorPeng Xu
Implemented HID dynamic sensor using linux hidraw driver and HidUtils. Support the following cases: 1) HID Sensor spec defined accelerometer, gyroscope, magnetometer and orientation (quaternion). 2) Android defined type sensors (HID sensor custom type): ambient temperature, barometer, light and heart rate sensor. 3) Android custom type sensor (based on HID sensor custom type). Test: run tests/examples in test/ Test: test with a USB HID hardware (launchpad sensor) and marlin Bug: 37482951 Bug: 31026607 Change-Id: I9d679fb34d15324a9df1cf19647ea638fd1a0e68