summaryrefslogtreecommitdiff
path: root/modules/sensors/dynamic_sensor/DynamicSensorManager.h
AgeCommit message (Collapse)Author
2021-11-03dynamic_sensor: Don't hold mgr lock when operating sensor.Erik Staats
Bug: 205041452 Test: Verified that multiple subscriptions can be made with sensor_test to a dynamic sensor without hanging. Change-Id: Ie7671df8294bee04a0ebe1940242c2a83105f897
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
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-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