summaryrefslogtreecommitdiff
path: root/tools/codegen/src
diff options
context:
space:
mode:
author Brett Chabot <brettchabot@google.com> 2025-01-21 21:29:56 +0000
committer Brett Chabot <brettchabot@google.com> 2025-01-21 21:57:37 +0000
commitd96404938b08d25c553681dd8b5c30aa872d259b (patch)
tree0d98849a814ee1b5e31a20d264eeda2812b22677 /tools/codegen/src
parenta51dcf16d3b3b6e26a951e23fe5944f51064c072 (diff)
Simplify behavior of TestLooperManager#isBlockedOnSyncBarrier.
Previously isBlockedOnSyncBarrier would only return true if the corresponding queue had a sync barrier as the next message, AND a another message was waiting to be executed. This is problematic for espresso (and I'd argue non-intuitive), which uses isBlockedOnSyncBarrier to determine if queue is idle or not. The presence of a sync barrier should make the queue idle. This commit simplifies the definition and implementation of isBlockedOnSyncBarrier to strictly mean 'the next message in the queue is a sync barrier'. Flag: android.os.message_queue_testability Test: atest TestLooperManagerTest Bug: 112000181 Change-Id: I443d3c8ed8d439f058136d55f70c9b8c2c444149
Diffstat (limited to 'tools/codegen/src')
0 files changed, 0 insertions, 0 deletions