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

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

Move activity OOM adjustment computation to OomAdjuster

The logic for calculating the initial importance of processes with
activities (`computeOomAdjFromActivitiesIfNecessary`) has been
relocated. This functionality, previously in `ProcessStateRecord`,
is now within `OomAdjuster` via the new `OomAdjWindowCalculator`
inner class.

This change reduces the dependency of `ProcessStateRecord` on
`ProcessRecord` and centralizes the OOM adjustment logic within
`OomAdjuster` for better modularity.

Bug: 425766486
Test: atest MockingOomAdjusterTests
Flag: EXEMPT pure refactor

Change-Id: I6a540a50a7f826ca37218566f62afd29d52b93d8
parent 20780af5
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