summaryrefslogtreecommitdiffstats
path: root/include/gui
diff options
context:
space:
mode:
authorAravind Akella <aakella@google.com>2014-08-13 12:24:50 -0700
committerAravind Akella <aakella@google.com>2014-08-19 11:18:25 -0700
commit6c2664ae34fd582bc174d3c83e2b18e895ca2496 (patch)
tree0ec0fecf61f4d431d72443f2b52ee5004d4f2c77 /include/gui
parentb1f0f288e30c0448cabd46d19c60b3bd0d272f74 (diff)
downloadframeworks_native-6c2664ae34fd582bc174d3c83e2b18e895ca2496.zip
frameworks_native-6c2664ae34fd582bc174d3c83e2b18e895ca2496.tar.gz
frameworks_native-6c2664ae34fd582bc174d3c83e2b18e895ca2496.tar.bz2
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
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/SensorEventQueue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gui/SensorEventQueue.h b/include/gui/SensorEventQueue.h
index 4e8a2d2..019308d 100644
--- a/include/gui/SensorEventQueue.h
+++ b/include/gui/SensorEventQueue.h
@@ -27,7 +27,7 @@
#include <gui/BitTube.h>
// ----------------------------------------------------------------------------
-#define WAKE_UP_SENSOR_EVENT_NEEDS_ACK (1 << 31)
+#define WAKE_UP_SENSOR_EVENT_NEEDS_ACK (1U << 31)
struct ALooper;
struct ASensorEvent;