sensor: poll for POLLOUT event before writing pipe

Poll with timeout = -1 for flush complete event and timeout = 1000
for regular sensor event

flush requests are tracked with vector. This requires to include stlport.
As stlport olverloads pow(), all calls to this function are also modified
to avoid ambiguous calls.

Change-Id: I4f8bd97289dbc3e18b5fb0911aa84bde4f401ad8
Signed-off-by: Like Yan <like.yan@intel.com>
4 files changed
tree: 55e27ac75df0899fc328b4a542fdcf38793f51e0
  1. als/
  2. libsensors_iio/
  3. tilt/
  4. Android.mk