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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user