Fix touch event would be offset by crop
SurfaceFlinger overwrite the input frame info by the layer
bounds, and the input coordinate should match the active buffer bounds.
The touch region should intersect the active buffer and screen bounds.
Bug: 120641923
Bug: 120781892
Test: atest com.android.server.wm
Test: atest libgui_test
Test: use landscape mode, split screen, touch on secondary window.
Test: create legacy application (<N), no title bar,
window flags=FLAG_LAYOUT_IN_SCREEN|FLAG_LAYOUT_INSET_DECOR
Change-Id: Idc3b5bb707ce733c77ee700821bde5786594e430
4 files changed