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

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

am: Move modifyRawOomAdj to OomAdjuster

The `modifyRawOomAdj` method, used for OOM score adjustments based on
`BIND_ABOVE_CLIENT`, has been moved from `ProcessServiceRecord.java` to
`OomAdjuster.java`.

This method was exclusively used by `OomAdjuster` for OOM score
calculations. Moving it as a static helper in `OomAdjuster`
improves architectural clarity and reduces inter-module
dependencies. Call sites have been updated.

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

Change-Id: I4a6be982820315707e368e923dc31ffae4c893dd
parent 5ab3efcc
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