sensor: generate flush_complete event when data timestamps matches

Generating a flush_complete event right after receiving
 a flush_request from the sensor services breaks the flow
 as the client stops acquiring data.

Solution is to store the timestamp of the flush request
 and issue the flush_complete event when the timestamp
 of the sensor data matches

Change-Id: Idb273db3e69e6e2593c00298d3d458fc7c965830
Signed-off-by: Fei Li <feix.f.li@intel.com>
Signed-off-by: Guillaume Ranquet <guillaumex.ranquet@intel.com>
13 files changed
tree: fc1bbef9f52e3ad787f3f17a53109376998c190f
  1. Android.mk
  2. als/
  3. libsensors_iio/
  4. tilt/