summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Piotr Wilczyński <wilczynskip@google.com> 2023-09-26 09:40:01 +0000
committer Piotr Wilczyński <wilczynskip@google.com> 2023-10-09 16:46:09 +0000
commitb9103888de6a1356725d34ca0d4080cf48b93b2a (patch)
tree7a120a648253c05c1730c08b96491744a0d543e1 /libs/androidfw/misc.cpp
parente9438760f86c1f36c3ebfa6cbd0c9a33b8e209bd (diff)
Back up peak refresh rate and min refresh rate
It's possible that in the future the peak refresh rate setting will have multiple values (e.g. 90, 120). For that reason, we shouldn't convert it to a boolean like in the previous CLs (ag/24604787, ag/24604847). - set peak/min refresh rate to infinity if it's the highest refresh rate so that when we restore the setting on another device, we also choose the highest refresh rate - back up peak/min refresh rate and add validators - upgrade settings in SettingsProvider - create a utils class - RefreshRateSettingsUtils Bug: 211737588 Bug: 299552529 Test: atest DisplayModeDirectorTest Test: atest ForcePeakRefreshRatePreferenceControllerTest Test: atest PeakRefreshRatePreferenceControllerTest Test: atest SettingsBackupTest Test: atest SettingsProviderTest Test: atest RefreshRateSettingsUtilsTest Change-Id: I51f65bdc933273d9129c95e11494db37e659199a
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions