diff options
| author | 2022-10-25 16:31:08 -0600 | |
|---|---|---|
| committer | 2022-10-26 13:14:43 +0000 | |
| commit | 7e72d90e58ad0c5ad6695bac1951eb0afe89423d (patch) | |
| tree | 09a240ad0c9d5ffce5446c515b3bd5ce739a607f /libs/androidfw/StringPool.cpp | |
| parent | dd09e2ad7033da293b9d278147d625bfaa8561cc (diff) | |
BroadcastQueue: make "oneway" calls non-blocking.
When an IApplicationThread instance is hosted by the system_server
process, our various schedule-broadcast calls are dispatched as
blocking methods (with the AMS lock held!!), instead of matching the
expected "oneway" contract.
This change offers ProcessRecord.getOnewayThread() which dispatches
calls through FgThread using SameProcessApplicationThread, which
starts with initial support for broadcast-related methods, but could
be expanded in the future where needed.
Bug: 255532202
Test: atest FrameworksMockingServicesTests:BroadcastRecordTest
Test: atest FrameworksMockingServicesTests:BroadcastQueueTest
Test: atest FrameworksMockingServicesTests:BroadcastQueueModernImplTest
Change-Id: I7fb2a7353c44c29cda94e00fc87b8cff6ffc0008
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions