Loading tests/tapl/com/android/launcher3/tapl/SearchResultFromQsb.java +10 −1 Original line number Diff line number Diff line Loading @@ -15,6 +15,8 @@ */ package com.android.launcher3.tapl; import static com.android.launcher3.testing.shared.TestProtocol.NORMAL_STATE_ORDINAL; import android.widget.TextView; import androidx.test.uiautomator.By; Loading Loading @@ -87,7 +89,7 @@ public class SearchResultFromQsb implements SearchInputSource { + (tapRight ? "right" : "left"))) { final UiObject2 allAppsBottomSheet = mLauncher.waitForLauncherObject(BOTTOM_SHEET_RES_ID); mLauncher.touchOutsideContainer(allAppsBottomSheet, tapRight); tapOutside(tapRight, allAppsBottomSheet); try (LauncherInstrumentation.Closable tapped = mLauncher.addContextLayer( "tapped outside AllApps bottom sheet")) { verifyVisibleContainerOnDismiss(); Loading @@ -95,6 +97,13 @@ public class SearchResultFromQsb implements SearchInputSource { } } protected void tapOutside(boolean tapRight, UiObject2 allAppsBottomSheet) { mLauncher.runToState( () -> mLauncher.touchOutsideContainer(allAppsBottomSheet, tapRight), NORMAL_STATE_ORDINAL, "tappig outside"); } protected void verifyVisibleContainerOnDismiss() { mLauncher.getWorkspace(); } Loading tests/tapl/com/android/launcher3/tapl/SearchResultFromTaskbarQsb.java +5 −0 Original line number Diff line number Diff line Loading @@ -50,4 +50,9 @@ public class SearchResultFromTaskbarQsb extends SearchResultFromQsb { protected void verifyVisibleContainerOnDismiss() { mLauncher.getLaunchedAppState().assertTaskbarVisible(); } @Override protected void tapOutside(boolean tapRight, UiObject2 allAppsBottomSheet) { mLauncher.touchOutsideContainer(allAppsBottomSheet, tapRight); } } Loading
tests/tapl/com/android/launcher3/tapl/SearchResultFromQsb.java +10 −1 Original line number Diff line number Diff line Loading @@ -15,6 +15,8 @@ */ package com.android.launcher3.tapl; import static com.android.launcher3.testing.shared.TestProtocol.NORMAL_STATE_ORDINAL; import android.widget.TextView; import androidx.test.uiautomator.By; Loading Loading @@ -87,7 +89,7 @@ public class SearchResultFromQsb implements SearchInputSource { + (tapRight ? "right" : "left"))) { final UiObject2 allAppsBottomSheet = mLauncher.waitForLauncherObject(BOTTOM_SHEET_RES_ID); mLauncher.touchOutsideContainer(allAppsBottomSheet, tapRight); tapOutside(tapRight, allAppsBottomSheet); try (LauncherInstrumentation.Closable tapped = mLauncher.addContextLayer( "tapped outside AllApps bottom sheet")) { verifyVisibleContainerOnDismiss(); Loading @@ -95,6 +97,13 @@ public class SearchResultFromQsb implements SearchInputSource { } } protected void tapOutside(boolean tapRight, UiObject2 allAppsBottomSheet) { mLauncher.runToState( () -> mLauncher.touchOutsideContainer(allAppsBottomSheet, tapRight), NORMAL_STATE_ORDINAL, "tappig outside"); } protected void verifyVisibleContainerOnDismiss() { mLauncher.getWorkspace(); } Loading
tests/tapl/com/android/launcher3/tapl/SearchResultFromTaskbarQsb.java +5 −0 Original line number Diff line number Diff line Loading @@ -50,4 +50,9 @@ public class SearchResultFromTaskbarQsb extends SearchResultFromQsb { protected void verifyVisibleContainerOnDismiss() { mLauncher.getLaunchedAppState().assertTaskbarVisible(); } @Override protected void tapOutside(boolean tapRight, UiObject2 allAppsBottomSheet) { mLauncher.touchOutsideContainer(allAppsBottomSheet, tapRight); } }