Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ff7e81e authored by Josh Yang's avatar Josh Yang
Browse files

[Wear] CP wear setting keys in a batch.

This CL upstreams wear settings keys from tm-wear-dev branch to the
master branch.

1. Add/update/delete Settings wear keys to match the latest code in
   tm-wear-dev branch.
2. Update back up/restore setup.
3. Rebase SettingsProvider version to ensure that version conflict is
   resolved. A new version 216 is added and is used to resolve wear
   version conflicts. This change should have no effect on other builds
   that are already on the master branch.

See go/wear-1pg-settings-key-upstream for detailed design.

Bug: 270226977
Test: flash the build on a watch and manually test
Test: atest SettingsBackupTest
Change-Id: I8ceb4b5b7dc5ee238f1a8d084d2ca74ef12e9fad
parent ef5c6472
Loading
Loading
Loading
Loading
+177 −44
Original line number Diff line number Diff line
@@ -18153,12 +18153,6 @@ public final class Settings {
             */
            public static final String WEAR_OS_VERSION_STRING = "wear_os_version_string";
            /**
             * Whether the physical button has been set.
             * @hide
             */
            public static final String BUTTON_SET = "button_set";
            /**
             * Whether there is a side button.
             * @hide
@@ -18330,6 +18324,12 @@ public final class Settings {
            /** @hide */
            public static final int COMPANION_OS_VERSION_UNDEFINED = -1;
            /**
             * The companion App name.
             * @hide
             */
            public static final String COMPANION_APP_NAME = "wear_companion_app_name";
            /**
             * A boolean value to indicate if we want to support all languages in LE edition on
             * wear. 1 for supporting, 0 for not supporting.
@@ -18442,11 +18442,14 @@ public final class Settings {
            public static final String BURN_IN_PROTECTION_ENABLED = "burn_in_protection";
            /**
             * Whether the device has combined location setting enabled.
             *
             * @deprecated Use LocationManager as the source of truth for all location states.
             *
             * @hide
             */
            public static final String COMBINED_LOCATION_ENABLED = "combined_location_enable";
            @Deprecated
            public static final String COMBINED_LOCATION_ENABLE = "combined_location_enable";
            /**
             * The wrist orientation mode of the device
@@ -18511,67 +18514,36 @@ public final class Settings {
            public static final String CLOCKWORK_LONG_PRESS_TO_ASSISTANT_ENABLED =
                    "clockwork_long_press_to_assistant_enabled";
            /*
            /**
             * Whether the device has Cooldown Mode enabled.
             * @hide
             */
            public static final String COOLDOWN_MODE_ON = "cooldown_mode_on";
            /*
            /**
             * Whether the device has Wet Mode/ Touch Lock Mode enabled.
             * @hide
             */
            public static final String WET_MODE_ON = "wet_mode_on";
            /*
            /**
             * Whether the RSB wake feature is enabled.
             * @hide
             */
            public static final String RSB_WAKE_ENABLED = "rsb_wake_enabled";
            /*
            /**
             * Whether the screen-unlock (keyguard) sound is enabled.
             * @hide
             */
            public static final String SCREEN_UNLOCK_SOUND_ENABLED = "screen_unlock_sound_enabled";
            /*
            /**
             * Whether charging sounds are enabled.
             * @hide
             */
            public static final String CHARGING_SOUNDS_ENABLED = "wear_charging_sounds_enabled";
            /** The status of the early updates process.
             * @hide
             */
            public static final String EARLY_UPDATES_STATUS = "early_updates_status";
            /**
             * Early updates not started
             * @hide
             */
            public static final int EARLY_UPDATES_STATUS_NOT_STARTED = 0;
            /**
             * Early updates started and in progress
             * @hide
             */
            public static final int EARLY_UPDATES_STATUS_STARTED = 1;
            /**
             * Early updates completed and was successful
             * @hide
             */
            public static final int EARLY_UPDATES_STATUS_SUCCESS = 2;
            /**
             * Early updates skipped
             * @hide
             */
            public static final int EARLY_UPDATES_STATUS_SKIPPED = 3;
            /**
             * Early updates aborted due to timeout
             * @hide
             */
            public static final int EARLY_UPDATES_STATUS_ABORTED = 4;
            /**
             * Whether dynamic color theming (e.g. Material You) is enabled for apps which support
             * it.
@@ -18705,6 +18677,167 @@ public final class Settings {
             * @hide
             */
            public static final String DISABLE_AOD_WHILE_PLUGGED = "disable_aod_while_plugged";
            /**
             * Whether the user has consented for network location provider (NLP).
             * This setting key will only be used once during OOBE to set NLP initial value through
             * the companion app ToS. This setting key will be synced over from Companion and
             * corresponding toggle in GMS will be enabled.
             * @hide
             */
            public static final String NETWORK_LOCATION_OPT_IN = "network_location_opt_in";
            /**
             * The custom foreground color.
             * @hide
             */
            public static final String CUSTOM_COLOR_FOREGROUND = "custom_foreground_color";
            /**
             * The custom background color.
             * @hide
             */
            public static final String CUSTOM_COLOR_BACKGROUND = "custom_background_color";
            /** The status of the phone switching process.
             * @hide
             */
            public static final String PHONE_SWITCHING_STATUS = "phone_switching_status";
            /**
             * Phone switching not started
             * @hide
             */
            public static final int PHONE_SWITCHING_STATUS_NOT_STARTED = 0;
            /**
             * Phone switching started
             * @hide
             */
            public static final int PHONE_SWITCHING_STATUS_STARTED = 1;
            /**
             * Phone switching completed and was successful
             * @hide
             */
            public static final int PHONE_SWITCHING_STATUS_SUCCESS = 2;
            /**
             * Phone switching was cancelled
             * @hide
             */
            public static final int PHONE_SWITCHING_STATUS_CANCELLED = 3;
            /**
             * Phone switching failed
             * @hide
             */
            public static final int PHONE_SWITCHING_STATUS_FAILED = 4;
            /**
             * Phone switching is in progress of advertising to new companion device.
             * @hide
             */
            public static final int PHONE_SWITCHING_STATUS_IN_PROGRESS_ADVERTISING = 5;
            /**
             * Phone switching successfully bonded with new companion device.
             * @hide
             */
            public static final int PHONE_SWITCHING_STATUS_IN_PROGRESS_BONDED = 6;
            /**
             * Phone switching successfully completed on phone side.
             * @hide
             */
            public static final int PHONE_SWITCHING_STATUS_IN_PROGRESS_PHONE_COMPLETE = 7;
            /**
             * Connection config migration in progress.
             * @hide
             */
            public static final int PHONE_SWITCHING_STATUS_IN_PROGRESS_MIGRATION = 8;
            /**
             * Connection config migration failed.
             * @hide
             */
            public static final int PHONE_SWITCHING_STATUS_IN_PROGRESS_MIGRATION_FAILED = 9;
            /**
             * Connection config migration cancellation in progress.
             * @hide
             */
            public static final int PHONE_SWITCHING_STATUS_IN_PROGRESS_MIGRATION_CANCELLED = 10;
            /**
             * Connection config migration success.
             * @hide
             */
            public static final int PHONE_SWITCHING_STATUS_IN_PROGRESS_MIGRATION_SUCCESS = 11;
            /**
             * Whether the device has enabled the feature to reduce motion and animation
             * (0 = false, 1 = true)
             * @hide
             */
            public static final String REDUCE_MOTION = "reduce_motion";
            /**
             * Whether RTL swipe-to-dismiss is enabled by developer options.
             * (0 = false, 1 = true)
             * @hide
             */
            public static final String RTL_SWIPE_TO_DISMISS_ENABLED_DEV =
                    "rtl_swipe_to_dismiss_enabled_dev";
            /**
             * Tethered Configuration state.
             * @hide
             */
            public static final String TETHER_CONFIG_STATE = "tethered_config_state";
            /**
             * Tethered configuration state is unknown.
             * @hide
             */
            public static final int TETHERED_CONFIG_UNKNOWN = 0;
            /**
             * Device is set into standalone mode.
             * @hide
             */
            public static final int TETHERED_CONFIG_STANDALONE = 1;
            /**
             * Device is set in tethered mode.
             * @hide
             */
            public static final int TETHERED_CONFIG_TETHERED = 2;
            /**
             * Whether phone switching is supported.
             *
             * (0 = false, 1 = true)
             * @hide
             */
            public static final String PHONE_SWITCHING_SUPPORTED = "phone_switching_supported";
            /**
             * Setting indicating the name of the Wear OS package that hosts the Media Controls UI.
             *
             * @hide
             */
            public static final String WEAR_MEDIA_CONTROLS_PACKAGE = "wear_media_controls_package";
            /**
             * Setting indicating the name of the Wear OS package responsible for bridging media.
             *
             * @hide
             */
            public static final String WEAR_MEDIA_SESSIONS_PACKAGE = "wear_media_sessions_package";
        }
    }
