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

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

Merge "perf:Disable packing during new app launch"

parents 26d6f876 d6df14b0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2214,6 +2214,7 @@

    <!-- Whether cpu boost is enabled for AppLaunch -->
    <bool name="config_enableCpuBoostForAppLaunch">false</bool>
    <integer name="disablepacking_timeout_param">0</integer>
    <integer name="launchboost_timeout_param">0</integer>
    <integer name="launchboost_schedboost_param">0</integer>
    <integer name="launchboost_cpuboost_param">0</integer>
+1 −0
Original line number Diff line number Diff line
@@ -2269,6 +2269,7 @@

  <!-- cpu boost for AppLaunch -->
  <java-symbol type="bool" name="config_enableCpuBoostForAppLaunch" />
  <java-symbol type="integer" name="disablepacking_timeout_param" />
  <java-symbol type="integer" name="launchboost_timeout_param" />
  <java-symbol type="integer" name="launchboost_schedboost_param" />
  <java-symbol type="integer" name="launchboost_cpuboost_param" />
+6 −3
Original line number Diff line number Diff line
@@ -147,6 +147,7 @@ public final class ActivityStackSupervisor implements DisplayListener {
    public Performance mPerf = null;
    public boolean mIsPerfBoostEnabled = false;
    public int lBoostTimeOut = 0;
    public int lDisPackTimeOut = 0;
    public int lBoostCpuBoost = 0;
    public int lBoostSchedBoost = 0;
    public int lBoostPcDisblBoost = 0;
@@ -324,6 +325,8 @@ public final class ActivityStackSupervisor implements DisplayListener {
                   com.android.internal.R.integer.launchboost_schedboost_param);
           lBoostTimeOut = mService.mContext.getResources().getInteger(
                   com.android.internal.R.integer.launchboost_timeout_param);
           lDisPackTimeOut = mService.mContext.getResources().getInteger(
                   com.android.internal.R.integer.disablepacking_timeout_param);
           lBoostCpuBoost = mService.mContext.getResources().getInteger(
                   com.android.internal.R.integer.launchboost_cpuboost_param);
           lBoostPcDisblBoost = mService.mContext.getResources().getInteger(
@@ -2742,10 +2745,10 @@ public final class ActivityStackSupervisor implements DisplayListener {
       }
       if (mPerf != null) {
           if (DEBUG) Slog.d(TAG, "Acquiring perf lock Enter : ");
           mPerf.perfLockAcquire(lBoostTimeOut, lBoostPcDisblBoost, lBoostSchedBoost,
                                  lBoostCpuBoost, lBoostCpuNumBoost, lBoostKsmBoost,
                                  lBoostSmTaskBoost, lBoostIdleLoadBoost,
           mPerf.perfLockAcquire(lDisPackTimeOut,lBoostSmTaskBoost, lBoostIdleLoadBoost,
                                  lBoostIdleNrRunBoost, lBoostPreferIdle);
           mPerf.perfLockAcquire(lBoostTimeOut, lBoostPcDisblBoost, lBoostSchedBoost,
                                  lBoostCpuBoost, lBoostCpuNumBoost, lBoostKsmBoost);
       }
    }