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

Commit 0eea7045 authored by Marco Ballesio's avatar Marco Ballesio
Browse files

freezer: increase timeout to 5 mins

Some apps might still be performing leftover work after being
backgrounded. Considering possible latencies due to CPU preemption, and
in the effort to reduce the impact the app freezer has on legacy apps by
allowing them to a significant grace period, extend the freezer timeout to
5 mins.

Bug: 178023335
Test: manually verified that freeze time is increased to 5 minutes
Change-Id: I74c14288a66e9a54850c0ea2b70ef3b915c2ca82
parent 572c7f76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ public final class CachedAppOptimizer {
    static final int REPORT_UNFREEZE_MSG = 4;

    //TODO:change this static definition into a configurable flag.
    static final int FREEZE_TIMEOUT_MS = 10000;
    static final long FREEZE_TIMEOUT_MS = 600000;

    static final int DO_FREEZE = 1;
    static final int REPORT_UNFREEZE = 2;