+6 −0
Original line number Diff line number Diff line
@@ -6068,6 +6068,12 @@
    <!-- Wear OS: the name of the main activity of the device's sysui. -->
    <string name="config_wearSysUiMainActivity" translatable="false"/>

    <!-- Wear OS: the name of the package containing the Media Controls Activity. -->
    <string name="config_wearMediaControlsPackage" translatable="false"/>

    <!-- Wear OS: the name of the package containing the Media Sessions APK. -->
    <string name="config_wearMediaSessionsPackage" translatable="false"/>

    <bool name="config_secondaryBuiltInDisplayIsRound">@bool/config_windowIsRound</bool>

    <!-- The display round config for each display in a multi-display device. -->
+2 −0
Original line number Diff line number Diff line
@@ -4866,6 +4866,8 @@

  <java-symbol type="string" name="config_wearSysUiPackage"/>
  <java-symbol type="string" name="config_wearSysUiMainActivity"/>
  <java-symbol type="string" name="config_wearMediaControlsPackage"/>
  <java-symbol type="string" name="config_wearMediaSessionsPackage"/>
  <java-symbol type="string" name="config_defaultQrCodeComponent"/>

  <java-symbol type="dimen" name="secondary_rounded_corner_radius" />
+2 −0
Original line number Diff line number Diff line
@@ -43,6 +43,8 @@
    <bool name="def_install_non_market_apps">false</bool>
    <!-- 0 == off, 3 == on -->
    <integer name="def_location_mode">3</integer>
    <!-- 0 == off, 1 == on-->
    <integer name="def_paired_device_location_mode">1</integer>
    <bool name="assisted_gps_enabled">true</bool>
    <bool name="def_netstats_enabled">true</bool>
    <bool name="def_usb_mass_storage_enabled">true</bool>
+2 −0
Original line number Diff line number Diff line
@@ -103,5 +103,7 @@ public class GlobalSettings {
        Settings.Global.Wearable.UPGRADE_DATA_MIGRATION_STATUS,
        Settings.Global.HDR_CONVERSION_MODE,
        Settings.Global.HDR_FORCE_CONVERSION_TYPE,
        Settings.Global.Wearable.RTL_SWIPE_TO_DISMISS_ENABLED_DEV,
        Settings.Global.Wearable.REDUCE_MOTION,
    };
}
Loading