Add logs for pressHome for isLauncherVisible am: 6168de06e5 am: 5ddde064ef

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15284079

Change-Id: Iffa0c26942f6ac1c95cc2efe503a2def63abcd95
This commit is contained in:
Alex Chau
2021-07-14 19:51:23 +00:00
committed by Automerger Merge Worker
@@ -735,6 +735,7 @@ public final class LauncherInstrumentation {
dumpViewHierarchy();
action = "swiping up to home";
final boolean launcherIsVisible = isLauncherVisible();
swipeToState(
displaySize.x / 2, displaySize.y - 1,
displaySize.x / 2, 0,
@@ -742,6 +743,9 @@ public final class LauncherInstrumentation {
launcherWasVisible
? GestureScope.INSIDE_TO_OUTSIDE
: GestureScope.OUTSIDE_WITH_PILFER);
// b/193653850: launcherWasVisible is a flaky indicator.
log("launcherWasVisible: " + launcherWasVisible + ", launcherIsVisible: "
+ launcherIsVisible);
}
} else {
log("Hierarchy before clicking home:");