diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2018-02-23 01:23:40 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-02-23 01:23:40 +0000 |
commit | a12bd507d1d94ea326982629d3154c53aa0d7aac (patch) | |
tree | fc87e90cb27780ea616d527deca0c543daf5e889 /quickstep | |
parent | 9cbeced3e143ba183d7de84c6324788030595bb1 (diff) | |
parent | 8a7351fec6dbcc1f4312ef9e2ac43bf0e6ddd4d3 (diff) | |
download | android_packages_apps_Trebuchet-a12bd507d1d94ea326982629d3154c53aa0d7aac.tar.gz android_packages_apps_Trebuchet-a12bd507d1d94ea326982629d3154c53aa0d7aac.tar.bz2 android_packages_apps_Trebuchet-a12bd507d1d94ea326982629d3154c53aa0d7aac.zip |
Merge "Adding some trace logging around RecentsController" into ub-launcher3-master
Diffstat (limited to 'quickstep')
-rw-r--r-- | quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java | 5 | ||||
-rw-r--r-- | quickstep/src/com/android/quickstep/RecentsAnimationWrapper.java | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java b/quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java index 786ade38b..db50a0068 100644 --- a/quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java +++ b/quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java @@ -328,6 +328,7 @@ public class OtherActivityTouchConsumer extends ContextWrapper implements TouchC }); handler.initWhenReady(); + TraceHelper.beginSection("RecentsController"); Runnable startActivity = () -> ActivityManagerWrapper.getInstance() .startRecentsActivity(mHomeIntent, new AssistDataReceiver() { @@ -342,9 +343,11 @@ public class OtherActivityTouchConsumer extends ContextWrapper implements TouchC RemoteAnimationTargetCompat[] apps, Rect homeContentInsets, Rect minimizedHomeBounds) { if (mInteractionHandler == handler) { + TraceHelper.partitionSection("RecentsController", "Received"); handler.onRecentsAnimationStart(controller, apps, homeContentInsets, minimizedHomeBounds); } else { + TraceHelper.endSection("RecentsController", "Finishing no handler"); controller.finish(false /* toHome */); } @@ -360,6 +363,8 @@ public class OtherActivityTouchConsumer extends ContextWrapper implements TouchC } public void onAnimationCanceled() { + TraceHelper.endSection("RecentsController", + "Cancelled: " + mInteractionHandler); if (mInteractionHandler == handler) { handler.onRecentsAnimationCanceled(); } diff --git a/quickstep/src/com/android/quickstep/RecentsAnimationWrapper.java b/quickstep/src/com/android/quickstep/RecentsAnimationWrapper.java index 28229f6c0..4e1122074 100644 --- a/quickstep/src/com/android/quickstep/RecentsAnimationWrapper.java +++ b/quickstep/src/com/android/quickstep/RecentsAnimationWrapper.java @@ -15,6 +15,7 @@ */ package com.android.quickstep; +import com.android.launcher3.util.TraceHelper; import com.android.systemui.shared.system.BackgroundExecutor; import com.android.systemui.shared.system.RecentsAnimationControllerCompat; import com.android.systemui.shared.system.RemoteAnimationTargetCompat; @@ -31,6 +32,7 @@ public class RecentsAnimationWrapper { public synchronized void setController( RecentsAnimationControllerCompat controller, RemoteAnimationTargetCompat[] targets) { + TraceHelper.partitionSection("RecentsController", "Set controller " + controller); this.controller = controller; this.targets = targets; @@ -46,6 +48,8 @@ public class RecentsAnimationWrapper { public void finish(boolean toHome, Runnable onFinishComplete) { BackgroundExecutor.get().submit(() -> { synchronized (this) { + TraceHelper.endSection("RecentsController", + "Finish " + controller + ", toHome=" + toHome); if (controller != null) { controller.setInputConsumerEnabled(false); controller.finish(toHome); @@ -62,6 +66,8 @@ public class RecentsAnimationWrapper { if (mInputConsumerEnabled) { BackgroundExecutor.get().submit(() -> { synchronized (this) { + TraceHelper.partitionSection("RecentsController", + "Enabling consumer on " + controller); if (controller != null) { controller.setInputConsumerEnabled(true); } |