Refactor filterInputEvent asserts

There are some commonalities between the asserts for filterInputEvent.
Refactor them.

Bug: none
Test: presubmit
Change-Id: I19c84ab5df4c347b02b4fcef1045c1e34fcad0f0
1 file changed