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

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

Decouple ProcessStateRecord from ProcessRecord

Introduce interfaces to decouple ProcessStateRecord from direct
dependencies on ProcessRecord and ActivityManagerService.
- ProcessRecord now implements ProcessStateRecord.StatePuller
  to provide necessary info for OOM adjustment calculations.
- ProcessProfileRecord implements
  ProcessStateRecord.StartedServiceObserver
  to react to changes in component-related states (activities, services,
  broadcasts) and update hosting component types accordingly.

Bug: 425766486
Test: mmm frameworks/base/services/
Test: atest MockingOomAdjusterTests
Flag: EXEMPT pure refactor

Change-Id: I996ceb3418b9bcf1c77d3e89f09510bbc536fa58
parent 7400289b
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