summaryrefslogtreecommitdiff
path: root/libs/sensor/SensorEventQueue.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Implement Sensors NDK FilteringBrian Stack2019-01-181-0/+47
| | | | | | | | | | | | | Implements the Sensors NDK filtering to only deliver ASENSOR_TYPE_ADDITIONAL_INFO sensor events to clients who have requested the events. Bug: 77276247 Test: Unit tests pass Test: Verified NDK clients only receive additional info sensor events if they have been explicitly requested Change-Id: I951ab65b19eafad16d18afb795fbb19fd5f95589
* [sensor] Modernize codebase by replacing NULL with nullptrYi Kong2018-07-171-4/+4
| | | | | | | | Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I82e6ef0f074571a9537fa2eeedf56975363ca601
* Add ASensorEventQueue_registerSensor and default error valuePeng Xu2017-03-071-1/+1
| | | | | | | | | | | | | ASensorEventQueue_registerSensor is new function created in 2016 but is never exported at NDK level. In this CL the function signature is formalized and the function name is added to NDK function export table. Internal class SensorEventQueue is also changed to adapt. Default error values are also defined. Test: cts-tradefed run cts --module CtsSensorTestCases \ --test android.hardware.cts.SensorNativeTest Change-Id: I74dc72e50ea4bae6d2d8944ce6d2e191ed2f495e
* split libsensor our of libgui Mathias Agopian2017-03-071-0/+193
Test: compile & run Bug: treble cleanup Change-Id: I5b2c2a14f7d3b364d25695cf0901c5b08cfb0fc9