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

Commit 9f30b257 authored by Abhishek Gadewar's avatar Abhishek Gadewar
Browse files

Record thermal service state using android.os.Trace



Test: build passes

Change-Id: Ibd9ac317def6b9825a1623e516ef9421ccaa8651
Signed-off-by: default avatarAbhishek Gadewar <abhishekgadewar@meta.com>
parent b90b46a5
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();
        }