diff options
| author | 2024-04-24 17:02:15 -0700 | |
|---|---|---|
| committer | 2024-04-29 07:21:37 -0700 | |
| commit | 43e5414039186a2f9f40d91868d37a4bed8cd3fc (patch) | |
| tree | 5e3785630b19fb45988deb102b40fca29a052dd5 /libs/input/SpriteController.cpp | |
| parent | 582b66b921884c083d953afdacd4f506162aabaf (diff) | |
Small reflow of the AnrTimer class
The AnrTimer class is now abstract and requires two methods when
instantiated with a type V. The methods extract a Linux pid and uid
from an object of type V. The public start() method, which used to
take an explicit pid and uid now computes the necessary pid/uid from
the supplied instance of V.
It is permitted to for the pid/uid methods to simply return 0, to
indicate that there is no value.
This change allows AnrTimer clients to compute pid/uid as necessary,
without storing the information in the AnTimer system itself.
Test: atest
* FrameworksServicesTests:com.android.server.am
* FrameworksMockingServicesTests:com.android.server.am
* FrameworksServicesTests:AnrTimerTest
Flag: com.android.server.utils.anr_timer_service
Bug: 325594551
Change-Id: Ifc7779ce23d0884a7943b52d16aadc1419db96b7
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions