commit | c5ca85c5a18541a1ba50367df079c0c03eb238cb | [log] [tgz] |
---|---|---|
author | Siarhei Vishniakou <svv@google.com> | Fri Nov 15 17:20:00 2019 -0800 |
committer | Siarhei Vishniakou <svv@google.com> | Fri Nov 15 17:39:46 2019 -0800 |
tree | 9da4d058fb2bafc3ebb29e99078136816e3838f0 | |
parent | 8935a80245c3e30c92cd5835809922a0bc84bfed [diff] |
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