Merge "Fix wrong waitingOnAMSLockEnded()."

This commit is contained in:
TreeHugger Robot
2022-11-22 06:42:49 +00:00
committed by Android (Google) Code Review

View File

@@ -6112,7 +6112,7 @@ public final class ActiveServices {
TimeoutRecord timeoutRecord = TimeoutRecord.forServiceStartWithEndTime(annotation,
SystemClock.uptimeMillis());
timeoutRecord.mLatencyTracker.waitingOnAMSLockEnded();
timeoutRecord.mLatencyTracker.waitingOnAMSLockStarted();
synchronized (mAm) {
timeoutRecord.mLatencyTracker.waitingOnAMSLockEnded();
if (!r.fgRequired || !r.fgWaiting || r.destroying) {