Improve testability for WindowLayoutComponentImpl.

This change increases the testability of WindowLayoutComponentImpl by
allowing tests to control the rotation and DisplayInfo. This prevents
tests from depending on the real device orientation or display configuration.

Bug: 337820752
Flag: TEST_ONLY
Test: atest WMJetpackUnitTests:ExtensionHelperTest
Test: atest WMJetpackUnitTests:WindowLayoutComponentImplTest
Change-Id: I02360dca16acd827cc6d8dd0862057817f424149
4 files changed