summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorZak Cohen <zakcohen@google.com>2020-01-24 03:57:54 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-01-24 03:57:54 +0000
commit43d858805b1f2e965c19f575c14a2765a898b35c (patch)
treebba19fce130011700f93ae147e0b9b481818a60c /core/java/android
parentfc6d7d2931a05b3ec711c88171e4e26edd2d680c (diff)
parentebd3b8b1e97ec8304bf96bb545f76065727e294a (diff)
Merge "Screenshot helper - add method that allows the caller to supply bitmap."
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/view/WindowManager.java39
1 files changed, 37 insertions, 2 deletions
diff --git a/core/java/android/view/WindowManager.java b/core/java/android/view/WindowManager.java
index c8dea43e8f4c..55c298e2a92b 100644
--- a/core/java/android/view/WindowManager.java
+++ b/core/java/android/view/WindowManager.java
@@ -497,13 +497,48 @@ public interface WindowManager extends ViewManager {
* Message for taking fullscreen screenshot
* @hide
*/
- final int TAKE_SCREENSHOT_FULLSCREEN = 1;
+ int TAKE_SCREENSHOT_FULLSCREEN = 1;
/**
* Message for taking screenshot of selected region.
* @hide
*/
- final int TAKE_SCREENSHOT_SELECTED_REGION = 2;
+ int TAKE_SCREENSHOT_SELECTED_REGION = 2;
+
+ /**
+ * Message for handling a screenshot flow with an image provided by the caller.
+ * @hide
+ */
+ int TAKE_SCREENSHOT_PROVIDED_IMAGE = 3;
+
+ /**
+ * Parcel key for the screen shot bitmap sent with messages of type
+ * {@link #TAKE_SCREENSHOT_PROVIDED_IMAGE}, type {@link android.graphics.Bitmap}
+ * @hide
+ */
+ String PARCEL_KEY_SCREENSHOT_BITMAP = "screenshot_screen_bitmap";
+
+ /**
+ * Parcel key for the screen bounds of the image sent with messages of type
+ * [@link {@link #TAKE_SCREENSHOT_PROVIDED_IMAGE}], type {@link Rect} in screen coordinates.
+ * @hide
+ */
+ String PARCEL_KEY_SCREENSHOT_BOUNDS = "screenshot_screen_bounds";
+
+ /**
+ * Parcel key for the task id of the task that the screen shot was taken of, sent with messages
+ * of type [@link {@link #TAKE_SCREENSHOT_PROVIDED_IMAGE}], type int.
+ * @hide
+ */
+ String PARCEL_KEY_SCREENSHOT_TASK_ID = "screenshot_task_id";
+
+ /**
+ * Parcel key for the visible insets of the image sent with messages of type
+ * [@link {@link #TAKE_SCREENSHOT_PROVIDED_IMAGE}], type {@link android.graphics.Insets} in
+ * screen coordinates.
+ * @hide
+ */
+ String PARCEL_KEY_SCREENSHOT_INSETS = "screenshot_insets";
/**
* @hide