Loading services/tests/wmtests/src/com/android/server/wm/SplashScreenExceptionListTest.java +5 −2 Original line number Original line Diff line number Diff line Loading @@ -157,8 +157,11 @@ public class SplashScreenExceptionListTest { DeviceConfig.setProperty(DeviceConfig.NAMESPACE_WINDOW_MANAGER, DeviceConfig.setProperty(DeviceConfig.NAMESPACE_WINDOW_MANAGER, KEY_SPLASH_SCREEN_EXCEPTION_LIST, commaSeparatedList, false); KEY_SPLASH_SCREEN_EXCEPTION_LIST, commaSeparatedList, false); try { try { assertTrue("Timed out waiting for DeviceConfig to be updated.", if (!latch.await(1, TimeUnit.SECONDS)) { latch.await(5, TimeUnit.SECONDS)); Log.w(getClass().getSimpleName(), "Timed out waiting for DeviceConfig to be updated. Force update."); mList.updateDeviceConfig(commaSeparatedList); } } catch (InterruptedException e) { } catch (InterruptedException e) { Assert.fail(e.getMessage()); Assert.fail(e.getMessage()); } } Loading services/tests/wmtests/src/com/android/server/wm/WindowTestsBase.java +2 −0 Original line number Original line Diff line number Diff line Loading @@ -1062,6 +1062,8 @@ class WindowTestsBase extends SystemServiceTestsBase { mWm.mAnimator.ready(); mWm.mAnimator.ready(); if (!mWm.mWindowPlacerLocked.isTraversalScheduled()) { if (!mWm.mWindowPlacerLocked.isTraversalScheduled()) { mRootWindowContainer.performSurfacePlacement(); mRootWindowContainer.performSurfacePlacement(); } else { waitHandlerIdle(mWm.mAnimationHandler); } } waitUntilWindowAnimatorIdle(); waitUntilWindowAnimatorIdle(); } } Loading Loading
services/tests/wmtests/src/com/android/server/wm/SplashScreenExceptionListTest.java +5 −2 Original line number Original line Diff line number Diff line Loading @@ -157,8 +157,11 @@ public class SplashScreenExceptionListTest { DeviceConfig.setProperty(DeviceConfig.NAMESPACE_WINDOW_MANAGER, DeviceConfig.setProperty(DeviceConfig.NAMESPACE_WINDOW_MANAGER, KEY_SPLASH_SCREEN_EXCEPTION_LIST, commaSeparatedList, false); KEY_SPLASH_SCREEN_EXCEPTION_LIST, commaSeparatedList, false); try { try { assertTrue("Timed out waiting for DeviceConfig to be updated.", if (!latch.await(1, TimeUnit.SECONDS)) { latch.await(5, TimeUnit.SECONDS)); Log.w(getClass().getSimpleName(), "Timed out waiting for DeviceConfig to be updated. Force update."); mList.updateDeviceConfig(commaSeparatedList); } } catch (InterruptedException e) { } catch (InterruptedException e) { Assert.fail(e.getMessage()); Assert.fail(e.getMessage()); } } Loading
services/tests/wmtests/src/com/android/server/wm/WindowTestsBase.java +2 −0 Original line number Original line Diff line number Diff line Loading @@ -1062,6 +1062,8 @@ class WindowTestsBase extends SystemServiceTestsBase { mWm.mAnimator.ready(); mWm.mAnimator.ready(); if (!mWm.mWindowPlacerLocked.isTraversalScheduled()) { if (!mWm.mWindowPlacerLocked.isTraversalScheduled()) { mRootWindowContainer.performSurfacePlacement(); mRootWindowContainer.performSurfacePlacement(); } else { waitHandlerIdle(mWm.mAnimationHandler); } } waitUntilWindowAnimatorIdle(); waitUntilWindowAnimatorIdle(); } } Loading