diff options
author | Riddle Hsu <riddlehsu@google.com> | 2020-03-26 20:22:22 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2020-03-31 12:08:45 +0800 |
commit | f9a2c04f2ba965815a4a9fe8bfec6f19bd8ab2e7 (patch) | |
tree | 21bae443e0c3ca5f86664974650bf12b6e263a77 /tools/stats_log_api_gen/java_writer.cpp | |
parent | 8927986f3bcbf3c64e1f3cdbc6032e90814daa75 (diff) |
Handle ANR in a separate thread
So the ActivityManager and InputDispatcher thread won't be delayed,
e.g. process next broadcast, input event.
The thread handles ANR sequentially and is only alive if there is ANR.
If system is very slow to handle ANR which has delayed over 1 minute,
only the traces of no response process will be dumped to reduce load.
Bug: 143573504
Test: atest FrameworksServicesTests:AnrHelperTest
FrameworksServicesTests:ProcessRecordTests
CtsAppTestCases:ActivityManagerTest#testAppNotResponding
Change-Id: I892ea60665f072bf7673f7af96f5f1a734aa540c
Diffstat (limited to 'tools/stats_log_api_gen/java_writer.cpp')
0 files changed, 0 insertions, 0 deletions