diff options
author | Aravind Akella <aakella@google.com> | 2014-02-11 18:58:52 -0800 |
---|---|---|
committer | Aravind Akella <aakella@google.com> | 2014-04-23 14:38:56 -0700 |
commit | 9a844cf78f09953145200b4074d47589257a408c (patch) | |
tree | 8168fc7ede93ec3e6c7567f8d24215ae1820e858 /include/android | |
parent | 4cbf3c53447215a31f69d3ac615ba0daa902f717 (diff) | |
download | frameworks_native-9a844cf78f09953145200b4074d47589257a408c.zip frameworks_native-9a844cf78f09953145200b4074d47589257a408c.tar.gz frameworks_native-9a844cf78f09953145200b4074d47589257a408c.tar.bz2 |
Enable wakeup sensors.
SensorService should hold a wakelock till the app reads events from a wakeup sensor. Currently drivers hold a wakelock with a
timeout while delivering events from a wake up sensor like Significant Motion. This hack can be removed now.
Bug: 9774884
Change-Id: If3b5acb99c9cf0cd29012fcfa9d6b04c74133d01
Diffstat (limited to 'include/android')
-rw-r--r-- | include/android/sensor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/android/sensor.h b/include/android/sensor.h index b4e7ebe..86de930 100644 --- a/include/android/sensor.h +++ b/include/android/sensor.h @@ -157,7 +157,9 @@ typedef struct ASensorEvent { uint64_t step_counter; } u64; }; - int32_t reserved1[4]; + + uint32_t flags; + int32_t reserved1[3]; } ASensorEvent; struct ASensorManager; |