This to allow us to idle to lower refresh rates even if the app is requesting a higher one if it's idle to save battery life, or boost even on apps that don't request a certain high refresh rate to get a smoother experience
Change-Id: Ie611283e1d75a31b218454073e85742be91fdf07
This is to allow refresh rate switching to be truly dynamic based on the refresh rate requested by the app while allowing for us to add boost & idle cases in the future through further properties
Change-Id: I6584ce692d33406e489c82af2ded58af72db5e2d
Apollo supports switching between 60 and 144 Hz refresh rates, so let's
expose it in Settings -> Display -> Smooth Display for users to save
battery if necessary.
Test: visual confirmation after toggling several times
Change-Id: Ie698ec4d4e738afd2a9055dba2369233103a4f13
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 Mi 10T to set config_defaultRefreshRate to 144Hz, confirmed
we default to 60, but that an app calling setFrameRate(144) switches us
to 144.
- Confirmed that the "smooth display" and "force 144Hz" options on Mi 10T work correctly.
Change-Id: I9e5b33ae4d8cb6753b9af70ec5407b3576e75dc3
As We'll be switching to setting default & peak refresh rate values to prepare for smooth display.
Change-Id: I9b21c3dc8c2c7d1ac14507fbb84403be71ce78bb