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

Commit bea6edee authored by Todd Lee's avatar Todd Lee Committed by Android (Google) Code Review
Browse files

Merge "Add Wearable setting for Wrist Detection Auto-Locking" into main

parents 0bb04000 5ac411fe
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -19638,6 +19638,15 @@ public final class Settings {
             */
            public static final String WEAR_POWER_ANOMALY_SERVICE_ENABLED =
                    "wear_power_anomaly_service_enabled";
            /**
             * A boolean that tracks whether Wrist Detection Auto-Locking is enabled.
             *
             * @hide
             */
            @Readable
            public static final String WRIST_DETECTION_AUTO_LOCKING_ENABLED =
                    "wear_wrist_detection_auto_locking_enabled";
        }
    }
+1 −0
Original line number Diff line number Diff line
@@ -112,6 +112,7 @@ public class GlobalSettings {
        Settings.Global.Wearable.SCREENSHOT_ENABLED,
        Settings.Global.Wearable.SCREEN_UNLOCK_SOUND_ENABLED,
        Settings.Global.Wearable.CHARGING_SOUNDS_ENABLED,
        Settings.Global.Wearable.WRIST_DETECTION_AUTO_LOCKING_ENABLED,
        Settings.Global.FORCE_ENABLE_PSS_PROFILING,
    };
}
+1 −0
Original line number Diff line number Diff line
@@ -447,6 +447,7 @@ public class GlobalSettingsValidators {
        VALIDATORS.put(Global.Wearable.WEAR_LAUNCHER_UI_MODE, ANY_INTEGER_VALIDATOR);
        VALIDATORS.put(Global.Wearable.WEAR_POWER_ANOMALY_SERVICE_ENABLED, BOOLEAN_VALIDATOR);
        VALIDATORS.put(Global.Wearable.CONNECTIVITY_KEEP_DATA_ON, BOOLEAN_VALIDATOR);
        VALIDATORS.put(Global.Wearable.WRIST_DETECTION_AUTO_LOCKING_ENABLED, BOOLEAN_VALIDATOR);
        VALIDATORS.put(Global.FORCE_ENABLE_PSS_PROFILING, BOOLEAN_VALIDATOR);
    }
}