Correct the random select bounds to ensure the proper position

The x, y of LayoutParams should indicate the offset from the given edge
instead of the location of screen. We should calculate the proper
select bounds by inseting the systembar and the untouchable regions.

Bug: 232345961
Test: atest WindowInputTests#testMoveWindowAndTap --rerun-until-failure
Change-Id: I38cdb23c1f2f9402fd2a536fbe43e8b66f03e429
1 file changed