summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2022-11-09 10:53:02 -0700
committer Jeff Sharkey <jsharkey@android.com> 2022-11-09 10:53:02 -0700
commit3e4b28028b32569fde64b2eb1803631363052add (patch)
tree2ee5ff4ecc2ad0faa9d6958a00e3e47a7dc4ce91 /libs/androidfw/StringPool.cpp
parent9bda383c489455e8c5295054ee2b07bf3802ffcc (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: I057f14f9c1055f99b5fd98e991a3d55cefcbd3bb
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions