Timing issue when running individual test case

Root cause : Test case not waiting for rotation configuration
to complete and then fetch the updated parameters

Fix : waiting for the valid condition even if the rotation
doesn't fully update the other WM state.

Bug:123669014
Test: run cts -m CtsActivityManagerDeviceTestCases -t
android.server.am.ActivityManagerPinnedStackTests#testPinnedStackMovementBounds

Change-Id: Ib67c67eaaa1299ce7cb1278dec0b9c5962ebe95e
1 file changed