OSDN Git Service

DO NOT MERGE ANYWHERE Add AOSP Geomag and Game Rotation, and Gravity
authorPeng Xu <pengxu@google.com>
Thu, 23 Jul 2015 18:41:53 +0000 (11:41 -0700)
committerPrashant Malani <pmalani@google.com>
Fri, 6 May 2016 23:40:50 +0000 (23:40 +0000)
commit33a004b2be1fded5980a23232aa4007d5d70f8af
treec9401a37d984a2044b15243ed4d0496852ca98ac
parent86d5272389ec8077765684f2b89e99c623833850
DO NOT MERGE ANYWHERE 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
(cherry picked from commit f66684a6fb2a2991e84a085673629db2a0494fc6)
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