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

Commit da7332c0 authored by Daniel Nishi's avatar Daniel Nishi
Browse files

Add a Setting for whether or not we have been disabled by policy.

Bug: 62106274, 35698183
Test: StorageManager robotests

Change-Id: I1788d6143362130df88950c6843fa78b67182d5e
parent b455540b
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -7022,6 +7022,16 @@ public final class Settings {
        public static final String AUTOMATIC_STORAGE_MANAGER_LAST_RUN =
                "automatic_storage_manager_last_run";

        /**
         * If the automatic storage manager has been disabled by policy. Note that this doesn't
         * mean that the automatic storage manager is prevented from being re-enabled -- this only
         * means that it was turned off by policy at least once.
         *
         * @hide
         */
        public static final String AUTOMATIC_STORAGE_MANAGER_TURNED_OFF_BY_POLICY =
                "automatic_storage_manager_turned_off_by_policy";

        /**
         * Whether SystemUI navigation keys is enabled.
         * @hide
+1 −0
Original line number Diff line number Diff line
@@ -418,6 +418,7 @@ public class SettingsBackupTest {
                 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_BYTES_CLEARED,
                 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED,
                 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_LAST_RUN,
                 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_TURNED_OFF_BY_POLICY,
                 Settings.Secure.BACKUP_AUTO_RESTORE,
                 Settings.Secure.BACKUP_ENABLED,
                 Settings.Secure.BACKUP_PROVISIONED,