Handle recreate_taskbar in QuickstepTestInformationHandler

Currently only tests that use DebugQuickstepTestInformationHandle
are able to recreate the taskbar.

This change allows recreating the taskbar in system UI TAPL tests.

Bug: 273994695
Test: atest PlatformScenarioTests:android.platform.test.scenario.sysui.bubble.BubbleBarTest
Flag: NA
Change-Id: Id97d26c0aa77db23cd9031f47cf8dd3f79e6a158
This commit is contained in:
Liran Binyamin
2023-12-13 15:43:42 -05:00
parent 486c96be87
commit beb70140f4
@@ -149,6 +149,11 @@ public class QuickstepTestInformationHandler extends TestInformationHandler {
case TestProtocol.REQUEST_REFRESH_OVERVIEW_TARGET:
runOnTISBinder(TouchInteractionService.TISBinder::refreshOverviewTarget);
return response;
case TestProtocol.REQUEST_RECREATE_TASKBAR:
// Allow null-pointer to catch illegal states.
runOnTISBinder(tisBinder -> tisBinder.getTaskbarManager().recreateTaskbar());
return response;
}
return super.call(method, arg, extras);