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

Commit e899a101 authored by Manali Bhutiyani's avatar Manali Bhutiyani Committed by Android (Google) Code Review
Browse files

Merge "Report screen state change events on multi-display devices to StatsLog"

parents f1785465 e140cd9d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2885,6 +2885,9 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
    }

    private void noteScreenState(int screenState) {
        // Log screen state change with display id
        FrameworkStatsLog.write(FrameworkStatsLog.SCREEN_STATE_CHANGED_V2,
                screenState, mDisplayStatsId);
        if (mBatteryStats != null) {
            try {
                // TODO(multi-display): make this multi-display
+3 −0
Original line number Diff line number Diff line
@@ -2392,6 +2392,9 @@ final class DisplayPowerController2 implements AutomaticBrightnessController.Cal
    }

    private void noteScreenState(int screenState) {
        // Log screen state change with display id
        FrameworkStatsLog.write(FrameworkStatsLog.SCREEN_STATE_CHANGED_V2,
                screenState, mDisplayStatsId);
        if (mBatteryStats != null) {
            try {
                // TODO(multi-display): make this multi-display