Retain previous configs if current and new windowing modes are pinned.

Update the COLOR_MODE, TOUCHSCREEN and DENSITY configs with the new
parent configs if it's exiting PiP, for example, by expanding. So that
the app gets updated with the correct display configs when it exits PiP.

Test: atest ActivityRecordTests
Flag: com.android.window.flags.enable_dragging_pip_across_displays
Fixes: 431280403
Change-Id: Ic4e62f407f47a12efc29cec31d1ab2f5b6026487
4 files changed