diff options
author | Arthur Ishiguro <arthuri@google.com> | 2019-03-28 16:32:42 -0700 |
---|---|---|
committer | Arthur Ishiguro <arthuri@google.com> | 2019-03-29 11:52:11 -0700 |
commit | f6a7b5a8fd317e623378fa04d9db6fb2ea265a3e (patch) | |
tree | 4e0bcfd32ab05383606e4dedc5cc2c2b084f4af9 | |
parent | d6afc17399c374d189c427bcc91aef281e986d02 (diff) | |
download | chre-f6a7b5a8fd317e623378fa04d9db6fb2ea265a3e.tar.gz |
Modifies SEE helper onSensorBiasEvent callback
The SensorType argument is unnecessary, since the sensor handle is
included in the sensor data header.
Bug: 119269599
Test: Compile only
Change-Id: Ib80e7acb8a5960f1c81c0d054506096f9dfb9348
-rw-r--r-- | platform/slpi/include/chre/platform/slpi/see/see_helper.h | 9 | ||||
-rw-r--r-- | platform/slpi/see/platform_sensor.cc | 3 |
2 files changed, 4 insertions, 8 deletions
diff --git a/platform/slpi/include/chre/platform/slpi/see/see_helper.h b/platform/slpi/include/chre/platform/slpi/see/see_helper.h index a68425c4..0c59c574 100644 --- a/platform/slpi/include/chre/platform/slpi/see/see_helper.h +++ b/platform/slpi/include/chre/platform/slpi/see/see_helper.h @@ -53,12 +53,6 @@ class SeeHelperCallbackInterface { bool latencyValid; }; - struct SensorBiasData { - //! The sensor type of the calibrated sensor, e.g. SensorType::Accelerometer - SensorType sensorType; - struct chreSensorThreeAxisData bias; - }; - virtual ~SeeHelperCallbackInterface() {} //! Invoked by the SEE thread to update sampling status. @@ -75,7 +69,8 @@ class SeeHelperCallbackInterface { virtual void onHostWakeSuspendEvent(bool apAwake) = 0; //! Invoked by the SEE thread to provide the sensor bias event. - virtual void onSensorBiasEvent(UniquePtr<SensorBiasData>&& biasData) = 0; + virtual void onSensorBiasEvent( + UniquePtr<struct chreSensorThreeAxisData>&& biasData) = 0; //! Invoked by the SEE thread to notify a flush complete virtual void onFlushCompleteEvent(SensorType sensorType) = 0; diff --git a/platform/slpi/see/platform_sensor.cc b/platform/slpi/see/platform_sensor.cc index cd7bce2c..a8c481a3 100644 --- a/platform/slpi/see/platform_sensor.cc +++ b/platform/slpi/see/platform_sensor.cc @@ -100,7 +100,8 @@ class SeeHelperCallback : public SeeHelperCallbackInterface { void onHostWakeSuspendEvent(bool awake) override; // TODO: Implement this - void onSensorBiasEvent(UniquePtr<SensorBiasData>&& biasData) override {} + void onSensorBiasEvent(UniquePtr<struct chreSensorThreeAxisData>&& biasData) + override {} void onFlushCompleteEvent(SensorType sensorType) override; }; |