From 8493b79e1cff92450076ca7450c4bf4e434a6816 Mon Sep 17 00:00:00 2001 From: Aravind Akella Date: Mon, 8 Sep 2014 15:45:47 -0700 Subject: SensorService fixes i) Significant Motion multiple clients fix. Make a copy of mActiveConnections vector before cleaning up SensorEventConnections when one-shot sensors trigger. ii) Maintain a mapping between flush_complete_events and SensorEventConnections to accurately map flush() API calls and corresponding flush_complete_events iii) Remove all references to 1_1 and 1_2 HALs. iv) Dynamically allocate sensor_event buffers in SensorService main threadLoop. Bug: 17412359 Change-Id: If3c3986197660cafef2d2e0b4dc7582e229cf1c4 --- include/gui/SensorEventQueue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/gui') diff --git a/include/gui/SensorEventQueue.h b/include/gui/SensorEventQueue.h index 5402f37..019308d 100644 --- a/include/gui/SensorEventQueue.h +++ b/include/gui/SensorEventQueue.h @@ -27,7 +27,7 @@ #include // ---------------------------------------------------------------------------- -#define WAKE_UP_SENSOR_EVENT_NEEDS_ACK (1U << 30) +#define WAKE_UP_SENSOR_EVENT_NEEDS_ACK (1U << 31) struct ALooper; struct ASensorEvent; -- cgit v1.1