Go to file
Steven Thomas 01ddd1a24b sweet: Add default frame rate setting
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 sweet to set config_defaultRefreshRate to 60Hz, 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 Razer
  Phone work correctly.

- Confirmed Redfin works as it did before - still constrained to 60Hz.

Change-Id: Ibfc35abed2b67093b8114822d233bf1ca31eebb0
2022-04-13 11:38:43 -04:00
configs sweet: Disable NFC for indian devices 2022-03-24 20:51:30 +05:30
cutout sweet: show a ring on the camera cutout when its in use 2022-03-24 20:50:00 +05:30
display sweet: override the SetRefreshRate HWC builtin display function 2022-04-13 11:38:43 -04:00
init sweet: Disable NFC for indian devices 2022-03-24 20:51:30 +05:30
libqti-perfd-client sweet: libqti-perfd-client: return a dummy value 2022-03-24 20:51:30 +05:30
overlay sweet: Add default frame rate setting 2022-04-13 11:38:43 -04:00
overlay-lineage sweet: overlay: Enable min_refresh_rate setting 2022-03-24 20:50:00 +05:30
rootdir/etc sweet: rootdir: Commonize zram fstab entry 2022-04-13 11:38:43 -04:00
rro_overlays sweet: Don't sign Wifi RROs with platform cert 2022-03-24 20:50:00 +05:30
sepolicy/vendor sweet: Add ultrasound sepolicy 2021-07-12 16:33:37 +05:30
Android.bp sweet: Use Soong namespace to avoid device build conflicts 2021-07-12 16:28:16 +05:30
Android.mk sweet: Initial device tree 2021-07-10 16:41:06 +05:30
AndroidProducts.mk sweet: Initial device tree 2021-07-10 16:41:06 +05:30
BoardConfig.mk sweet: Disable NFC for indian devices 2022-03-24 20:51:30 +05:30
device.mk sweet: override the SetRefreshRate HWC builtin display function 2022-04-13 11:38:43 -04:00
extract-files.sh sweet: Add extract scripts 2021-07-12 16:28:16 +05:30
lineage_sweet.mk sweet: Initial device tree 2021-07-10 16:41:06 +05:30
proprietary-files.txt sweet: import nfc fw 2022-03-24 20:51:30 +05:30
setup-makefiles.sh sweet: Add extract scripts 2021-07-12 16:28:16 +05:30
vendor.prop sweet: Correct the chipset model name 2022-04-13 11:38:43 -04:00