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

Commit 984794ae authored by Steve Kondik's avatar Steve Kondik
Browse files

am: Remove launch boosts

 * Go with upstream impl.

Change-Id: I96233b273ea2d5c512bc9732468acac433eb2b5b
parent da2b1f84
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -3685,17 +3685,6 @@ public final class ActivityManagerService extends ActivityManagerNative
        }
    }
    void launchBoost(int pid, String packageName) {
        if (mPerf == null) {
            mPerf = LocalServices.getService(PerformanceManagerInternal.class);
            if (mPerf == null) {
                Slog.e(TAG, "PerformanceManager not ready!");
                return;
            }
        }
        mPerf.launchBoost(pid, packageName);
    }
    final ProcessRecord startProcessLocked(String processName,
            ApplicationInfo info, boolean knownToBeDead, int intentFlags,
            String hostingType, ComponentName hostingName, boolean allowWhileBooting,
@@ -3991,9 +3980,6 @@ public final class ActivityManagerService extends ActivityManagerNative
            checkTime(startTime, "startProcess: building log message");
            StringBuilder buf = mStringBuilder;
            buf.setLength(0);
            if (hostingType.equals("activity")) {
                launchBoost(startResult.pid, app.processName);
            }
            buf.append("Start proc ");
            buf.append(startResult.pid);
            buf.append(':');
+0 −8
Original line number Diff line number Diff line
@@ -1860,10 +1860,6 @@ public final class ActivityStackSupervisor implements DisplayListener {
            String reason, boolean forceNonResizeable) {
        ActivityRecord top = task.stack.topRunningActivityLocked();
        /* App is launching from recent apps and it's a new process */
        if (top != null && top.state == ActivityState.DESTROYED) {
            mService.launchBoost(-1, top.packageName);
        }

        if ((flags & ActivityManager.MOVE_TASK_NO_USER_ACTION) == 0) {
            mUserLeaving = true;
        }
@@ -2665,16 +2661,12 @@ public final class ActivityStackSupervisor implements DisplayListener {
                // there is a better match in another stack. We eventually return the match based
                // on root affinity if we don't find a better match.
                if (mTmpFindTaskResult.r != null) {
                    if (mTmpFindTaskResult.r.state == ActivityState.DESTROYED) {
                        mService.launchBoost(-1, r.packageName);
                    }
                    if (!mTmpFindTaskResult.matchedByRootAffinity) {
                        return mTmpFindTaskResult.r;
                    }
                }
            }
        }
        mService.launchBoost(-1, r.packageName);

        if (DEBUG_TASKS && mTmpFindTaskResult.r == null) Slog.d(TAG_TASKS, "No task found");
        return mTmpFindTaskResult.r;