Add check for action in consumeEvent

We would like to check that the action received by input tests is
correct. Therefore, we should pass the action to the consumeEvent
method. But that would make the existing usage of this method
cumbersome (too many arguments).

Add convenience methods consumeKeyDown and consumeMotionDown to simplify
the existing usage.

Bug: none
Test: atest inputflinger_tests
Change-Id: Ie33d952a9025063b4901e32a3d92e1a19c330b72
1 file changed