Loading src/com/android/launcher3/testing/TestInformationHandler.java +2 −2 Original line number Diff line number Diff line Loading @@ -126,11 +126,11 @@ public class TestInformationHandler implements ResourceBasedOverride { case TestProtocol.REQUEST_APPS_LIST_SCROLL_Y: { try { final int deferUpdatesFlags = MAIN_EXECUTOR.submit(() -> final int scroll = MAIN_EXECUTOR.submit(() -> mLauncher.getAppsView().getActiveRecyclerView().getCurrentScrollY()) .get(); response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, deferUpdatesFlags); scroll); } catch (ExecutionException | InterruptedException e) { throw new RuntimeException(e); } Loading tests/tapl/com/android/launcher3/tapl/AllApps.java +3 −0 Original line number Diff line number Diff line Loading @@ -131,6 +131,9 @@ public class AllApps extends LauncherInstrumentation.VisibleContainer { searchBox.getVisibleBounds().bottom - allAppsContainer.getVisibleBounds().top); final int newScroll = getAllAppsScroll(); mLauncher.assertTrue( "Scrolled in a wrong direction in AllApps: from " + scroll + " to " + newScroll, newScroll >= scroll); if (newScroll == scroll) break; mLauncher.assertTrue( Loading Loading
src/com/android/launcher3/testing/TestInformationHandler.java +2 −2 Original line number Diff line number Diff line Loading @@ -126,11 +126,11 @@ public class TestInformationHandler implements ResourceBasedOverride { case TestProtocol.REQUEST_APPS_LIST_SCROLL_Y: { try { final int deferUpdatesFlags = MAIN_EXECUTOR.submit(() -> final int scroll = MAIN_EXECUTOR.submit(() -> mLauncher.getAppsView().getActiveRecyclerView().getCurrentScrollY()) .get(); response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, deferUpdatesFlags); scroll); } catch (ExecutionException | InterruptedException e) { throw new RuntimeException(e); } Loading
tests/tapl/com/android/launcher3/tapl/AllApps.java +3 −0 Original line number Diff line number Diff line Loading @@ -131,6 +131,9 @@ public class AllApps extends LauncherInstrumentation.VisibleContainer { searchBox.getVisibleBounds().bottom - allAppsContainer.getVisibleBounds().top); final int newScroll = getAllAppsScroll(); mLauncher.assertTrue( "Scrolled in a wrong direction in AllApps: from " + scroll + " to " + newScroll, newScroll >= scroll); if (newScroll == scroll) break; mLauncher.assertTrue( Loading