summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Evan Rosky <erosky@google.com> 2023-10-18 16:55:00 -0700
committer Evan Rosky <erosky@google.com> 2023-10-24 11:51:35 -0700
commitfcbcaaded9449e79a60942dfc667dea166ba773d (patch)
treeb8f9e9d6c9a6b4a305113d08dc1a59319be6d259 /libs/androidfw/FileStream.cpp
parent989ac1dabbc4db681cbbd260b9a994f2fe06a255 (diff)
Add base impl of new ready tracker
This introduces a new ReadyTracker class based around tracking explicit conditions instead of an arbitrary set of heuristics mixed with legacy. Usage involves constructing a ReadyCondition and adding it to a transition's tracker. Once the condition is met, call `meet()` on the condition. The new ReadyTracker considers the transition ready if there was at-least one condition added and all the added conditions have been met. This is just the base implementation so it isn't really functional yet. This does add ready-conditions in most of the places where the old method's defer/continue were used. Bug: 294925498 Test: atest TransitionTests Change-Id: I6cbd9152d03e707e0e7134fa8ada2902e5af847e
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions