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

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

am: Decouple ProcessRecord from OomAdjuster

This refactoring makes the OomAdjuster's methods
`computeServiceHostOomAdjLSP` and `computeProviderHostOomAdjLSP` using
`ProcessRecordInternal` instead of `ProcessRecord`.

To achieve that, it elevates `setTreatLikeActivity`,
`setPendingUiClean`, and `getApplicationUid` to abstract methods in
`ProcessRecordInternal` class.

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

Change-Id: I67233e38f97c668de858f6993dd9f8a498bd803f
parent a3faa4f7
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