summaryrefslogtreecommitdiffstats
path: root/services/sensorservice/SensorService.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-05-10 19:32:39 -0700
committerMathias Agopian <mathias@google.com>2013-05-16 18:47:21 -0700
commit0319306670b0344da99efa606b6f172dde575a39 (patch)
tree9be3e260132258ad7e02eabe2f1dc065e62bbdf2 /services/sensorservice/SensorService.h
parent59eaeed5fabc27942d62327fa460ebb8bd2f3822 (diff)
downloadframeworks_native-0319306670b0344da99efa606b6f172dde575a39.zip
frameworks_native-0319306670b0344da99efa606b6f172dde575a39.tar.gz
frameworks_native-0319306670b0344da99efa606b6f172dde575a39.tar.bz2
various fixes to the sensorservice
1) "google" sensors are now reporting AOSP as the vendor string 2) don't expose the system's sensor fusion if the HAL provides it 3) use uncalibrated gyro if availble for the system's sensor fusion Change-Id: I25140436cdb29d55e39fd6fbbf8c44a410a83d5c
Diffstat (limited to 'services/sensorservice/SensorService.h')
-rw-r--r--services/sensorservice/SensorService.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/sensorservice/SensorService.h b/services/sensorservice/SensorService.h
index ff3b555..67489cc 100644
--- a/services/sensorservice/SensorService.h
+++ b/services/sensorservice/SensorService.h
@@ -114,8 +114,8 @@ class SensorService :
int getSensorType(int handle) const;
void recordLastValue(sensors_event_t const * buffer, size_t count);
static void sortEventBuffer(sensors_event_t* buffer, size_t count);
- void registerSensor(SensorInterface* sensor);
- void registerVirtualSensor(SensorInterface* sensor);
+ Sensor registerSensor(SensorInterface* sensor);
+ Sensor registerVirtualSensor(SensorInterface* sensor);
status_t cleanupWithoutDisable(const sp<SensorEventConnection>& connection,
int handle);
void cleanupAutoDisabledSensor(const sp<SensorEventConnection>& connection,