Optionally wait animations on syncInputTransactions/injectInputEvent

I need to perform a touch while animating in CTS to test ag/13067140,
but current methods all wait for animations to complete, which defeats
the purpose.

Creating new methods that optionally wait for animations to complete.

Test: atest WindowUntrustedTouchTest on child CL
Bug: 172787052
Change-Id: I4832ea2c62531a73098d2817930638ccb5f40765
7 files changed