Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8ee8184 authored by Lee Shombert's avatar Lee Shombert
Browse files

Support expired timer information in AnrTimer

When an AnrTimer expires, useful information is saved in an
ExpiredTimer object.  The object is mapped to the timer ID of the
expired timer.  If the timer is discarded, the ExpiredTimer object is
cleaned up along with other associated information.  If the timer is
accepted, the ExpiredTimer object is attached to the TimeoutRecord
(and is then cleaned up).

This CL creates ExpiredTimer as a handle for information.  It does not
add any information.

New unit tests validate that discard/accept behavior.

Flag: EXEMPT refactor
Bug: 407584606
Test: atest
 * FrameworksServicesTests:AnrTimerTest
 * FrameworksServicesTests:com.android.server.am
 * FrameworksMockingServicesTests:com.android.server.am
Change-Id: I74a5f77e89df4e29d4548512c88853e9b87520c7
parent 378497f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment