diff options
author | Andrew Rossignol <aarossig@google.com> | 2018-03-22 16:57:27 -0700 |
---|---|---|
committer | Brian Duddie <bduddie@google.com> | 2018-03-23 12:24:32 -0700 |
commit | 44025a4900c7da7aa7da83ecb295e7c12642a23d (patch) | |
tree | 85227cf67f69ae69df794c4dde1b5e8baa0cec23 | |
parent | f10f0e9f4540777e4da56d983e07d46cbde1207d (diff) | |
download | chre-44025a4900c7da7aa7da83ecb295e7c12642a23d.tar.gz |
Adds missing setLastEvent to PlatformSensorBase for Linux
Bug: 76171785
Test: ./run_tests.sh
Change-Id: Iea7e7be74431a4147a5910f413409c7ba281f085
-rw-r--r-- | platform/linux/include/chre/target_platform/platform_sensor_base.h | 8 | ||||
-rw-r--r-- | platform/linux/platform_sensor.cc | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/platform/linux/include/chre/target_platform/platform_sensor_base.h b/platform/linux/include/chre/target_platform/platform_sensor_base.h index d8b104f6..e167747f 100644 --- a/platform/linux/include/chre/target_platform/platform_sensor_base.h +++ b/platform/linux/include/chre/target_platform/platform_sensor_base.h @@ -29,6 +29,14 @@ class PlatformSensorBase { //! The name of this sensor for the Linux platform. char sensorName[kMaxSensorNameSize]; + + /** + * Copies the supplied event to the sensor's last event and marks last event + * valid. + * + * @param event The pointer to the event to copy from. + */ + void setLastEvent(const ChreSensorData *event); }; } // namespace chre diff --git a/platform/linux/platform_sensor.cc b/platform/linux/platform_sensor.cc index 66eaf903..83589a32 100644 --- a/platform/linux/platform_sensor.cc +++ b/platform/linux/platform_sensor.cc @@ -81,4 +81,8 @@ bool PlatformSensor::getSamplingStatus( return false; } +void PlatformSensorBase::setLastEvent(const ChreSensorData *event) { + // TODO: Implement this. +} + } // namespace chre |