Fix AppWindowTokenTests#testLandscapeSeascapeRotationByPolicy
Previously this test was marked as blocked by b/35034729. This bug has been fixed, however the test still fails due to other issues addressed here. Addressed issues are as follows: 1. Updating rotation by display manager requires a display with the default display id present. This display is removed during setup. The first id to be used by a display after this point is the default id + 1. We already have logic in place to avoid collisions so it is safe and correct to start out at the default id. 2. Without allowing the animator to complete its steps after a rotation, future rotations will be deferred. We must simulate the steps taken by the and resulting from the animtor. These include marking the orientation change as complete and performing a surface placement afterwards. Bug: 35034729 Test: bit FrameworksServicesTests:com.android.server.wm.AppWindowTokenTests Change-Id: Ib01c047ac49982a4a3c1debaa3cee1b7b9b53632
Loading
Please register or sign in to comment