summaryrefslogtreecommitdiffstats
path: root/modules/sensors
Commit message (Collapse)AuthorAgeFilesLines
* Fix sensor multi hal crash when sub-HAL reports an errorNick Vaccaro2014-03-171-2/+5
| | | | | | | | Fix a null pointer dereference bug that caused the multihal to crash in an endless loop continuously trying to open a sensor HAL when it reports back an error. Change-Id: I6d82e8fdd9acde53f378a5fb3dfdb02c39d7b433
* DO NOT MERGE: Sensor multi HALMike Lockwood2013-12-096-0/+1021
Squashed commit of: Move sensors multi HAL to libhardware Added a SensorEventQueue, a circular buffer meant for reading with one thread and polling a subhal with another. The writing thread gets access to pointers in the internal buffer. This design avoids a memcpy on write when the multihal fetches subhal events using poll(). Unit-tests include multithreaded reading and writing lots of events, in random-sized chunks. This is not used by the multihal yet. That will be a different CL. MultiHal multithreaded polling Tests SensorEventQueue I/O when the queue is full. Reduced debug logging in multihal. deactivated multihal logspam, made warnings warnings, left critical startup info Removed unneeded linux/input.h includes, to fix Mac SDK build Change-Id: I1e35508949df98a1acef7a4a2d012eea87b4a5eb