Fix the window can't receive input still recevied events

In split mode, while primary window enter minimized for another window is
home or enter recent app. The primary window would be set as can't receive
any touch input. But the input info in SurfaceFlinger is still keeping,
that result the InputFlinger can still send the events to the window.

This patch would provide a fake invalid window handle with a null token,
so SurfaceFlinger would not update any input info to InputFlinger if
the window can't receive any input.

Test: Split mode, swipe to show the recent app or back to launcher on secondary
      window, test touch on secondary window.
Bug: 122272676
Change-Id: I7212e3cf1a685313b6cdec25237cc714d93309e7
1 file changed