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

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

psc: Migrate ProcessRecord freeze APIs to ProcessRecordInternal

The `shouldNotFreeze()`, `setShouldNotFreeze()`, and
`shouldNotFreezeReason()` methods are now abstract methods in
`ProcessRecordInternal`. `ProcessRecord` implements these methods by
delegating to its `ProcessCachedOptimizerRecord` (`mOptRecord`).

This change unblocks `OomAdjuster.computeServiceHostOomAdjLSP()` to use
`ProcessRecordInternal` for its `client` parameter.

Bug: 425766486
Test: m services.core
Test: atest MockingOomAdjusterTests OomAdjusterTests
Test: atest FrameworksServicesTestsRavenwood_ProcessStateController
Flag: EXEMPT pure refactor

Change-Id: If0f0bdae6f7770586f8b1575fc10e3d3ce7d6f0f
parent d04c367e
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