diff options
author | Jaikumar Ganesh <jaikumar@google.com> | 2013-04-08 16:43:12 -0700 |
---|---|---|
committer | Jaikumar Ganesh <jaikumar@google.com> | 2013-04-12 09:34:44 -0700 |
commit | 4342fdf14ffb792a36c1de25ad14b745df628da2 (patch) | |
tree | 1010f0c63347d06897b9f121d0a34664f5eca403 /services/sensorservice/SensorDevice.h | |
parent | 53dc9044bfe17039592faf4660c5bf715e8120ad (diff) | |
download | frameworks_native-4342fdf14ffb792a36c1de25ad14b745df628da2.zip frameworks_native-4342fdf14ffb792a36c1de25ad14b745df628da2.tar.gz frameworks_native-4342fdf14ffb792a36c1de25ad14b745df628da2.tar.bz2 |
Sensor changes.
1. Some sensors can wake up the AP. Add wakelocks.
2. Handle backward compatibility for rotation vector
heading accuracy.
3. Cleanup auto disabled sensors.
4. Fix race condition between enable and dispatch.
Change-Id: I39dddf12e208d83cd288201986ee994312555820
Diffstat (limited to 'services/sensorservice/SensorDevice.h')
-rw-r--r-- | services/sensorservice/SensorDevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/sensorservice/SensorDevice.h b/services/sensorservice/SensorDevice.h index 728b6cb..b423f40 100644 --- a/services/sensorservice/SensorDevice.h +++ b/services/sensorservice/SensorDevice.h @@ -52,6 +52,7 @@ class SensorDevice : public Singleton<SensorDevice> { public: ssize_t getSensorList(sensor_t const** list); status_t initCheck() const; + int getHalDeviceVersion() const; ssize_t poll(sensors_event_t* buffer, size_t count); status_t activate(void* ident, int handle, int enabled); status_t setDelay(void* ident, int handle, int64_t ns); |