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

Commit 65066129 authored by Varun Garg's avatar Varun Garg Committed by Gerrit - the friendly Code Review server
Browse files

perf: Add prefer_idle boost for Launch

Add support for prefer_idle boost parameter
during app launch.

Change-Id: If202967452164e9f93afffbd444d34d1784aa822
CRs-Fixed: 781529
parent 3c4a7e49
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2094,6 +2094,7 @@
    <integer name="launchboost_cpuboost_param">0</integer>
    <integer name="launchboost_pcdisbl_param">0</integer>
    <integer name="launchboost_ksmboost_param">0</integer>
    <integer name="launchboost_preferidle_param">0</integer>

    <!-- Support for disabling to fetch APN from OMH card
         for some cdma carriers -->
+1 −0
Original line number Diff line number Diff line
@@ -2215,6 +2215,7 @@
  <java-symbol type="integer" name="launchboost_cpuboost_param" />
  <java-symbol type="integer" name="launchboost_pcdisbl_param" />
  <java-symbol type="integer" name="launchboost_ksmboost_param" />
  <java-symbol type="integer" name="launchboost_preferidle_param" />

  <java-symbol type="bool" name="config_fetch_apn_from_omh_card" />
  <!-- cpu boost for Animationboost -->
+5 −1
Original line number Diff line number Diff line
@@ -149,6 +149,7 @@ public final class ActivityStackSupervisor implements DisplayListener {
    public int lBoostSchedBoost = 0;
    public int lBoostPcDisblBoost = 0;
    public int lBoostKsmBoost = 0;
    public int lBoostPreferIdle = 0;
    static final int HANDLE_DISPLAY_ADDED = FIRST_SUPERVISOR_STACK_MSG + 5;
    static final int HANDLE_DISPLAY_CHANGED = FIRST_SUPERVISOR_STACK_MSG + 6;
    static final int HANDLE_DISPLAY_REMOVED = FIRST_SUPERVISOR_STACK_MSG + 7;
@@ -320,6 +321,9 @@ public final class ActivityStackSupervisor implements DisplayListener {
                   com.android.internal.R.integer.launchboost_pcdisbl_param);
           lBoostKsmBoost = mService.mContext.getResources().getInteger(
                   com.android.internal.R.integer.launchboost_ksmboost_param);
           lBoostPreferIdle = mService.mContext.getResources().getInteger(
                   com.android.internal.R.integer.launchboost_preferidle_param);

       }
    }

@@ -2663,7 +2667,7 @@ public final class ActivityStackSupervisor implements DisplayListener {
        }
        if (mPerf != null) {
            mPerf.perfLockAcquire(lBoostTimeOut, lBoostPcDisblBoost, lBoostSchedBoost,
                                  lBoostCpuBoost, lBoostKsmBoost);
                                  lBoostCpuBoost, lBoostKsmBoost, lBoostPreferIdle);
        }

        if (DEBUG_TASKS) Slog.d(TAG, "No task found");