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

This commit is contained in:
Manali Bhutiyani
2023-01-26 17:01:34 +00:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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