Pass in window name along with focus request
Used for generating focus event logs and debug
logs.
Test: go/wm-smoke, check event logs and logcat
Change-Id: I7d96c706ea350ec122c254fb4c327756e8267df5
diff --git a/libs/input/android/FocusRequest.aidl b/libs/input/android/FocusRequest.aidl
index 303dd1c..8812d34 100644
--- a/libs/input/android/FocusRequest.aidl
+++ b/libs/input/android/FocusRequest.aidl
@@ -22,6 +22,7 @@
* Input channel token used to identify the window that should gain focus.
*/
IBinder token;
+ @utf8InCpp String windowName;
/**
* The token that the caller expects currently to be focused. If the
* specified token does not match the currently focused window, this request will be dropped.
@@ -30,6 +31,7 @@
* is.
*/
@nullable IBinder focusedToken;
+ @utf8InCpp String focusedWindowName;
/**
* SYSTEM_TIME_MONOTONIC timestamp in nanos set by the client (wm) when requesting the focus
* change. This determines which request gets precedence if there is a focus change request