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

Commit f5bf5222 authored by David Stevens's avatar David Stevens
Browse files

Clean up logic for killing bg restricted apps

Clean up logic around killing cached processes in idle, background
restricted UIDs. ProcessStateRecord includes flags for marking a process
as exempt from this type of killing, but this functionality is not and
has never been used. Remove the flags that are always false to simplify
the code. Also, rename mLastCanKillOnBgRestrictedAndIdleTime to
mLastCachedTime, since that is what it's actually tracking.

Test: atest ActivityManagerTest#testKillAppIfBgRestrictedCachedIdle
Flag: EXEMPT refactor
Change-Id: I401661d4066404f44f17235114acddee311d29c3
parent 97370356
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