Min and max refresh rate per display (take 2)
- In onDisplayAdded/onDisplayChanged/onDisplayRemoved, update the min and peak refresh rates for this display.
- When Smooth Display or Force Peak Refresh Rate are turned on/off, update the min and peak refresh rates for all the displays.
- Fix the deadlock - use the supported modes by display already stored in DMD instead of getting them from DisplayManager (which acquires the DisplayManagerServiceLock).
Bug: 273298889
Bug: 314921822
Test: atest DisplayModeDirectorTest
Test: atest RefreshRateSettingsUtilsTest
Change-Id: I3f7758b4911d7fb296e71489196c1b8a1be61290
4 files changed