History log of /system/chre/core/include/chre/core/sensor.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b75315a3e185b4559d73c69eea3b30679239fac1 21-Jun-2017 Andrew Rossignol <aarossig@google.com> Inlines small functions in core/ to reduce code size

Before: 102926

After: 102510

Bug: 62838047
Test: load_chre.sh, basic sanity check
Change-Id: I7eb76057ec7be4e552d841c74d9c9354fe1e5fc5
/system/chre/core/include/chre/core/sensor.h
6797f377898193cbf15b71eba313bd783e552836 12-May-2017 Meng-hsuan Chung <menghsuan@google.com> Implements sampling status update

Upon sampling status change,
- update sampling status
- post the CHRE event

Also modifies SensorWorld to receive this event.

Test: compile and test on device.

Change-Id: If98330d509eddbedd8071a6fd5d402868179f083
/system/chre/core/include/chre/core/sensor.h
53cec69ff23e5ffabf9f29d824c14fbdb18dc856 17-Apr-2017 Brian Duddie <bduddie@google.com> Rework sensor model

Model Sensor as a composite object made up of common code, common
interface and platform-specific implementation, and platform-specific
interface and implementation. These interfaces are composed via
inheritance, as they are in chre::Nanoapp, but without polymorphic
behavior.

Test: run sensor world on SLPI
Change-Id: I568688e012d0777c863be2c8b1f301322dfde0f6
/system/chre/core/include/chre/core/sensor.h
59e4cbe02c3dbfd3375dd39ac2691065c813353b 04-Apr-2017 Meng-hsuan Chung <menghsuan@google.com> Implements the chreGetSensorSamplingStatus CHRE API

Currently, it only returns the latest CHRE request.
Added a TODO to return the platform's sampling status.
Also updated SensorWorld to exercise this API.

Change-Id: I5a034925d5e905f4b0509eb8fda947f6deb7a1da
/system/chre/core/include/chre/core/sensor.h
67de3f239af66c0d5733950a916bc5566f2017f0 15-Mar-2017 Meng-hsuan Chung <menghsuan@google.com> Adds support for on-change sensors

- adds getLastEvent() and setLastEvent() to Sensor and PlatformSensor
- adds getSensor() to SensorRequestManager
- delivers last valid event when a nanoapp has a new on-change sensor request.
- last event validity is handled internally in Sensor::setLastEvent().
- last event memory is handled in the constructor/destructor of PlatformSensor.

Change-Id: Ic2d4b0777cab7da57f6e8bbb0ec8df4764f8e776
/system/chre/core/include/chre/core/sensor.h
9cab6df9598abbf843a7b37eed0c7039048deba7 18-Mar-2017 Meng-hsuan Chung <menghsuan@google.com> Adds move assignment to PlatformSensor

This CL allows Platformsensor to allocate/free memory internally.

Also
- makes PlatformSensor non-copyable
- adds a move constructor to PlatformSensor
- changes Sensor's copy constructor to move constructor.

Change-Id: Ib944c230d534a81f76c0cb01dc545ad27c7a0543
/system/chre/core/include/chre/core/sensor.h
48fda6e1eedf6ba80ae7596fc7676f8318a1e88e 07-Mar-2017 Meng-hsuan Chung <menghsuan@google.com> Implements the chreGetSensorInfo CHRE API

Also modifies SensorWorld nanoapp to exercise the API.

Change-Id: If71643bbc98edc5fb8a753aa546aa31ee4c27f48
/system/chre/core/include/chre/core/sensor.h
e62f9949c5aa827e175cfb239d9840d7517e8052 02-Mar-2017 Meng-hsuan Chung <menghsuan@google.com> Adds and populates sensor oneShot, onChange and minInterval properties

Change-Id: Iec1962cc95a949ecfbe99661e8ae87d7333792a5
/system/chre/core/include/chre/core/sensor.h
cb8312e5ce53430576e2343e4863af84676c93ad 26-Jan-2017 Andrew Rossignol <aarossig@google.com> Refactors common PlatformSensor logic into a new core Sensor class

- The core Sensor class owns an optional PlatformSensor instance.

Change-Id: Id7589a2b2a898003bfa0ad3059d10b76a4f20aca
/system/chre/core/include/chre/core/sensor.h