Add Settings flag for Transform.

Bug: 177299699
Test: manual
Change-Id: I4947117b6bb11678e3ad761204d720354b9e73ae
Merged-In: I4947117b6bb11678e3ad761204d720354b9e73ae
This commit is contained in:
John Li
2021-01-19 17:08:55 +08:00
parent baf818032a
commit 8929a2e804
2 changed files with 11 additions and 1 deletions

View File

@@ -8522,6 +8522,15 @@ public final class Settings {
public static final String ONE_HANDED_TUTORIAL_SHOW_COUNT =
"one_handed_tutorial_show_count";
/**
* Indicates whether transform is enabled.
* <p>
* Type: int (0 for false, 1 for true)
*
* @hide
*/
public static final String TRANSFORM_ENABLED = "transform_enabled";
/**
* The current night mode that has been selected by the user. Owned
* and controlled by UiModeManagerService. Constants are as per

View File

@@ -749,7 +749,8 @@ public class SettingsBackupTest {
Settings.Secure.ACCESSIBILITY_SHORTCUT_TARGET_MAGNIFICATION_CONTROLLER,
Settings.Secure.SUPPRESS_DOZE,
Settings.Secure.REDUCE_BRIGHT_COLORS_ACTIVATED,
Settings.Secure.ACCESSIBILITY_SHOW_WINDOW_MAGNIFICATION_PROMPT);
Settings.Secure.ACCESSIBILITY_SHOW_WINDOW_MAGNIFICATION_PROMPT,
Settings.Secure.TRANSFORM_ENABLED);
@Test
public void systemSettingsBackedUpOrDenied() {