Loading apct-tests/perftests/core/src/android/widget/LayoutPerfTest.java +25 −23 Original line number Diff line number Diff line Loading @@ -78,7 +78,8 @@ public class LayoutPerfTest { @Test @UiThreadTest public void testLayoutPerf() { public void testLayoutPerf() throws Throwable { mActivityRule.runOnUiThread(() -> { assertTrue("We should be running on the main thread", Looper.getMainLooper().getThread() == Thread.currentThread()); assertTrue("We should be running on the main thread", Loading @@ -102,5 +103,6 @@ public class LayoutPerfTest { viewGroup.layout(0, 0, viewGroup.getMeasuredWidth(), viewGroup.getMeasuredHeight()); } } }); } } Loading
apct-tests/perftests/core/src/android/widget/LayoutPerfTest.java +25 −23 Original line number Diff line number Diff line Loading @@ -78,7 +78,8 @@ public class LayoutPerfTest { @Test @UiThreadTest public void testLayoutPerf() { public void testLayoutPerf() throws Throwable { mActivityRule.runOnUiThread(() -> { assertTrue("We should be running on the main thread", Looper.getMainLooper().getThread() == Thread.currentThread()); assertTrue("We should be running on the main thread", Loading @@ -102,5 +103,6 @@ public class LayoutPerfTest { viewGroup.layout(0, 0, viewGroup.getMeasuredWidth(), viewGroup.getMeasuredHeight()); } } }); } }