Handle content insets for snapshots

Pass information about content insets of a snapshotted task to
SystemUI and use it there to correctly offset the snapshot
when drawing.

Test: Open app, go to recents, make sure app aligns before
and after the animation.
Bug: 31339431
Change-Id: I2ff9bd44534bd8f66b591385da1e1e3aec40b6c5
diff --git a/services/core/java/com/android/server/wm/TaskWindowContainerController.java b/services/core/java/com/android/server/wm/TaskWindowContainerController.java
index 1d598e7..0e4d048 100644
--- a/services/core/java/com/android/server/wm/TaskWindowContainerController.java
+++ b/services/core/java/com/android/server/wm/TaskWindowContainerController.java
@@ -16,6 +16,7 @@
 
 package com.android.server.wm;
 
+import android.app.ActivityManager.TaskSnapshot;
 import android.content.res.Configuration;
 import android.graphics.GraphicBuffer;
 import android.graphics.Rect;
@@ -242,7 +243,7 @@
     /**
      * @return a graphic buffer representing a screenshot of a task
      */
-    public GraphicBuffer getSnapshot() {
+    public TaskSnapshot getSnapshot() {
         synchronized (mWindowMap) {
             if (mContainer == null) {
                 Slog.w(TAG_WM, "getSnapshot: taskId " + mTaskId + " not found.");