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

Commit bddda13b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Enable launch boost for app launches with existing activity records"

parents 29852b5b 7da51c46
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -2744,6 +2744,19 @@ public final class ActivityStackSupervisor implements DisplayListener {
                }
                final ActivityRecord ar = stack.findTaskLocked(r);
                if (ar != null) {
                    /* Acquire perf lock during app launch for existing activity record. */
                    /* Acquire lock only in case app is killed/died. */
                    if(ar.state == ActivityState.DESTROYED ) {
                       if (mIsPerfBoostEnabled == true && mPerf == null) {
                           mPerf = new Performance();
                       }
                       if (mPerf != null) {
                           mPerf.perfLockAcquire(lBoostTimeOut, lBoostPcDisblBoost, lBoostSchedBoost,
                                                 lBoostCpuBoost, lBoostCpuNumBoost, lBoostKsmBoost,
                                                 lBoostSmTaskBoost, lBoostIdleLoadBoost,
                                                 lBoostIdleNrRunBoost, lBoostPreferIdle);
                       }
                    }
                    return ar;
                }
            }