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

Commit a5ee16f7 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Use the existing uptime for metrics in onShortFgsTimeout

Bug: 275631423
Test: build
Change-Id: I60932e4157224759e0d7135f8f185cab661151ae
parent 0209aeed
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3356,10 +3356,9 @@ public final class ActiveServices {
                return;
            }
            Slog.e(TAG_SERVICE, "Short FGS timed out: " + sr);
            final long now = SystemClock.uptimeMillis();
            logFGSStateChangeLocked(sr,
                    FOREGROUND_SERVICE_STATE_CHANGED__STATE__TIMED_OUT,
                    now > sr.mFgsEnterTime ? (int) (now - sr.mFgsEnterTime) : 0,
                    nowUptime > sr.mFgsEnterTime ? (int) (nowUptime - sr.mFgsEnterTime) : 0,
                    FGS_STOP_REASON_UNKNOWN,
                    FGS_TYPE_POLICY_CHECK_UNKNOWN);
            try {