Fix trace counter for display refresh rate

Fix display_set_preferred_refresh_rate trace counter. Previously, the
trace counter did not always reflect the actual value it was set to.

Test: perfetto trace, transition to aod, look for display trace counter
Bug: 280460655
Change-Id: Iff055ff73ebc28cc980d1dbb51b8c1d266a48cba
This commit is contained in:
Peter Kalauskas
2023-05-10 14:06:08 -07:00
parent f3192865a3
commit 5502fb1edf

View File

@@ -333,7 +333,7 @@ public class NotificationShadeWindowControllerImpl implements NotificationShadeW
mLpChanged.preferredMinDisplayRefreshRate = 0;
}
Trace.setCounter("display_set_preferred_refresh_rate",
(long) mKeyguardPreferredRefreshRate);
(long) mLpChanged.preferredMaxDisplayRefreshRate);
} else if (mKeyguardMaxRefreshRate > 0) {
boolean bypassOnKeyguard = mKeyguardBypassController.getBypassEnabled()
&& state.statusBarState == StatusBarState.KEYGUARD