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

Commit 3f2b6cf9 authored by josephpv's avatar josephpv Committed by Joseph Vincent
Browse files

Settings entry for private space auto lock option

Bug: 312893140
Test: Test: unit+manual

Change-Id: I19ec6f8ce10cdf6efec93699cab1ad50a0e3a7d1
parent 469ee63b
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
@@ -12165,6 +12165,36 @@ public final class Settings {
         */
        public static final String HIDE_PRIVATESPACE_ENTRY_POINT = "hide_privatespace_entry_point";
        /** @hide */
        public static final int PRIVATE_SPACE_AUTO_LOCK_ON_DEVICE_LOCK = 0;
        /** @hide */
        public static final int PRIVATE_SPACE_AUTO_LOCK_AFTER_INACTIVITY = 1;
        /** @hide */
        public static final int PRIVATE_SPACE_AUTO_LOCK_NEVER = 2;
        /**
         * The different auto lock options for private space.
         *
         * @hide
         */
        @IntDef(prefix = {"PRIVATE_SPACE_AUTO_LOCK_"}, value = {
                PRIVATE_SPACE_AUTO_LOCK_ON_DEVICE_LOCK,
                PRIVATE_SPACE_AUTO_LOCK_AFTER_INACTIVITY,
                PRIVATE_SPACE_AUTO_LOCK_NEVER,
        })
        @Retention(RetentionPolicy.SOURCE)
        public @interface PrivateSpaceAutoLockOption {
        }
        /**
         *  Store auto lock value for private space.
         *  The possible values are defined in {@link PrivateSpaceAutoLockOption}.
         *
         * @hide
         */
        public static final String PRIVATE_SPACE_AUTO_LOCK = "private_space_auto_lock";
        /**
         * These entries are considered common between the personal and the managed profile,
         * since the managed profile doesn't get to change them.
+1 −0
Original line number Diff line number Diff line
@@ -867,6 +867,7 @@ public class SettingsBackupTest {
                        Settings.Secure.NEARBY_SHARING_SLICE_URI,
                        Settings.Secure.NOTIFIED_NON_ACCESSIBILITY_CATEGORY_SERVICES,
                        Settings.Secure.ONE_HANDED_TUTORIAL_SHOW_COUNT,
                        Settings.Secure.PRIVATE_SPACE_AUTO_LOCK,
                        Settings.Secure.RELEASE_COMPRESS_BLOCKS_ON_INSTALL,
                        Settings.Secure.SCREENSAVER_COMPLICATIONS_ENABLED,
                        Settings.Secure.SHOW_QR_CODE_SCANNER_SETTING,