Add a 5 second timeout to launch animation touch blocking

This is a workaround for b/288507023, which is caused by launch
animations hanging. It does not address the cause of the animation
not completing, but it will allow users to resume interacting with
their device after 5 seconds.

Test: added unit test
Test: simulated the bug with a temporary change and verified manually
Bug: 288507023
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6e264abf4a393ff691c032026a9635acff1c8215)
Merged-In: I5c240a9ee852bf57e8ec251b733708086e825b45
Change-Id: I5c240a9ee852bf57e8ec251b733708086e825b45
2 files changed