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

Commit 29fb1f7b authored by Chenjie Yu's avatar Chenjie Yu
Browse files

log screen event to statsd

Test: tested output on device
Change-Id: I09d4ffd21bc91de9c500676f1a771eab77d1b4f6
parent 29170ff2
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -534,6 +534,11 @@ public final class BatteryStatsService extends IBatteryStats.Stub
        if (DBG) Slog.d(TAG, "begin noteScreenState");
        synchronized (mStats) {
            mStats.noteScreenStateLocked(state);
            // TODO: remove this once we figure out properly where and how
            // SCREEN_EVENT = 1003
            // State key: 1
            // State value: state. We can change this to our own def later.
            StatsLog.writeArray(1003, 1, state);
        }
        if (DBG) Slog.d(TAG, "end noteScreenState");
    }