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
Loading
Please register or sign in to comment