OSDN Git Service

Add AOSP Geomag and Game Rotation, and Gravity
authorPeng Xu <pengxu@google.com>
Thu, 23 Jul 2015 18:41:53 +0000 (11:41 -0700)
committerPeng Xu <pengxu@google.com>
Thu, 13 Aug 2015 00:15:37 +0000 (17:15 -0700)
commitf66684a6fb2a2991e84a085673629db2a0494fc6
tree5694808f00cb981b09beb688f50a87b9227ad7d6
parentd2c2b74d18dbf02673986401ae10d866733575f3
Add AOSP Geomag and Game Rotation, and Gravity

Providing AOSP software implementation of Geomag Rotation Vector, Game
Rotation Vector and Gravity sensors for platforms that does not have
hardware implementation of these sensors but do have primitive sensors
(accelerometers, gyrometers and magnetometers).

Previously, AOSP Gravity sensor is enabled only when all primitive sensors are
available. This is changed so that AOSP Gravity will be available even
no magnetometer is in the device.

Related bug/feature request:
    * b/17508800
    * b/22610016

Change-Id: I4e2d3e544884047d66e7fdbce2282f1f8234eae9
services/sensorservice/CorrectedGyroSensor.cpp
services/sensorservice/Fusion.cpp
services/sensorservice/Fusion.h
services/sensorservice/GravitySensor.cpp
services/sensorservice/OrientationSensor.cpp
services/sensorservice/RotationVectorSensor.cpp
services/sensorservice/RotationVectorSensor.h
services/sensorservice/SensorFusion.cpp
services/sensorservice/SensorFusion.h
services/sensorservice/SensorService.cpp
services/sensorservice/SensorService.h