From beb70140f4dfc378fc082c7b1caad213512f40cf Mon Sep 17 00:00:00 2001 From: Liran Binyamin Date: Wed, 13 Dec 2023 15:43:42 -0500 Subject: [PATCH] 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 --- .../android/quickstep/QuickstepTestInformationHandler.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/quickstep/src/com/android/quickstep/QuickstepTestInformationHandler.java b/quickstep/src/com/android/quickstep/QuickstepTestInformationHandler.java index 03037914af..9d942c5380 100644 --- a/quickstep/src/com/android/quickstep/QuickstepTestInformationHandler.java +++ b/quickstep/src/com/android/quickstep/QuickstepTestInformationHandler.java @@ -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);