Skip to content
Commit 4b5ce492 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Use "frozen" state for broadcasts.

We originally had been using registerUidObserver() to observe changes
to the "cached" state changes of apps, since that's all we had at
the time.  Since then, registerUidFrozenStateChangedCallback() has
been added, so this change pivots to using that.

Even though we internally have the ability to control per-process
broadcast queues, both of these listeners only provide UID-level
granularity, so we follow their lead.  If the freezer team adds PID-
level events in the future, we can easily adapt.

Bug: 276243219, 275142200, 275594411
Test: atest FrameworksMockingServicesTests:BroadcastQueueTest
Test: atest FrameworksMockingServicesTests:BroadcastQueueModernImplTest
Test: atest FrameworksMockingServicesTests:BroadcastRecordTest
Change-Id: Ia33cca1034fba9225f1fdbe97c216f077c4d9dba
parent 646c4e0f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment