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

Skip to content
Commit d8cdf426 authored by Jing Ji's avatar Jing Ji
Browse files

Fix the service binding skipOomAdj logic

We're skipping oom adj updates if it's a self-binding or a binding
from a less important process. The callsites of these skipped oom adj
updates are mainly around the bumpServiceExecutingLocked()
and the serviceDoneExecutingLocked(). The previous CL tried to
skip the oom adj updates in the latter one if it was skipped in the
former one - however there are some missing paths in the accounting
which caused the necessary oom adj update is skipped unexpectedly.
Now fix this issue.

Bug: 325586149
Bug: 325658306
Test: atest CtsAppBindingHostTestCases:AppBindingHostTest
Test: atest CtsAppTestCases:ActivityManagerTest
Test: atest \
FrameworksMockingServicesTests: ServiceBindingOomAdjPolicyTest
Change-Id: I47e49653eb4a5dc4f9ff59ae15d56ba615d9e7fc
parent ec6ff848
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