diff options
| author | 2022-12-02 15:55:47 -0800 | |
|---|---|---|
| committer | 2022-12-12 22:55:43 -0800 | |
| commit | 6eb501e6c6766c71b7446651f58964ee9042474d (patch) | |
| tree | c1e3d138d79a6d39d1eb9635be1ea296feaa7c24 /libs/androidfw/StringPool.cpp | |
| parent | dfda68c115cac3210c34f3e7783b3a61c945b77b (diff) | |
Move Lifecycle out of DreamOverlayModule.
Lifecycle is used by both dreams and complications to understand their
current state. The lifecycles of these two components can be the same,
such as when the complications are part of the dream overlay. However,
it is possible the lifecycles can be unrelated in the future, such as
complications being hosted in another SystemUI surface.
This changelist addresses this possibility by moving the current
lifecycle out of the DreamOverlayModule and instead injecting it into
the DreamOverlayService. In the case the service creates the
complication layer, this lifecycle will be bound to the appropriate
component. This change also introduces a concrete implementation of
LifecycleOwner, which exposes the registry.
Test: atest DreamOverlayServiceTest
Bug: 261781069
Change-Id: Ic04f62a89405b835c397b1ce348780d8aa2f05c1
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions