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

Commit 2ef9db99 authored by Rupesh Bansal's avatar Rupesh Bansal Committed by Gerrit Code Review
Browse files

Merge "Record thermal service state using android.os.Trace" into main

parents 8672d4c4 9f30b257
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ import android.os.ShellCallback;
import android.os.ShellCommand;
import android.os.SystemClock;
import android.os.Temperature;
import android.os.Trace;
import android.util.ArrayMap;
import android.util.EventLog;
import android.util.Slog;
@@ -247,6 +248,7 @@ public class ThermalManagerService extends SystemService {

    private void setStatusLocked(int newStatus) {
        if (newStatus != mStatus) {
            Trace.traceCounter(Trace.TRACE_TAG_POWER, "ThermalManagerService.status", newStatus);
            mStatus = newStatus;
            notifyStatusListenersLocked();
        }