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
Loading
Please register or sign in to comment