Revert^2 Fix testRegisterComponentCallbacksOnWindowContext flaky
This flakiness is due to race of config updates when WindowContext attaches to DisplyArea. This CL fixed it by: 1. Don't dispatch config updates to the client side when registering to DA. We have reported the value by the return value of #attachWindowContextToDisplayArea. 2. Add lock in WindowTokenClient#onConfigurationChanged to avoid race. During applying DA's config to WindowContext, WindowContext may get another callback from the server side and dispatch to ComponentCallbacks unexpectedly. Bug: 190019118 fixes: 228911504 Bug: 230022846 Test: atest RegisterComponentCallbacksTest --iterations Test: atest WindowContextTest WindowContextTests Test: atest WindowMetricsWindowContextTests Change-Id: I2d749a058c7a3828c8c8288040236f005aa00ab6
Loading
Please register or sign in to comment