Refine fold setting

Current fold setting has a toggle button which can enable the “Stay unlocked on fold” setting.
Create a new page for fold setting which will allow us to choose something from three options.(https://screenshot.googleplex.com/6W65aTYtigGpr3v)
 *Always - Front display turns on when you fold your device [Currently available setting]
 *Only games, videos, and more - Front display turns on for apps that stop your screen going idle [Default]
 *Never - Front display locks when you fold your device [New option for user]

Test: atest FoldLockBehaviorSettingsTest FoldLockBehaviorPreferenceControllerTest
*Manual
  Flash the build with these changes
  Manually select options one by one
  Observe the behavior

Fixes: 294194379
Change-Id: I59e8ba653bdac397eec0be60b931dc1c6649843c
Merged-In: I59e8ba653bdac397eec0be60b931dc1c6649843c
This commit is contained in:
dshivangi 2023-08-16 18:16:41 +00:00 committed by Shivangi Dubey
parent 13cde940f7
commit eb1b08f16b

View file

@ -41,6 +41,9 @@
this value to 0 so it has no effect. -->
<integer name="config_defaultRefreshRate">0</integer>
<!-- Whether to show Fold lock behavior setting feature in Settings App -->
<bool name="config_fold_lock_behavior">true</bool>
<!-- The default peak refresh rate. -->
<integer name="config_defaultPeakRefreshRate">120</integer>