Remove the SCREEN_BRIGHTNESS_LEVEL setting.

Bug: 177241166
Test: manual test and unit test
Change-Id: I6903d568b1e641946faa248425ec685d4a42485d
(cherry picked from commit d9f1fd1c99df8ac49ae753a11053bd22ff81cfba)
This commit is contained in:
Josh Yang
2021-01-11 19:13:52 -08:00
parent b9d59dc46e
commit c3e3ecf31d
4 changed files with 0 additions and 15 deletions

View File

@@ -16608,12 +16608,6 @@ public final class Settings {
*/
public static final String WEAR_PLATFORM_MR_NUMBER = "wear_platform_mr_number";
/**
* The different levels of screen brightness the user can select.
* @hide
*/
public static final String SCREEN_BRIGHTNESS_LEVEL = "screen_brightness_level";
/**
* The mobile signal detector setting.
* @hide

View File

@@ -303,9 +303,6 @@
<!-- This value is used for the default system capabilities used on LE device. -->
<string name="def_wearable_leSystemCapabilities" translatable="false">1</string>
<!-- Brightness levels, on a 0-255 scale -->
<string name="def_wearable_brightnessLevels" translatable="false">255,204,153,102,51</string>
<!-- Whether to allow mobile signal detector by default. -->
<bool name="def_wearable_mobileSignalDetectorAllowed">true</bool>

View File

@@ -5293,11 +5293,6 @@ public class SettingsProvider extends ContentProvider {
initGlobalSettingsDefaultValForWearLocked(
Global.Wearable.WEAR_PLATFORM_MR_NUMBER,
SystemProperties.getInt("ro.cw_build.platform_mr", 0));
initGlobalSettingsDefaultValForWearLocked(
Settings.Global.Wearable.SCREEN_BRIGHTNESS_LEVEL,
getContext()
.getResources()
.getString(R.string.def_wearable_brightnessLevels));
initGlobalSettingsDefaultValForWearLocked(
Settings.Global.Wearable.MOBILE_SIGNAL_DETECTOR,
getContext()

View File

@@ -632,7 +632,6 @@ public class SettingsBackupTest {
Settings.Global.Wearable.SYSTEM_CAPABILITIES,
Settings.Global.Wearable.SYSTEM_EDITION,
Settings.Global.Wearable.WEAR_PLATFORM_MR_NUMBER,
Settings.Global.Wearable.SCREEN_BRIGHTNESS_LEVEL,
Settings.Global.Wearable.MOBILE_SIGNAL_DETECTOR,
Settings.Global.Wearable.AMBIENT_ENABLED,
Settings.Global.Wearable.AMBIENT_TILT_TO_WAKE,