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

Commit 4caffe81 authored by Chih-Yu Huang's avatar Chih-Yu Huang
Browse files

am: Migrate applyOomAdjLSP() to ProcessRecordInternal

This change refactors OomAdjuster.applyOomAdjLSP() to use
ProcessRecordInternal and its methods directly, rather than
casting to ProcessRecord.

To support this, several fields (mRenderThreadTid, mWaitingToKill)
and abstract methods (killLocked, toShortString, getNextPssTime,
setLastCpuTime) were moved from ProcessRecord to
ProcessRecordInternal. The OomAdjuster.Callback interface was
also updated to delegate these functionalities, aligning with
the Process State Controller (PSC) refactoring.

Bug: 441412109
Test: m services.core
Test: atest MockingOomAdjusterTests OomAdjusterTests
Test: atest FrameworksServicesTestsRavenwood_ProcessStateController
Flag: EXEMPT PURE_REFACTOR

Change-Id: I4f48d5025e07af52b5cd122b2476d902f6aaa283
parent 8bc51c25
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