summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2022-08-08 16:19:46 -0600
committer Jeff Sharkey <jsharkey@android.com> 2022-10-06 10:47:50 -0600
commita6805188ff03b9f1f4fae3eb02aabd2ba13af4e0 (patch)
tree90c27c287b5a130aa902525f019d215e8570fdfd /libs/androidfw/StringPool.cpp
parent1740af5006f6e42d65d1fe1d6da4dee916c91b94 (diff)
Relax broadcast ANR timeouts based on run_delay.
When the majority of CPU resources are being consumed by other more-important tasks on the device, a broadcast receiver running at a lower priority could end up triggering the ANR deadline due to being starved for resources, which is unfair to that app. This change relaxes the broadcast ANR timeout relative to the amount of time a process was runnable-but-waiting, up to double the normal ANR timeout. Bug: 241829443 Test: atest FrameworksCoreTests:ProcessCpuTrackerTest Test: atest FrameworksMockingServicesTests:BroadcastQueueTest Test: atest FrameworksMockingServicesTests:BroadcastQueueModernImplTest Change-Id: I903c3fa16e4bd64f1660bd0fb2f221b7b82f3661
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions