OSDN Git Service

SensorService fixes.
authorAravind Akella <aakella@google.com>
Wed, 13 Aug 2014 19:24:50 +0000 (12:24 -0700)
committerAravind Akella <aakella@google.com>
Tue, 19 Aug 2014 18:18:25 +0000 (11:18 -0700)
commit6c2664ae34fd582bc174d3c83e2b18e895ca2496
tree0ec0fecf61f4d431d72443f2b52ee5004d4f2c77
parentb1f0f288e30c0448cabd46d19c60b3bd0d272f74
SensorService fixes.

   1) Flush should only be received by the app calling flush(). Maintain
      a queue of all flush() calls and send flush_complete events in that
      order.
   2) Log warnings for older HALs. Remove batch() calls with DRY_RUN flag.
   3) Reallocate event cache when more sensors register and the desired
      maxCacheSize increases. Clear NEEDS_ACK flag in the buffer whenever
      there is a write() failure.
   4) More dump information. Add wake-up flag, maxDelay and timestamps for
      sensor events.

Bug: 16874778
Change-Id: I195646191059fd31f75f2f07886c0f98bf9b509a
include/gui/SensorEventQueue.h
services/sensorservice/SensorDevice.cpp
services/sensorservice/SensorService.cpp
services/sensorservice/SensorService.h