summaryrefslogtreecommitdiff
path: root/libs/androidfw/PosixUtils.cpp
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2022-09-21 12:09:07 -0600
committer Jeff Sharkey <jsharkey@android.com> 2022-09-23 16:53:00 -0600
commitc6dde4f882ddd8da207d9c9a958c661a4b0bc253 (patch)
treef97156aceb7563dec45e7251af151e7c6165b8c7 /libs/androidfw/PosixUtils.cpp
parent125e36870b8370ef335eb199a01baa06d1fe6492 (diff)
BroadcastQueue: remove matching broadcasts.
There are common broadcasts that should remove any still-pending broadcasts of a particular flavor. For example, sending SCREEN_ON should remove any still-pending SCREEN_OFF broadcasts. This change adds a BroadcastOption to support this use-case, along with tests to validate, and starts wiring up the option to a handful of straightforward broadcasts. For this to work effectively, we need to actually remove skipped events from our per-process queues, which means we need a more robust way of finishing ordered broadcasts. This change factors out the "finishing" of each broadcast to a local setDeliveryState() method which can then be invoked when a broadcast is removed. Bug: 245771249 Test: atest FrameworksMockingServicesTests:BroadcastQueueTest Change-Id: I8c81893841026074ef78d88f9ecc82518164e50e
Diffstat (limited to 'libs/androidfw/PosixUtils.cpp')
0 files changed, 0 insertions, 0 deletions