Make interceptMotionBeforeQueueingNonInteractive per display

This patch is to fix that when the primary display is off, the secondary
display
cannot receive motion events.
The root cause is that interceptMotionBeforeQueueingNonInteractive just
check the primary display on/off state. We provide displayId to this
method and
check the display state specified by displayId to fix this issue.

Fix: 77946172
Bug: 117479243
Test: atest WmTests
Test: atest -a libinput_tests inputflinger_tests

Change-Id: I6b4cfd4b5227e99a97357904043aa22d8d49e50b
6 files changed