Use new config to check windowing mode for upscaling enabling/disabling

Upscaling in SCM should only be enabled for freeform activities.
Current check retrieves windowing mode from activity record. However,
this is not updated in time so when we are transitioning out of desktop
mode (going from freeform to fullscreen), upscaling is still applied as
the old windowing mode is being used. Instead, we should check the
newParentConfiguration's windowing mode to enable/ disable upscaling
based on the final windowing mode app will inherit.

Flag: NONE(bug fix)
Test: atest WmTests:SizeCompatTests
Fix: 367224159

Change-Id: Ic95db02d032318c45458482088a380227a58243c
2 files changed