Skip to content
Commit 7d7c8abe authored by Robert Carr's avatar Robert Carr
Browse files

TaskOrganizer: Implement lifetime changes for testing.

Here we implement three new lifetime semantics:
1. If there is a TaskOrganizer registered for a given windowing mode but
   a second organizer is registered, the first organizer will no longer be
   totally deregistered. It will no longer receive new tasks but will continue
   to manage its old Tasks. This lets us run CTS tests that test TaskOrganizer
   without totally breaking SysUI.
2. Implement unregisterTaskOrganizer, if you unregister the organizer it's
   just finished. SysUI probably wont use but CTS will.
3. Implement a sort of registration chaining semantic. When unregistering
   an organizer, the controller will attempt to restore the previous
   organizer for the given windowing mode. This means that when CTS tests
   unregister themselves SysUI can return to control.

Test: TaskOrganizerTests
Bug: 139371701
Change-Id: Ide240c707755b279ce6316f50ca8e023e38b7d66
parent 0e33c62e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment