summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Johannes Gallmann <gallmann@google.com> 2023-01-18 10:53:26 +0100
committer Johannes Gallmann <gallmann@google.com> 2023-02-22 19:31:09 +0000
commit688ffd09dc61d4bc7df793cad1b6e6d9ef3b327c (patch)
tree5d280f095a404478e12350474c17a082cd2b80ca /api/api_test.go
parent6b7afc234e0e713cd2124aaa6420e888e8195ecd (diff)
Handle replacement of StatusChips in SystemStatusAnimationScheduler
This CL contains a refactoring of SystemStatusAnimationScheduler to allow cancellation of StatusEvents in order to replace them with higher priority status events. Because the DelayableExecutor does not provide any cancellation functionality, I replaced the Executor based logic of scheduling animations with coroutines. Additionally, prepareChipAnimation() (in SystemEventChipAnimationController) does no longer need to be called one layout pass before the chip appear animation is started. The appear animation can now be started immediately after calling prepareChipAnimation(). Both changes are only in effect when the PLUG_IN_STATUS_BAR_CHIP flag is enabled. Bug: 197638244 Test: separate CL (ag/20982130) Change-Id: Ice296b0b9950d6ceac83aa8df7652552acfdf971
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions