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

Skip to content
Commit 626554ef authored by Michael Wachenschwanz's avatar Michael Wachenschwanz
Browse files

Clean up OomAdjusterModernImpl

Reorganize OomAdjusterModernImpl for future changes.
Moved most logic into reusable helper methods and functional interface
implementations.

Reimplemented the reachable process collection step to use the same
code as the process traversal step. It is important that the traversal
algorithm for these two steps are identical (If the traversal step finds
a process the reachable step did not find, the wrong values could get
calculated).

Replaced the excluded client process collection step with just
evaluating the connections into the target and reachable processes.

Bug: 323376416
Test: atest MockingOomAdjusterTests
Change-Id: If61a700c092574b1fc3a7a456d89dd0e478d2672
parent 73c8cfce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment