Convert InputVerifier to rust
To establish some basic rust infrastructure for input code, convert the InputVerifier into rust. Currently, we use bindgen for interfacing between cpp and rust. In a future CL, this may be changed to an aidl interface instead. The logs and verifications can be enabled via: adb shell setprop log.tag.InputTransportVerifyEvents DEBUG adb shell setprop log.tag.InputVerifierLogEvents DEBUG adb shell setprop log.tag.InputDispatcherVerifyEvents DEBUG Bug: 271455682 Test: m inputflinger_tests && $ANDROID_HOST_OUT/nativetest64/inputflinger_tests/inputflinger_tests Change-Id: I607fed9f6fc9c38e2c8392f59e9c4facdaf6c68a
Showing
- Android.bp 8 additions, 0 deletionsAndroid.bp
- include/input/InputVerifier.h 19 additions, 10 deletionsinclude/input/InputVerifier.h
- libs/input/Android.bp 147 additions, 4 deletionslibs/input/Android.bp
- libs/input/FromRustToCpp.cpp 26 additions, 0 deletionslibs/input/FromRustToCpp.cpp
- libs/input/InputTransport.cpp 8 additions, 2 deletionslibs/input/InputTransport.cpp
- libs/input/InputVerifier.cpp 21 additions, 97 deletionslibs/input/InputVerifier.cpp
- libs/input/InputWrapper.hpp 18 additions, 0 deletionslibs/input/InputWrapper.hpp
- libs/input/ffi/FromRustToCpp.h 23 additions, 0 deletionslibs/input/ffi/FromRustToCpp.h
- libs/input/input_verifier.rs 421 additions, 0 deletionslibs/input/input_verifier.rs
- services/inputflinger/Android.bp 3 additions, 0 deletionsservices/inputflinger/Android.bp
- services/inputflinger/dispatcher/DebugConfig.cpp 2 additions, 3 deletionsservices/inputflinger/dispatcher/DebugConfig.cpp
- services/inputflinger/dispatcher/DebugConfig.h 16 additions, 10 deletionsservices/inputflinger/dispatcher/DebugConfig.h
- services/inputflinger/dispatcher/InputDispatcher.cpp 14 additions, 0 deletionsservices/inputflinger/dispatcher/InputDispatcher.cpp
- services/inputflinger/dispatcher/InputDispatcher.h 1 addition, 0 deletionsservices/inputflinger/dispatcher/InputDispatcher.h
- services/inputflinger/tests/EventBuilders.h 4 additions, 0 deletionsservices/inputflinger/tests/EventBuilders.h
- services/inputflinger/tests/InputDispatcher_test.cpp 6 additions, 0 deletionsservices/inputflinger/tests/InputDispatcher_test.cpp
Loading
Please register or sign in to comment