Synchronize all WindowTestsBase and WindowTestUtils methods.
Several WindowManager tests access WindowManager code that assume the WM lock is already held. This can cause crashes in native code and cause unexpected behavior. Added synchronize blocks around all helper methods to avoid adding synchronized blocks in all WM tests methods. This does not guarantee that all WM tests are synchronized, but handles a good bulk of them for now. The largest number of failures were from ZOrderingTests since that tests creates a lot of windows, making synchronicity issues more likely. Ran that test class multiple times to ensure I was unable to get the failure. Test: ZOrderingTests Bug: 73966377 Change-Id: I96f586e7ea91223589caef885c87ecded555ab13 Fixes: 72976082
Loading
Please register or sign in to comment