Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2fbfc68d authored by Harry Cutts's avatar Harry Cutts
Browse files

inputflinger fuzzers: tidy up kValid{Types,Codes}

SYN_REPORT is not a valid event type (i.e. it's not an evdev axis or one
of the additional event codes added by EventHub), so it shouldn't be in
kValidTypes.

Also remove a duplication of SYNC_MT_REPORT from kValidCodes.

Bug: 264582512
Test: build and run inputflinger_multitouch_input_fuzzer
Change-Id: I5f9219b7060d0b5cf0f36746502d7a400556a5cf
parent 9d2b527b
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -22,7 +22,6 @@

constexpr size_t kValidTypes[] = {EV_SW,
                                  EV_SYN,
                                  SYN_REPORT,
                                  EV_ABS,
                                  EV_KEY,
                                  EV_MSC,
@@ -46,7 +45,6 @@ constexpr size_t kValidCodes[] = {
        ABS_MT_PRESSURE,
        ABS_MT_DISTANCE,
        ABS_MT_TOOL_TYPE,
        SYN_MT_REPORT,
        MSC_SCAN,
        REL_X,
        REL_Y,