Commit Graph

4 Commits

Author SHA1 Message Date
Daniel Jarai 638068a7a4 sensors: add a lightweight wrapper
Wraps our old API 1.0 sensors into API 1.3:
- fixes sensor flags and maxDelays
- adds batching support
- adds flush support (experimental, enabled by default)

Tested by running Android 8.1 CtsSensorTestCases, passing all tests.

Change-Id: I5aa66fa75f67f1775821975e1eab801d0ef42598
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2019-05-06 13:37:36 +02:00
Gabriele M 0e4a53a696 flo: sensors: Initial implementation of a wrapper for old sensors HAL
This is a wrapper based on multihal that tries to make old sensors
HALs compliant with API 1.3.

See the followings pages for more details:
 - https://source.android.com/devices/sensors/versioning
 - https://source.android.com/devices/sensors/hal-interface

Change-Id: Iec63ae6c4aaace1a9fba160d70265f6363b08603
2017-09-20 20:56:00 +00:00
LuK1337 338217adee flo: sensors: Adjust for our usecase
* Rename hals.conf -> _hals.conf so legitimate
  MultiHAL won't attempt to load our HALs.
* Rename multihal -> multihal-asus so soong
  doesn't complain about duplicate package names.
* Remove USE_SENSOR_MULTI_HAL flag requirement so
  we can actually build it.
* Use TARGET_BOARD_PLATFORM variable in package
  name because it's a common tree.

Change-Id: I6287d106bc2783ec7d6c78b9d6bf5fadf8c4244f
2017-09-20 20:55:55 +00:00
LuK1337 d51f14e26c flo: Import sensors MultiHAL
Change-Id: Ib56a4f5590275eecc950c84680a58307286e46d5
2017-09-20 20:55:47 +00:00