commit | 6526b38f2871c8d59eb80f4855138de1313de485 | [log] [tgz] |
---|---|---|
author | Ben Lin <linben@google.com> | Fri Feb 24 14:02:51 2017 -0800 |
committer | Ben Lin <linben@google.com> | Fri Feb 24 14:05:18 2017 -0800 |
tree | d087442fde87b0240a5c5b27357ce0e0cd90a102 | |
parent | 979aaa2cef980fdf48a8b47fd1ad9035eaf7275c [diff] |
Add button state to BandSelection Ui Test. UIAutomator has Configurator#setToolType, but no such feature for set button state. We have a check that only allows band selection if starting from primary button, but UiAutomator defaults to buttonState = 0 for injecting MotionEvents. This is re-using their code in our own codebase, and manually passing down button state ourselves. Change-Id: Iaaeee5356861e26e79514358123cb7ec1b09f13c