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

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

psc: Move hasAboveClient to ProcessRecordInternal

This change refactors `OomAdjuster.setIntermediateAdjLSP` to use
`ProcessRecordInternal` instead of `ProcessRecord`.

To support this, `hasAboveClient()` is introduced as an abstract
method in `ProcessRecordInternal`, with `ProcessRecord` overriding it
to delegate to `ProcessServiceRecord`'s `hasAboveClient()`.
This is a temporary measure for ongoing refactoring.

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

Change-Id: I1dc3353005776a36a341d0fb5384ffb31707df66
parent 1ccb65c2
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