da8385cb97ba40ab87e7e9b8d5b7c8f0ba5ba0fd |
|
01-Mar-2017 |
Peng Xu <pengxu@google.com> |
Add ASensorEventQueue_registerSensor and default error value 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
/frameworks/native/libs/sensor/SensorEventQueue.cpp
|