From f0decdf1d286051153a573cf95597a5803a30a37 Mon Sep 17 00:00:00 2001 From: Adam Bookatz Date: Mon, 7 Nov 2022 10:46:53 -0800 Subject: Introduce concept of DockUser Dreams and docking often refers to "user zero" or "system user". But more generally, the special user for dreams or switching-to-on-docking need not be user 0, and in fact won't be in certain modes. So this needs updating. Test: the files mentioned in the topic Bug: 257333623 Change-Id: Ic671c91c32e9bf24695b067ff97cf9fa65534b1e Merged-In: Ic671c91c32e9bf24695b067ff97cf9fa65534b1e --- core/java/android/provider/Settings.java | 6 +++--- core/res/res/values/config.xml | 10 +++++----- core/res/res/values/symbols.xml | 4 ++-- .../src/com/android/systemui/dreams/dagger/DreamModule.java | 8 ++++---- .../src/com/android/systemui/qs/tiles/DreamTile.java | 11 ++++++----- .../java/com/android/server/dreams/DreamManagerService.java | 12 ++++++------ 6 files changed, 26 insertions(+), 25 deletions(-) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 5c8c117481b0..1110ef42fde6 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -10309,11 +10309,11 @@ public final class Settings { public static final String QS_AUTO_ADDED_TILES = "qs_auto_tiles"; /** - * The duration of timeout, in milliseconds, to switch from a non-primary user to the - * primary user when the device is docked. + * The duration of timeout, in milliseconds, to switch from a non-Dock User to the + * Dock User when the device is docked. * @hide */ - public static final String TIMEOUT_TO_USER_ZERO = "timeout_to_user_zero"; + public static final String TIMEOUT_TO_DOCK_USER = "timeout_to_dock_user"; /** * Backup manager behavioral parameters. diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 2a9e60a46972..7b20bb74825e 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -2477,8 +2477,8 @@ 5 900000 - - false + + false false @@ -2716,9 +2716,9 @@ will be locked. --> false - - false + + false