Steven Thomas 09a3628a83 alioth: overlay: Set config_defaultRefreshRate to 0
Add a new priority PRIORITY_DEVICE_PEAK_REFRESH_RATE, and a new config
setting config_defaultRefreshRate which maps to that priority. This
allows an OEM to easily specify a default frame rate different from the
peak frame rate.

Bug: 148978450
Bug: 154648391

Test: - Added new unit tests to verify DisplayModeDirector handles min,
        peak, and default refresh rate settings correctly.

- Modified a POCO F3 to set config_defaultRefreshRate to 120Hz, confirmed
  we default to 60, but that an app calling setFrameRate(120) switches us
  to 120.

- Confirmed that the "smooth display" and "force 120Hz" options on POCO F3 work correctly.

- While we are at it drop redundant config_defaultMinimumRefreshRate

Signed-off-by: althafvly <althafvly@gmail.com>
Change-Id: I9e5b33ae4d8cb6753b9af70ec5407b3576e75dc3
2021-07-30 10:16:28 +02:00
2021-07-23 18:48:43 +02:00
2021-07-23 18:48:43 +02:00
2021-07-23 18:48:43 +02:00
2021-07-23 18:48:43 +02:00
Description
No description provided
472 KiB
Languages
Python 27.3%
Java 26.6%
Shell 20.1%
C++ 19.7%
Makefile 6.3%