Android: bound derived child safe area margins
Child views are clipped to their parent, so overflow must
not create new unsafe margins. Cover all edges and window
modes, including Android versions without enforcement.
Move the child checks before the enforcement guard so
Android 9 also exercises derived margins. Check every
window mode and extend the child beyond all four edges.
Compare against the parent margins to cover nonzero
insets, then reset the geometry to check recalculation.
Amends c0d5bf9ea075611474d2c98d1c4ad1f6dba5df45.
Pick-to: 6.12
Fixes: QTBUG-151716
Change-Id: Idaa733263ca3b29ae85439eadd2b5c3fc9b82734
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>