Loading
Still send motion events to window which already be touched
Make screen off during injecting swipe events(cmd: adb shell swipe 50 0 50 500 5000) in a window which can watch ouside events. Then UP event can not send to window due to policyFlags is not include POLICY_FLAG_PASS_TO_USER when screen off. InputDispatcher can not clear TouchState. Inputdispatcher will crash when inject down event which outside the window after screen on. So still send motion events to window which already be touched. Bug: 384456309 Test: TEST=inputflinger_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST --gtest_filter="*AlwaysDispatchInjectMotionEventWhenAlreadyDownForWindow" Change-Id: I0d5c3d4f3f26c4a550e37f96bac23c342d4cddcb