From 1e71ba5b981869cf471d707aaafb31d998db7380 Mon Sep 17 00:00:00 2001 From: vadimt Date: Fri, 4 Dec 2020 14:18:52 -0800 Subject: [PATCH 1/5] Moving removing task after QS to a background thread. Blocking binder call was creating jank. Test: manual, presubmit Bug: 173467481, 173072373 Change-Id: Ib19d2a97ed8cf3e9763008b042ef48d89532cb58 --- .../com/android/quickstep/RecentsAnimationController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/quickstep/RecentsAnimationController.java b/quickstep/src/com/android/quickstep/RecentsAnimationController.java index 7de658c9d3..bc5e18dab1 100644 --- a/quickstep/src/com/android/quickstep/RecentsAnimationController.java +++ b/quickstep/src/com/android/quickstep/RecentsAnimationController.java @@ -16,6 +16,7 @@ package com.android.quickstep; import static com.android.launcher3.util.Executors.MAIN_EXECUTOR; +import static com.android.launcher3.util.Executors.THREAD_POOL_EXECUTOR; import static com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR; import android.graphics.Rect; @@ -96,8 +97,8 @@ public class RecentsAnimationController { * {@link RecentsAnimationCallbacks#onTaskAppeared(RemoteAnimationTargetCompat)}}. */ @UiThread - public boolean removeTaskTarget(@NonNull RemoteAnimationTargetCompat target) { - return mController.removeTask(target.taskId); + public void removeTaskTarget(@NonNull RemoteAnimationTargetCompat target) { + THREAD_POOL_EXECUTOR.execute(() -> mController.removeTask(target.taskId)); } @UiThread From f4b60d5f9c7023e35b2790409e6f929fbbf19a2b Mon Sep 17 00:00:00 2001 From: Hongwei Wang Date: Tue, 17 Nov 2020 15:57:38 -0800 Subject: [PATCH 2/5] Add ROTATE_SURFACE_FLINGER permission to Launcher This permission is requried for arbitrary rotation (other than 90 degreee) on a Surface. Which is useful for Launcher to rotate the app leash when animating from fullscreen landscape to PiP window onto home in portrait mode. Bug: 171802909 Test: m -j Change-Id: I09e3b2915c17154ef3c91aff888a391dc337a18a --- AndroidManifest-common.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AndroidManifest-common.xml b/AndroidManifest-common.xml index a47a500b8e..9e76ce35cb 100644 --- a/AndroidManifest-common.xml +++ b/AndroidManifest-common.xml @@ -40,6 +40,8 @@ + +