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

Commit 508c3d5d authored by shafik's avatar shafik
Browse files

API cleanup: DeviceConfig.Rollback documentation

Added documentation for the different namespaces in
DeviceConfig.Rollback with emphasis on the difference between them.

Added flag type and namespace to the documentation of each flag.

Fixes: 127282774
Test: build
Change-Id: If62a94a0d2775d709af5aebc07b82154842853bc
parent 0b69c75a
Loading
Loading
Loading
Loading
+26 −4
Original line number Diff line number Diff line
@@ -323,17 +323,39 @@ public final class DeviceConfig {
     */
    @SystemApi
    public interface Rollback {

        /**
         * Namespace for flags that can be changed immediately after becoming available on device.
         */
        String NAMESPACE = "rollback";

        /**
         * Namespace for flags that can be changed only after reboot.
         */
        String BOOT_NAMESPACE = "rollback_boot";

        /**
         * Timeout in milliseconds for enabling package rollback.
         * Timeout duration in milliseconds for enabling package rollback. If we fail to enable
         * rollback within that period, the install will proceed without rollback enabled.
         *
         * <p>If flag value is negative, the default value will be assigned.
         *
         * Flag type: {@code long}
         * Namespace: Rollback.NAMESPACE
         */
        String ENABLE_ROLLBACK_TIMEOUT = "enable_rollback_timeout";

        /**
        * The lifetime duration of rollback packages in millis
         * Lifetime duration of rollback packages in millis. A rollback will be available for
         * at most that duration of time after a package is installed with
         * {@link PackageInstaller.SessionParams#setEnableRollback()}.
         *
         * <p>If flag value is negative, the default value will be assigned.
         *
         * @see RollbackManager
         *
         * Flag type: {@code long}
         * Namespace: Rollback.BOOT_NAMESPACE
         */
        String ROLLBACK_LIFETIME_IN_MILLIS = "rollback_lifetime_in_millis";
    }