diff options
| author | 2024-09-18 07:39:26 +0900 | |
|---|---|---|
| committer | 2024-09-26 17:44:35 +0900 | |
| commit | 2db5f9c2290a3a420d0f29e055812dc66ea5f0d8 (patch) | |
| tree | dbd1022518cfa697f2c7ca4fb6379668eb6da895 /libs/androidfw/StringPool.cpp | |
| parent | e8c0fd8f96fab06b556ed1c04f7fff6c3d18e1e1 (diff) | |
Implement listener for display focus in WMShell
This is the main implementation of the focused display project
on the WMShell side. The main logic is in FocusTransitionObserver,
which has the following functionalities:
- Provides a listener system for display focus to other components
in the same process (e.g. SystemUI) via FocusTransitionListener and
ShellTransitions.
- Provides a listener system for display focus to components
outside of the process (e.g. Launcher) via IFocusTransitionListener
and IShellTransitions.
- Observes all shell transitions, catch display focus changes, and
notify the listeners.
For now, FocusTransitionObserver assumes that display focus change
only happens with one of the following changes in a transition:
- A change with FLAG_MOVED_TO_TOP
- A change that has newly got focus on the display
Bug: 356109871
Flag: com.android.window.flags.enable_display_focus_in_shell_transitions
Test: FocusTransitionObserverTest
Change-Id: If503e24de2420e1298153edcee9eaec2bc4d58ba
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions