Merge "Add @SystemApi for Secure.UI_TRANSLATION_ENABLED" into sc-dev

This commit is contained in:
John Li
2021-04-13 15:55:15 +00:00
committed by Android (Google) Code Review
3 changed files with 7 additions and 3 deletions

View File

@@ -9301,6 +9301,7 @@ package android.provider {
field public static final String LOCK_SCREEN_SHOW_NOTIFICATIONS = "lock_screen_show_notifications";
field public static final String ODI_CAPTIONS_ENABLED = "odi_captions_enabled";
field public static final String THEME_CUSTOMIZATION_OVERLAY_PACKAGES = "theme_customization_overlay_packages";
field public static final String UI_TRANSLATION_ENABLED = "ui_translation_enabled";
field public static final String USER_SETUP_COMPLETE = "user_setup_complete";
field public static final int USER_SETUP_PERSONALIZATION_COMPLETE = 10; // 0xa
field public static final int USER_SETUP_PERSONALIZATION_NOT_STARTED = 0; // 0x0

View File

@@ -8539,13 +8539,16 @@ public final class Settings {
"one_handed_tutorial_show_count";
/**
* Indicates whether transform is enabled.
* Indicates whether ui translation is enabled.
* <p>
* Type: int (0 for false, 1 for true)
*
* @hide
*/
public static final String TRANSFORM_ENABLED = "transform_enabled";
@SystemApi
@Readable
@SuppressLint("NoSettingsProvider")
public static final String UI_TRANSLATION_ENABLED = "ui_translation_enabled";
/**
* The current night mode that has been selected by the user. Owned

View File

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