summaryrefslogtreecommitdiffstats
path: root/go
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2019-07-10 14:05:58 -0700
committerSunny Goyal <sunnygoyal@google.com>2019-07-11 09:38:54 -0700
commitf11dd8e1077ca229e228afd6a39e7b22d12105f7 (patch)
tree429ac0ab20390e433dd5c8684aa10978d639f2b5 /go
parent24fbe81e994562be2f3ada4ac72414d34cc31c3b (diff)
downloadandroid_packages_apps_Trebuchet-f11dd8e1077ca229e228afd6a39e7b22d12105f7.tar.gz
android_packages_apps_Trebuchet-f11dd8e1077ca229e228afd6a39e7b22d12105f7.tar.bz2
android_packages_apps_Trebuchet-f11dd8e1077ca229e228afd6a39e7b22d12105f7.zip
Using a higher priority executor than BackgroundExecutor for various recents tasks
BackgroundExecutor is also using thread pool executor where the order is perserved Change-Id: Ieef8825599f35fe22da3e9adb1270c5525449d62
Diffstat (limited to 'go')
-rw-r--r--go/quickstep/src/com/android/quickstep/TouchInteractionService.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/go/quickstep/src/com/android/quickstep/TouchInteractionService.java b/go/quickstep/src/com/android/quickstep/TouchInteractionService.java
index 900b94e18..c902826ed 100644
--- a/go/quickstep/src/com/android/quickstep/TouchInteractionService.java
+++ b/go/quickstep/src/com/android/quickstep/TouchInteractionService.java
@@ -34,6 +34,8 @@ import android.view.MotionEvent;
import com.android.launcher3.Utilities;
import com.android.launcher3.compat.UserManagerCompat;
+import com.android.launcher3.util.LooperExecutor;
+import com.android.launcher3.util.UiThreadHelper;
import com.android.systemui.shared.recents.IOverviewProxy;
import com.android.systemui.shared.recents.ISystemUiProxy;
@@ -137,6 +139,9 @@ public class TouchInteractionService extends Service {
return sConnected;
}
+ public static final LooperExecutor BACKGROUND_EXECUTOR =
+ new LooperExecutor(UiThreadHelper.getBackgroundLooper());
+
private RecentsModel mRecentsModel;
private OverviewComponentObserver mOverviewComponentObserver;
private OverviewCommandHelper mOverviewCommandHelper;