Merge "Add more logging to debug b/270770472" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9832afdf2b
@@ -147,6 +147,9 @@ public abstract class AllApps extends LauncherInstrumentation.VisibleContainer {
|
|||||||
getAppsListRecyclerBottomPadding());
|
getAppsListRecyclerBottomPadding());
|
||||||
verifyActiveContainer();
|
verifyActiveContainer();
|
||||||
final int newScroll = getAllAppsScroll();
|
final int newScroll = getAllAppsScroll();
|
||||||
|
LauncherInstrumentation.log(
|
||||||
|
String.format("tryGetAppIcon: scrolled from %d to %d", scroll,
|
||||||
|
newScroll));
|
||||||
mLauncher.assertTrue(
|
mLauncher.assertTrue(
|
||||||
"Scrolled in a wrong direction in AllApps: from " + scroll + " to "
|
"Scrolled in a wrong direction in AllApps: from " + scroll + " to "
|
||||||
+ newScroll, newScroll >= scroll);
|
+ newScroll, newScroll >= scroll);
|
||||||
@@ -259,8 +262,7 @@ public abstract class AllApps extends LauncherInstrumentation.VisibleContainer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private int getAllAppsScroll() {
|
private int getAllAppsScroll() {
|
||||||
return mLauncher.getTestInfo(
|
return mLauncher.getTestInfo(TestProtocol.REQUEST_APPS_LIST_SCROLL_Y)
|
||||||
TestProtocol.REQUEST_APPS_LIST_SCROLL_Y)
|
|
||||||
.getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD);
|
.getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user