From 21f6189cd5d3847f6a70c04c27904423c3c9c32c Mon Sep 17 00:00:00 2001 From: Zak Cohen Date: Tue, 2 Nov 2021 14:17:15 -0700 Subject: [PATCH] Add temporary logging to try and debug: b/202414125 Bug: 202414125 Test: Local Change-Id: I641f9877972f3f584e5fc618d89c65c52f0d1da0 --- quickstep/src/com/android/quickstep/SystemUiProxy.java | 3 +++ .../src/com/android/quickstep/util/ImageActionUtils.java | 4 ++++ src/com/android/launcher3/testing/TestProtocol.java | 1 + 3 files changed, 8 insertions(+) diff --git a/quickstep/src/com/android/quickstep/SystemUiProxy.java b/quickstep/src/com/android/quickstep/SystemUiProxy.java index d9319a9b00..b6f9d5846d 100644 --- a/quickstep/src/com/android/quickstep/SystemUiProxy.java +++ b/quickstep/src/com/android/quickstep/SystemUiProxy.java @@ -37,6 +37,7 @@ import android.view.RemoteAnimationAdapter; import android.view.RemoteAnimationTarget; import android.view.SurfaceControl; +import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.util.MainThreadInitializedObject; import com.android.launcher3.util.SplitConfigurationOptions; import com.android.systemui.shared.recents.ISystemUiProxy; @@ -444,6 +445,8 @@ public class SystemUiProxy implements ISystemUiProxy, } catch (RemoteException e) { Log.w(TAG, "Failed call handleImageBundleAsScreenshot"); } + } else if (TestProtocol.sDebugTracing) { + Log.d(TestProtocol.NO_SCREENSHOT, "sysuiproxy, no proxy available"); } } diff --git a/quickstep/src/com/android/quickstep/util/ImageActionUtils.java b/quickstep/src/com/android/quickstep/util/ImageActionUtils.java index de7dbd64f5..b0c68c550e 100644 --- a/quickstep/src/com/android/quickstep/util/ImageActionUtils.java +++ b/quickstep/src/com/android/quickstep/util/ImageActionUtils.java @@ -49,6 +49,7 @@ import androidx.core.content.FileProvider; import com.android.internal.app.ChooserActivity; import com.android.launcher3.BuildConfig; +import com.android.launcher3.testing.TestProtocol; import com.android.quickstep.SystemUiProxy; import com.android.systemui.shared.recents.model.Task; import com.android.systemui.shared.recents.utilities.BitmapUtil; @@ -77,6 +78,9 @@ public class ImageActionUtils { public static void saveScreenshot(SystemUiProxy systemUiProxy, Bitmap screenshot, Rect screenshotBounds, Insets visibleInsets, Task.TaskKey task) { + if (TestProtocol.sDebugTracing) { + Log.d(TestProtocol.NO_SCREENSHOT, "image action utils calling into sysuiproxy"); + } systemUiProxy.handleImageBundleAsScreenshot(BitmapUtil.hardwareBitmapToBundle(screenshot), screenshotBounds, visibleInsets, task); } diff --git a/src/com/android/launcher3/testing/TestProtocol.java b/src/com/android/launcher3/testing/TestProtocol.java index 5bf0342fcc..8cb7f539fc 100644 --- a/src/com/android/launcher3/testing/TestProtocol.java +++ b/src/com/android/launcher3/testing/TestProtocol.java @@ -122,4 +122,5 @@ public final class TestProtocol { public static final String TASK_VIEW_ID_CRASH = "b/195430732"; public static final String NO_DROP_TARGET = "b/195031154"; public static final String NULL_INT_SET = "b/200572078"; + public static final String NO_SCREENSHOT = "b/202414125"; }