Update TestLauncherActivity to send TAPL launcher stopped message

This removes the need for a workaround in LauncherInstrumentation.executeAndWaitForLauncherStop for FallbackRecentsTests with recents window enabled

Flag: com.android.launcher3.enable_fallback_overview_in_window
Bug: 377678992
Test: FallbackRecentsTest
Change-Id: I1b974cb2bfff4c14e99abb96c35dcdff04ed0be7
This commit is contained in:
Schneider Victor-Tulias authored and Schneider Victor-tulias committed 2025-05-22 09:01:14 -07:00
1 parent 66923a912c
commit 9705f8fefa
11 files changed
+72 -31

No files matched your search

@@ -137,6 +137,7 @@ public class FallbackRecentsTest {
getLauncherCommand(mOtherLauncherActivity));
updateHandler.mChangeCounter
.await(DEFAULT_BROADCAST_TIMEOUT_SECS, TimeUnit.SECONDS);
mLauncher.setTestLauncherPackage(mOtherLauncherActivity.packageName);
try {
base.evaluate();
} finally {
@@ -144,6 +145,7 @@ public class FallbackRecentsTest {
TestCommandReceiver.callCommand(TestCommandReceiver.DISABLE_TEST_LAUNCHER);
UiDevice.getInstance(getInstrumentation()).executeShellCommand(
getLauncherCommand(getLauncherInMyProcess()));
mLauncher.setTestLauncherPackage(null);
pressHomeAndWaitForOverviewClose();
}
}