Create hover input target by addPointerWindowTargetLocked

The hover event is also pointer event, we should use
addPointerWindowTargetLocked to create input target, this will improve
code maintainability.

Bug: 328151597
Test: atest inputflinger_tests

Signed-off-by: Linnan Li <lilinnan@xiaomi.corp-partner.google.com>
(cherry picked from https://partner-android-review.googlesource.com/q/commit:f05a78743cc97f164e867790465f47ed830d46fb)
Merged-In: Ie23d9e4fa2aa79f692624ab286c113d6cdac5b67
Change-Id: Ie23d9e4fa2aa79f692624ab286c113d6cdac5b67
1 file changed