diff --git a/quickstep/res/values/override.xml b/quickstep/res/values/override.xml index 860abc1cc3..df32626e5c 100644 --- a/quickstep/res/values/override.xml +++ b/quickstep/res/values/override.xml @@ -33,4 +33,6 @@ com.android.launcher3.taskbar.TaskbarModelCallbacksFactory + + diff --git a/quickstep/src/com/android/quickstep/TouchInteractionService.java b/quickstep/src/com/android/quickstep/TouchInteractionService.java index b12d1c65c5..009cf38fff 100644 --- a/quickstep/src/com/android/quickstep/TouchInteractionService.java +++ b/quickstep/src/com/android/quickstep/TouchInteractionService.java @@ -119,6 +119,7 @@ import com.android.quickstep.inputconsumers.TaskbarUnstashInputConsumer; import com.android.quickstep.inputconsumers.TrackpadStatusBarInputConsumer; import com.android.quickstep.util.ActiveGestureLog; import com.android.quickstep.util.ActiveGestureLog.CompoundString; +import com.android.quickstep.util.AssistStateManager; import com.android.quickstep.util.AssistUtils; import com.android.systemui.shared.recents.IOverviewProxy; import com.android.systemui.shared.recents.ISystemUiProxy; @@ -1321,6 +1322,8 @@ public class TouchInteractionService extends Service { createdOverviewActivity.getDeviceProfile().dump(this, "", pw); } mTaskbarManager.dumpLogs("", pw); + pw.println("AssistStateManager:"); + AssistStateManager.INSTANCE.get(this).dump(" ", pw); } private AbsSwipeUpHandler createLauncherSwipeHandler( diff --git a/quickstep/src/com/android/quickstep/util/AssistStateManager.java b/quickstep/src/com/android/quickstep/util/AssistStateManager.java new file mode 100644 index 0000000000..d4923b88a1 --- /dev/null +++ b/quickstep/src/com/android/quickstep/util/AssistStateManager.java @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2023 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.android.quickstep.util; + +import static com.android.launcher3.util.MainThreadInitializedObject.forOverride; + +import com.android.launcher3.R; +import com.android.launcher3.util.MainThreadInitializedObject; +import com.android.launcher3.util.ResourceBasedOverride; + +import java.io.PrintWriter; + +/** Class to manage Assistant states. */ +public class AssistStateManager implements ResourceBasedOverride { + + public static final MainThreadInitializedObject INSTANCE = + forOverride(AssistStateManager.class, R.string.assist_state_manager_class); + + public AssistStateManager() {} + + /** Whether search is available. */ + public boolean isSearchAvailable() { + return false; + } + + /** Dump states. */ + public void dump(String prefix, PrintWriter writer) {} +}