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

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

psc: UidRecordInternal manages ProcessRecordInternal directly

This change renames UidStateRecord to UidRecordInternal, and moves
process management methods (addProcess, removeProcess,
getProcessRecordByIndex) from UidRecord to UidRecordInternal. This allows
UidRecordInternal to directly manage ProcessRecordInternal instances,
improving abstraction within the Process State Controller (PSC).

UidRecord now overrides these methods, casting to ProcessRecord
where necessary, as it holds specific ProcessRecord objects.

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

Change-Id: I555afda45c9770835d3ae290b3697dbb4549651d
parent 52aa1cc1
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