commit | 1cc196a90e192e78f14a7dcc948aa3fa3ea73ff8 | [log] [tgz] |
---|---|---|
author | Matt Pietal <mpietal@google.com> | Wed Jan 10 19:44:13 2024 +0000 |
committer | Matt Pietal <mpietal@google.com> | Wed Jan 10 20:20:34 2024 +0000 |
tree | 20bdda744bbed417ef6e35df5afa80fd3c4dbb03 | |
parent | a5dcf9e3fc951029c828c2c300f6cd13da9cdc88 [diff] |
Optimize animation flows As more code uses keyguard transition animations, more and more continuations are piling up on the main thread, with that vast majority of them rerunning the same Flow over and over. This introduces intermediate SharedFlows in KeyguardTransitionAnimationFlow. Each transition is an Edge in the graph, and each Edge now has a dedicated SharedFlow object on which they can collect very specific events. Bug: 318582599 Test: atest com.android.systemui.keyguard.ui Flag: N/A - Fixes baseline jank issues Change-Id: I5f9ec5f52e36e86b640f21924c874c7d0e70fc55