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

Commit 198f7f51 authored by Louis Chang's avatar Louis Chang Committed by Android (Google) Code Review
Browse files

Merge "Do not count rapid launch if launched from instrumenting process" into main

parents bd68dd08 35cf00e6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -631,6 +631,11 @@ public class WindowProcessController extends ConfigurationContainer<Configuratio
            return;
        }

        final WindowProcessController caller = mAtm.mProcessMap.getProcess(r.launchedFromPid);
        if (caller != null && caller.mInstrumenting) {
            return;
        }

        final long diff = launchTime - lastLaunchTime;
        if (diff < RAPID_ACTIVITY_LAUNCH_MS) {
            mRapidActivityLaunchCount++;