summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-11-11 17:58:51 -0800
committerMathias Agopian <mathias@google.com>2010-11-18 15:29:05 -0800
commit671a6ff4be11b3e2d8eb017e0c7a78e6133fb2b8 (patch)
tree569c08c41c6c810c99395279283f6e1c812fc51d /include
parent80381ab4ed44bd69c3e3464a848ca15851365b03 (diff)
downloadframeworks_base-671a6ff4be11b3e2d8eb017e0c7a78e6133fb2b8.zip
frameworks_base-671a6ff4be11b3e2d8eb017e0c7a78e6133fb2b8.tar.gz
frameworks_base-671a6ff4be11b3e2d8eb017e0c7a78e6133fb2b8.tar.bz2
Add support for virtual sensors.
Rework sensorservice to allow "virtual sensors", that is sensors that report a synthetized value based on real sensors. the main change to sensorservice is around managing which real sensor need to be activated and which rate to use. The logic for all this has been moved into SensorDevice, which essentially wraps the sensor HAL but adds two features to it: - it keeps track of which sensors need to be activated - it keeps track of what rate needs to be used For this purpose an "identity" is associated with each real sensor activation, so we can track them. On start-up we check for gravity, linear-acceleration and rotation-vector sensors, if they're not present in the HAL, we synthetize them in sensor-service. Change-Id: I841db2c1b37ef127ed571efa21732ecc5adf1800
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions