summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorVishnu Nair <vishnun@google.com>2020-09-10 15:46:52 -0700
committerVishnu Nair <vishnun@google.com>2020-09-15 14:48:13 -0700
commit204c023ae2fd775bdca8247ef16c4601821a7328 (patch)
tree5a554ad1a83a557a83ead6a6d570e41d5c79675c /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent38cc1531f3f52a35dcb8435bd90b677c91574b35 (diff)
Add focus support for SurfaceControlViewHost
This change introduces a new call for clients to request focus on their embedded views. In order to accomplish this, the owner of the SurfacePackage sends an input token that can identify the input channel of the embedded window. This token is forwarded as part of the focus request. WindowManager will authenticate the calling window and the relationship between the host and the embedded window. Once authenticated, the request will be forwarded to InputDispatcher. InputDispatcher will grant the focus to the SurfaceControlViewHost if the host window is currently focused or transfer focus back to the host window if the SurfaceControlViewHost is focused. Otherwise the request is dropped. In addition, SurfaceView, the host in this scenario, now overrides the onFocused function to transfer focus to and from the embedded view. Test: atest SurfaceControlViewHostTests Bug: 151179149 Change-Id: Ia95545a60d73db4c03679bce9747d2e275806838
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions