Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2db5f9c2 authored by Kazuki Takise's avatar Kazuki Takise
Browse files

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
parent e8c0fd8f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment