summaryrefslogtreecommitdiff
path: root/modules/sensors/dynamic_sensor/DynamicSensorManager.cpp
AgeCommit message (Collapse)Author
2021-10-04dynamic_sensor: Add multi-HAL 2.1 flush support.Erik Staats
Bug: 201730055 Test: Verified that flush, batch, and activate sensor VTS tests pass. Change-Id: I6721d9f8976b3ef9f6af02b2320833025b479ee6
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>
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
2017-04-07Dynamic sensor manager -- implementation of basic sensor daemonPeng Xu
Library to handle dynamic sensor connection. There are two way to use this: as hal extension or standalone hal module. In hal extension mode: add libdynamic_sensor_ext in dependency of hal, instantiate DynamicSensorManager with appropriate parameters. Then for all sensor requests, if the handle is owned by dynamic sensor manager, forward the request. In standalone mode, add sensor.dynamic_sensor_hal into device make file. Usually, this also means multihal is necessary. Add sensor.dynamic_sensor_hal into multihal configuration file. A dummy sensor module is included for testing. Test: tested with cts dynamics sensor related test and demo app. also verified sensor basic operation with sensor logger. Change-Id: I16612935fc21b06c173aca875401ece37c6bde01
2017-03-07Dynamic sensor manager module - frameworkPeng Xu
Library to handle dynamic sensor connection. There are two way to use this: as hal extension or standalone hal module. In hal extension mode: add libdynamic_sensor_ext in dependency of hal, instantiate DynamicSensorManager with appropriate parameters. Then for all sensor requests, if the handle is owned by dynamic sensor manager, forward the request. In standalone mode, add sensor.dynamic_sensor_hal into device make file. Usually, this also means multihal is necessary. Add sensor.dynamic_sensor_hal into multihal configuration file. This CL implements the dynamic sensor manager framework. Sensor daemon will be added in follow up CL. Test: test compile (functionality test done in a follow up CL) Change-Id: I3b96ee135d8dbe3e199af01bed4b61637358803e