summaryrefslogtreecommitdiff
path: root/libs/sensor/SensorEventQueue.cpp
AgeCommit message (Collapse)Author
2019-01-18Implement Sensors NDK FilteringBrian Stack
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
2018-07-17[sensor] Modernize codebase by replacing NULL with nullptrYi Kong
Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I82e6ef0f074571a9537fa2eeedf56975363ca601
2017-03-07Add ASensorEventQueue_registerSensor and default error valuePeng Xu
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
2017-03-07split libsensor our of libgui Mathias Agopian
Test: compile & run Bug: treble cleanup Change-Id: I5b2c2a14f7d3b364d25695cf0901c5b08cfb0fc9