Extend ANR timer to ActiveServices
Implement SERVICE_TIMEOUT, SHORT_FGS_ANR_TIMEOUT, and
FOREGROUND_TIMEOUT with AnrTimer instances.
This also changes the AnrTimer.Error timestamp to be a long
(milliseconds since the epoch) instead of a string.
A few editorial updates were made to address comments from earlier
changes. Comments were updated in BroadcastQueueModernImpl and some
method names were changed in AnrTimer.
Test: atest
* FrameworksServicesTests:com.android.server.am
* FrameworksMockingServicesTests:com.android.server.am
* CtsAppTestCases
Bug: 282428924
Change-Id: I0ff70a9d5b7d4e2b66125aaedebf4bc0064f871c
4 files changed