Update AnrTimer statistics
The AnrTimer statistics that are collected by the native layer are now
reported in bug reports. Reporting via logcat has been removed.
The expired and extended statistics are now collected properly. To
simplify the code, global statistics are returned along with per-timer
statistics.
Tested by generating a bug report and verifying the AnrTimer section.
Test: atest
* FrameworksServicesTests:AnrTimerTest
* FrameworksServicesTests:com.android.server.am
* FrameworksMockingServicesTests:com.android.server.am
Flag: com.android.server.utils.anr_timer_service
Bug: 282428924
Change-Id: Ie96d953f8ce0368c203d2df3353dada3579d90b1
2 files changed