Merge "Add temporary logging to try and debug: b/202414125" into sc-v2-dev
This commit is contained in:
commit
427113fa58
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue