Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2a219054 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Unit tests for DEFERRAL_POLICY_UNTIL_ACTIVE.

Adding these local unit tests revealed a bug where setProcessCached()
was only being applied when a process had pending broadcasts, oops.

Now, when getOrCreateProcessQueue() creates a queue, it will read
the cached state from ProcessRecord.  Additionally, this migrates
onUidCachedChanged() to also read the same value to ensure it's
consistently applied.  (This additional granularity is more-correct
than always assuming all PIDs under a UID are in the same state.)

Bug: 269312428
Test: atest FrameworksMockingServicesTests:BroadcastQueueTest
Test: atest FrameworksMockingServicesTests:BroadcastQueueModernImplTest
Test: atest FrameworksMockingServicesTests:BroadcastRecordTest
Change-Id: Id6982f66abccdb0e90c8e41a874ff29816ed5c72
parent e801ab56
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