Ensure setFocusedApplication resets no focused window timeout

If we are waiting for a focused window, the call to
'setFocusedApplication' should stop the wait.

Bug: 160561987
Test: adb shell -t /data/nativetest64/inputflinger_tests/inputflinger_tests --gtest_filter="*WhenFocusedApplicationChanges_NoAnr*" --gtest_repeat=10000
Change-Id: I14e13a9af20dd676e4f8e8584aa5d6948adb0d0d
2 files changed