diff options
| author | Yoshiaki Naka <yoshiaki.naka@sony.com> | 2017-09-15 15:24:34 +0900 |
|---|---|---|
| committer | Jordan Liu <jminjie@google.com> | 2018-03-08 17:02:38 -0800 |
| commit | d143760239f794b45cf8a88a5249cc2cfe311c64 (patch) | |
| tree | 16324b15f004a3041e648431f7d4739346392b70 /core/java | |
| parent | 36886b6f15adb1e3b047ec9243fdf108bb611a24 (diff) | |
Support ENVELOPE (EVENT DOWNLOAD - User activity) command
The terminal shall send the ENVELOPE (EVENT DOWNLOAD - User activity)
command to the UICC when some user activity like a key-press or touch is
detected if the user activity event is a part of the current event list.
This change allows the SIM Toolkit application to support that event.
Please refer to the specification of SET UP EVENT LIST command described
in ETSI TS 102.223.
Bug: 65884891
Test: Confirmed the expected seq 1.1 of ETSI TS 102.384 TC 27.22.4.16
Change-Id: I7d3faa09cd4625db53bcfe21f90570389a4ea037
Merged-In: I7d3faa09cd4625db53bcfe21f90570389a4ea037
Diffstat (limited to 'core/java')
| -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(); } |
