Prepare HID input tests for motion events.
This CL
1) adds capability to request pointer capture so that we can assert on
relative positions;
2) lets InputCtsActivity handle all configuration changes because
mInputCallback only registers to the first activity so it can't be
relaunched when keyboards/mice show up that trigger configuration
changes;
3) adds source value into test cases because we're extending these tests
beyond joysticks;
4) asserts button state.
It also adds a bit more metadata in the failure logs to finely locate
the failure location.
Bug: 133368243
Test: Tested with the following mouse test.
Change-Id: Idb390af5e447afdc0cc6d1747a09a41ad9a0113f
7 files changed