From f66ee4db5a012bb60116cf4578206baf590b7893 Mon Sep 17 00:00:00 2001 From: Vinit Nayak Date: Thu, 6 Apr 2023 19:05:54 -0700 Subject: [PATCH] Rebind OverviewProxyService for only TouchInteractionService component * Currently we re-bind for all launcher package changes * We don't need to for tests (ex. component TestInformationProvider) Bug: 266716173 Test: Added logging and disabled/enabled TIS via adb shell pm disable com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService Change-Id: Idcc8ac5129881ddd78145b3d365728f92cdf7b3c --- .../recents/OverviewProxyService.java | 44 +++++++++++++------ 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java index cffe45fadaa3a..0be8d1e75de13 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java +++ b/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java @@ -16,6 +16,7 @@ package com.android.systemui.recents; +import static android.content.Intent.ACTION_PACKAGE_ADDED; import static android.content.Intent.EXTRA_CHANGED_COMPONENT_NAME_LIST; import static android.content.pm.PackageManager.MATCH_SYSTEM_ONLY; import static android.view.MotionEvent.ACTION_CANCEL; @@ -48,6 +49,7 @@ import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.ServiceConnection; +import android.content.pm.ResolveInfo; import android.graphics.Region; import android.hardware.input.InputManager; import android.hardware.input.InputManagerGlobal; @@ -114,6 +116,7 @@ import dagger.Lazy; import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; +import java.util.Objects; import java.util.Optional; import java.util.concurrent.CountDownLatch; import java.util.concurrent.Executor; @@ -393,20 +396,29 @@ public class OverviewProxyService implements CallbackController