diff options
author | 2022-12-08 18:54:48 +0000 | |
---|---|---|
committer | 2022-12-08 18:54:48 +0000 | |
commit | a70ea729f96afe7ec0a9322fac8e3253489954a0 (patch) | |
tree | 1f4d55daa10bb42a148637ee00cc9f59beb5643c | |
parent | 7c097ba9672399a8800db3163362fe68ec49d4aa (diff) | |
parent | d1f18fa8bef0a319c6952040b9a7ad2a255c17c9 (diff) |
Merge "Revert "Add asserts for new HAL axes in InputCommonConverter""
-rw-r--r-- | services/inputflinger/Android.bp | 2 | ||||
-rw-r--r-- | services/inputflinger/InputCommonConverter.cpp | 5 | ||||
-rw-r--r-- | services/inputflinger/tests/fuzzers/Android.bp | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/services/inputflinger/Android.bp b/services/inputflinger/Android.bp index 973986f06c..b8854352ad 100644 --- a/services/inputflinger/Android.bp +++ b/services/inputflinger/Android.bp @@ -70,7 +70,7 @@ cc_defaults { name: "libinputflinger_defaults", srcs: [":libinputflinger_sources"], shared_libs: [ - "android.hardware.input.processor-V2-ndk", + "android.hardware.input.processor-V1-ndk", "libbase", "libbinder", "libbinder_ndk", diff --git a/services/inputflinger/InputCommonConverter.cpp b/services/inputflinger/InputCommonConverter.cpp index b292c09350..628ce6fc9a 100644 --- a/services/inputflinger/InputCommonConverter.cpp +++ b/services/inputflinger/InputCommonConverter.cpp @@ -263,10 +263,7 @@ static_assert(static_cast<common::Axis>(AMOTION_EVENT_AXIS_GENERIC_13) == common static_assert(static_cast<common::Axis>(AMOTION_EVENT_AXIS_GENERIC_14) == common::Axis::GENERIC_14); static_assert(static_cast<common::Axis>(AMOTION_EVENT_AXIS_GENERIC_15) == common::Axis::GENERIC_15); static_assert(static_cast<common::Axis>(AMOTION_EVENT_AXIS_GENERIC_16) == common::Axis::GENERIC_16); -static_assert(static_cast<common::Axis>(AMOTION_EVENT_AXIS_GESTURE_X_OFFSET) == - common::Axis::GESTURE_X_OFFSET); -static_assert(static_cast<common::Axis>(AMOTION_EVENT_AXIS_GESTURE_Y_OFFSET) == - common::Axis::GESTURE_Y_OFFSET); +// TODO(hcutts): add GESTURE_X_OFFSET and GESTURE_Y_OFFSET. // If you added a new axis, consider whether this should also be exposed as a HAL axis. Update the // static_assert below and add the new axis here, or leave a comment summarizing your decision. static_assert(static_cast<common::Axis>(AMOTION_EVENT_MAXIMUM_VALID_AXIS_VALUE) == diff --git a/services/inputflinger/tests/fuzzers/Android.bp b/services/inputflinger/tests/fuzzers/Android.bp index 4359a4b7fb..55c2db6c91 100644 --- a/services/inputflinger/tests/fuzzers/Android.bp +++ b/services/inputflinger/tests/fuzzers/Android.bp @@ -55,7 +55,7 @@ cc_defaults { ], shared_libs: [ "android.hardware.input.classifier@1.0", - "android.hardware.input.processor-V2-ndk", + "android.hardware.input.processor-V1-ndk", "libbase", "libbinder", "libcutils", |