From 55d3a925aa230b2f891f2b635cae4654ed59b2a9 Mon Sep 17 00:00:00 2001 From: Lucas Silva Date: Wed, 11 Jan 2023 14:41:26 -0500 Subject: [PATCH] Add new dock setup states to state enum Dock setup could be incomplete or it could have timed out Bug: 265037150 Test: flashed device and verified behavior which uses these new enums Change-Id: I6e67432df5eeb81fd83c86d22b456ee1caa806fb --- core/java/android/provider/Settings.java | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 94a6382227f3c..eaf94e4649cbc 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -9232,6 +9232,14 @@ public final class Settings { */ public static final int DOCK_SETUP_PROMPTED = 3; + /** + * Indicates that the user has started dock setup but never finished it. + * One of the possible states for {@link #DOCK_SETUP_STATE}. + * + * @hide + */ + public static final int DOCK_SETUP_INCOMPLETE = 4; + /** * Indicates that the user has completed dock setup. * One of the possible states for {@link #DOCK_SETUP_STATE}. @@ -9240,6 +9248,14 @@ public final class Settings { */ public static final int DOCK_SETUP_COMPLETED = 10; + /** + * Indicates that dock setup timed out before the user could complete it. + * One of the possible states for {@link #DOCK_SETUP_STATE}. + * + * @hide + */ + public static final int DOCK_SETUP_TIMED_OUT = 11; + /** @hide */ @Retention(RetentionPolicy.SOURCE) @IntDef({ @@ -9247,7 +9263,9 @@ public final class Settings { DOCK_SETUP_STARTED, DOCK_SETUP_PAUSED, DOCK_SETUP_PROMPTED, - DOCK_SETUP_COMPLETED + DOCK_SETUP_INCOMPLETE, + DOCK_SETUP_COMPLETED, + DOCK_SETUP_TIMED_OUT }) public @interface DockSetupState { }