Reland OomAdjuster: demote previous process to cached after configurable timeout

Previous processes shouldn't stay out of cached indefinitely; they
should be eventually moved to cached and allowed to be restricted and
frozen. Add a configurable timeout to decide when the previous app
should move to cached.

The default timeout is 60s.

Reverts change bb195e7af6b6d4c69def28cfd5c9225ff08a819d.

Bug: 261065790
Test: atest MockingOomAdjusterTests

Change-Id: I0494059976275cab309a5353bfef608da796bd2f
Merged-in: I0494059976275cab309a5353bfef608da796bd2f
2 files changed