diff --git a/packages/SystemUI/shared/src/com/android/systemui/shared/recents/ISystemUiProxy.aidl b/packages/SystemUI/shared/src/com/android/systemui/shared/recents/ISystemUiProxy.aidl index 6f44623eb3203..c2504685a23e1 100644 --- a/packages/SystemUI/shared/src/com/android/systemui/shared/recents/ISystemUiProxy.aidl +++ b/packages/SystemUI/shared/src/com/android/systemui/shared/recents/ISystemUiProxy.aidl @@ -37,11 +37,6 @@ interface ISystemUiProxy { */ void startScreenPinning(int taskId) = 1; - /** - * Enables/disables launcher/overview interaction features {@link InteractionType}. - */ - void setInteractionState(int flags) = 4; - /** * Notifies SystemUI that split screen has been invoked. */ diff --git a/packages/SystemUI/shared/src/com/android/systemui/shared/system/NavigationBarCompat.java b/packages/SystemUI/shared/src/com/android/systemui/shared/system/NavigationBarCompat.java deleted file mode 100644 index 8d6f830c6d8ed..0000000000000 --- a/packages/SystemUI/shared/src/com/android/systemui/shared/system/NavigationBarCompat.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2018 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.systemui.shared.system; - -import android.annotation.IntDef; - -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; - -public class NavigationBarCompat extends QuickStepContract { - - @Retention(RetentionPolicy.SOURCE) - @IntDef({HIT_TARGET_NONE, HIT_TARGET_BACK, HIT_TARGET_HOME, HIT_TARGET_OVERVIEW}) - public @interface HitTarget{} - - public static final int HIT_TARGET_NONE = 0; - public static final int HIT_TARGET_BACK = 1; - public static final int HIT_TARGET_HOME = 2; - public static final int HIT_TARGET_OVERVIEW = 3; - public static final int HIT_TARGET_ROTATION = 4; - public static final int HIT_TARGET_DEAD_ZONE = 5; - - @Retention(RetentionPolicy.SOURCE) - @IntDef({FLAG_DISABLE_SWIPE_UP, - FLAG_DISABLE_QUICK_SCRUB, - FLAG_SHOW_OVERVIEW_BUTTON - }) - public @interface InteractionType {} - - /** - * Interaction type: whether the gesture to swipe up from the navigation bar will trigger - * launcher to show overview - */ - public static final int FLAG_DISABLE_SWIPE_UP = 0x1; - /** - * Interaction type: enable quick scrub interaction on the home button - */ - public static final int FLAG_DISABLE_QUICK_SCRUB = 0x2; - - /** - * Interaction type: show/hide the overview button while this service is connected to launcher - */ - public static final int FLAG_SHOW_OVERVIEW_BUTTON = 0x4; - - -} diff --git a/packages/SystemUI/src/com/android/systemui/Prefs.java b/packages/SystemUI/src/com/android/systemui/Prefs.java index 27975707bd8dc..10ae3434daaab 100644 --- a/packages/SystemUI/src/com/android/systemui/Prefs.java +++ b/packages/SystemUI/src/com/android/systemui/Prefs.java @@ -57,7 +57,6 @@ public final class Prefs { Key.SEEN_RINGER_GUIDANCE_COUNT, Key.QS_HAS_TURNED_OFF_MOBILE_DATA, Key.TOUCHED_RINGER_TOGGLE, - Key.QUICK_STEP_INTERACTION_FLAGS, Key.HAS_SEEN_ODI_CAPTIONS_TOOLTIP }) public @interface Key { @@ -103,7 +102,6 @@ public final class Prefs { String QS_TILE_SPECS_REVEALED = "QsTileSpecsRevealed"; String QS_HAS_TURNED_OFF_MOBILE_DATA = "QsHasTurnedOffMobileData"; String TOUCHED_RINGER_TOGGLE = "TouchedRingerToggle"; - String QUICK_STEP_INTERACTION_FLAGS = "QuickStepInteractionFlags"; String HAS_SEEN_ODI_CAPTIONS_TOOLTIP = "HasSeenODICaptionsTooltip"; } diff --git a/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java index 3ace7050c743a..5a8d9484536a6 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java +++ b/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java @@ -22,9 +22,6 @@ import static android.view.MotionEvent.ACTION_DOWN; import static android.view.MotionEvent.ACTION_UP; import static android.view.WindowManagerPolicyConstants.NAV_BAR_MODE_3BUTTON; -import static com.android.systemui.shared.system.NavigationBarCompat.FLAG_DISABLE_SWIPE_UP; -import static com.android.systemui.shared.system.NavigationBarCompat.FLAG_SHOW_OVERVIEW_BUTTON; -import static com.android.systemui.shared.system.NavigationBarCompat.InteractionType; import static com.android.systemui.shared.system.QuickStepContract.KEY_EXTRA_INPUT_MONITOR; import static com.android.systemui.shared.system.QuickStepContract.KEY_EXTRA_SUPPORTS_WINDOW_CORNERS; import static com.android.systemui.shared.system.QuickStepContract.KEY_EXTRA_SYSUI_PROXY; @@ -60,7 +57,6 @@ import android.view.accessibility.AccessibilityManager; import com.android.internal.policy.ScreenDecorationsUtils; import com.android.systemui.Dependency; import com.android.systemui.Dumpable; -import com.android.systemui.Prefs; import com.android.systemui.SysUiServiceProvider; import com.android.systemui.recents.OverviewProxyService.OverviewProxyListener; import com.android.systemui.shared.recents.IOverviewProxy; @@ -102,10 +98,6 @@ public class OverviewProxyService implements CallbackController { - for (int i = mConnectionCallbacks.size() - 1; i >= 0; --i) { - mConnectionCallbacks.get(i).onInteractionFlagsChanged(flags); - } - }); - } - } finally { - Prefs.putInt(mContext, Prefs.Key.QUICK_STEP_INTERACTION_FLAGS, mInteractionFlags); - Binder.restoreCallingIdentity(token); - } - } - @Override public Rect getNonMinimizedSplitScreenSecondaryBounds() { if (!verifyCaller("getNonMinimizedSplitScreenSecondaryBounds")) { @@ -360,12 +330,6 @@ public class OverviewProxyService implements CallbackController= 0; --i) { mConnectionCallbacks.get(i).onBackButtonAlphaChanged(alpha, animate); @@ -745,7 +695,6 @@ public class OverviewProxyService implements CallbackController