Update test to verify WindowLayoutInfo from WindowContext after
rotation.

Also change helper setActivityOrientationActivityHandlesOrientationChanges to wait on orientation change event in case Activity didn't relayout fast enough.

Test: atest
Bug: 258243302
Bug: 254056760

Change-Id: Ifc919af3086c571c057b1fb66b0c470496186172
Merged-In: Ifc919af3086c571c057b1fb66b0c470496186172
5 files changed