Age | Commit message (Collapse) | Author |
|
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
|
|
Fixes -Wzero-as-null-pointer-constant warning.
Test: m
Bug: 68236239
Change-Id: I82e6ef0f074571a9537fa2eeedf56975363ca601
|
|
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
|
|
Test: compile & run
Bug: treble cleanup
Change-Id: I5b2c2a14f7d3b364d25695cf0901c5b08cfb0fc9
|