diff options
| author | Jordan Liu <jminjie@google.com> | 2018-03-09 16:20:09 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-03-09 16:20:09 +0000 |
| commit | f5b680c82a9af63d3e843aa5b34814ff12bc26cd (patch) | |
| tree | d8f3cd94c47225ec7c700210a0c737e9ae025d21 /core/java/android | |
| parent | fe118cfd101c3055a47df6db276810105d1018e7 (diff) | |
| parent | d143760239f794b45cf8a88a5249cc2cfe311c64 (diff) | |
Merge "Support ENVELOPE (EVENT DOWNLOAD - User activity) command"
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/view/IWindowManager.aidl | 6 | ||||
| -rw-r--r-- | core/java/android/view/WindowManagerPolicy.java | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/core/java/android/view/IWindowManager.aidl b/core/java/android/view/IWindowManager.aidl index e576a0fbdb2b..79f42df1f4ca 100644 --- a/core/java/android/view/IWindowManager.aidl +++ b/core/java/android/view/IWindowManager.aidl @@ -397,4 +397,10 @@ interface IWindowManager * Return the touch region for the current IME window, or an empty region if there is none. */ Region getCurrentImeTouchRegion(); + + /** + * Requests that the WindowManager sends WindowManagerPolicy#ACTION_USER_ACTIVITY_NOTIFICATION + * on the next user activity. + */ + void requestUserActivityNotification(); } diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java index c4ffb4c06a26..8e4f5b4b830d 100644 --- a/core/java/android/view/WindowManagerPolicy.java +++ b/core/java/android/view/WindowManagerPolicy.java @@ -159,6 +159,12 @@ public interface WindowManagerPolicy { public final static boolean WATCH_POINTER = false; /** + * Broadcast sent when a user activity is detected. + */ + public final static String ACTION_USER_ACTIVITY_NOTIFICATION = + "android.intent.action.USER_ACTIVITY_NOTIFICATION"; + + /** * Sticky broadcast of the current HDMI plugged state. */ public final static String ACTION_HDMI_PLUGGED = "android.intent.action.HDMI_PLUGGED"; @@ -1741,4 +1747,10 @@ public interface WindowManagerPolicy { * @return true if ready; false otherwise. */ boolean canDismissBootAnimation(); + + /** + * Requests that the WindowManager sends WindowManagerPolicy#ACTION_USER_ACTIVITY_NOTIFICATION + * on the next user activity. + */ + public void requestUserActivityNotification(); } |
