From 39133325523f90d011f7e52b2fef222e3f13a415 Mon Sep 17 00:00:00 2001 From: Lucas Silva Date: Thu, 28 Apr 2022 13:53:50 -0400 Subject: [PATCH] Add new setting to store the dock setup state. This is similar to the existing USER_PERSONALIZATION_SETUP_STATE setting. Bug: 227649823 Test: locally on device Change-Id: I0075188fdbd864347d6a11c7ce9917e03843ca3a --- core/java/android/provider/Settings.java | 60 ++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index e121ba7a0a680..7d7404016cec0 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -9162,6 +9162,66 @@ public final class Settings { public static final String SCREENSAVER_ENABLED_COMPLICATIONS = "screensaver_enabled_complications"; + + /** + * Default, indicates that the user has not yet started the dock setup flow. + * + * @hide + */ + public static final int DOCK_SETUP_NOT_STARTED = 0; + + /** + * Indicates that the user has started but not yet completed dock setup. + * One of the possible states for {@link #DOCK_SETUP_STATE}. + * + * @hide + */ + public static final int DOCK_SETUP_STARTED = 1; + + /** + * Indicates that the user has snoozed dock setup and will complete it later. + * One of the possible states for {@link #DOCK_SETUP_STATE}. + * + * @hide + */ + public static final int DOCK_SETUP_PAUSED = 2; + + /** + * Indicates that the dock setup has resumed snoozing but the user hasn't started it yet. + * One of the possible states for {@link #DOCK_SETUP_STATE}. + * + * @hide + */ + public static final int DOCK_SETUP_RESUMED = 3; + + /** + * Indicates that the user has completed dock setup. + * One of the possible states for {@link #DOCK_SETUP_STATE}. + * + * @hide + */ + public static final int DOCK_SETUP_COMPLETED = 10; + + /** @hide */ + @Retention(RetentionPolicy.SOURCE) + @IntDef({ + DOCK_SETUP_NOT_STARTED, + DOCK_SETUP_STARTED, + DOCK_SETUP_PAUSED, + DOCK_SETUP_RESUMED, + DOCK_SETUP_COMPLETED + }) + public @interface DockSetupState { + } + + /** + * Defines the user's current state of dock setup. + * The possible states are defined in {@link DockSetupState}. + * + * @hide + */ + public static final String DOCK_SETUP_STATE = "dock_setup_state"; + /** * The default NFC payment component * @hide