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

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

am: Delegate process freeze state updates to callback

The logic for determining and applying process freeze and unfreeze
actions has been moved from `OomAdjuster.updateAppFreezeStateLSP`
to `OomAdjusterCallback.onProcessFreezabilityChanged`.

This refactoring improves modularity by delegating `CachedAppOptimizer`
interactions and related freezing logic to the `OomAdjusterCallback`.

Bug: 441178013
Test: m services.core
Test: atest MockingOomAdjusterTests OomAdjusterTests
Test: atest FrameworksServicesTestsRavenwood_ProcessStateController
Flag: EXEMPT PURE_REFACTOR

Change-Id: Ic70e34771a3af230cbf77bd2805035a255b276ce
parent c4baa0a3
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