diff options
| author | 2022-11-14 14:20:19 -0700 | |
|---|---|---|
| committer | 2022-11-14 14:26:59 -0700 | |
| commit | 89d87f04bc5edf0439d997fdb391fa6f667a23bc (patch) | |
| tree | 7ae962a320132249c7a9ed8d600681e4b49ba9e9 /libs/androidfw/ResourceUtils.cpp | |
| parent | 81d66e9d7704274157176ca8ad8458474608c269 (diff) | |
BroadcastQueue: fix subtle soft/hard timeout bug.
deliveryTimeoutSoftLocked() had been using mConstants.TIMEOUT for
clamping purposes, but that always ended up being the foreground
timeout, even for background broadcasts.
Fix this bug by passing through the actual ANR timeout value used,
and apply that for clamping purposes, making sure we're always
willing to up to double the original timeout.
Bug: 258204427
Test: atest FrameworksMockingServicesTests:BroadcastRecordTest
Test: atest FrameworksMockingServicesTests:BroadcastQueueTest
Test: atest FrameworksMockingServicesTests:BroadcastQueueModernImplTest
Change-Id: I8414630db0b7a7d6ea8df86931220ce6c5fc1671
Diffstat (limited to 'libs/androidfw/ResourceUtils.cpp')
0 files changed, 0 insertions, 0 deletions