From 406a96c1e2f93df06fb24e0fc62cb2236f5c637f Mon Sep 17 00:00:00 2001 From: vadimt Date: Fri, 31 Mar 2023 11:08:02 -0700 Subject: [PATCH] Add more logging to debug b/270770472 Test: presubmit Bug: 270770472 Change-Id: Ie7c07b7095c7fba0058d9785a1fb47208d09eb21 --- tests/tapl/com/android/launcher3/tapl/AllApps.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/tapl/com/android/launcher3/tapl/AllApps.java b/tests/tapl/com/android/launcher3/tapl/AllApps.java index 2d4d2cd327..885707c268 100644 --- a/tests/tapl/com/android/launcher3/tapl/AllApps.java +++ b/tests/tapl/com/android/launcher3/tapl/AllApps.java @@ -147,6 +147,9 @@ public abstract class AllApps extends LauncherInstrumentation.VisibleContainer { getAppsListRecyclerBottomPadding()); verifyActiveContainer(); final int newScroll = getAllAppsScroll(); + LauncherInstrumentation.log( + String.format("tryGetAppIcon: scrolled from %d to %d", scroll, + newScroll)); mLauncher.assertTrue( "Scrolled in a wrong direction in AllApps: from " + scroll + " to " + newScroll, newScroll >= scroll); @@ -259,8 +262,7 @@ public abstract class AllApps extends LauncherInstrumentation.VisibleContainer { } private int getAllAppsScroll() { - return mLauncher.getTestInfo( - TestProtocol.REQUEST_APPS_LIST_SCROLL_Y) + return mLauncher.getTestInfo(TestProtocol.REQUEST_APPS_LIST_SCROLL_Y) .getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); }