Loading
Take into account surface insets when replacing touch region.
When SurfaceFlinger computes window frames, the surface insets are clamped to the input bounds. But when replacing the touchable region, the surface insets are not taken into account. This CL adds consideration for surface insets, so that touchable region is computed correctly. This also fixes a ListPopupWindowTest on freeform windowing devices. Test: atest SurfaceFlinger_test on freeform windowing emulator and aosp_cf_x86_64_phone target Fixes: 272786078 Change-Id: Id8082cb1b39280e846c2bf5a36315df68d37d2e6