From 48d81ecc6d263ad09874a5320c1d3ab9a84cb94a Mon Sep 17 00:00:00 2001 From: Adam Bookatz Date: Mon, 7 Nov 2022 10:46:53 -0800 Subject: [PATCH] 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 --- core/java/android/provider/Settings.java | 6 +++--- core/res/res/values/config.xml | 10 +++++----- core/res/res/values/symbols.xml | 4 ++-- .../src/android/provider/SettingsBackupTest.java | 2 +- .../android/systemui/dreams/dagger/DreamModule.java | 8 ++++---- .../src/com/android/systemui/qs/tiles/DreamTile.java | 11 ++++++----- .../android/server/dreams/DreamManagerService.java | 12 ++++++------ 7 files changed, 27 insertions(+), 26 deletions(-) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index fab6f7b977906..f88e80f485354 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -10400,11 +10400,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 3d245e95f42d8..643150ceff006 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -2438,8 +2438,8 @@ 5 900000 - - false + + false false @@ -2688,9 +2688,9 @@ Should be false for most devices, except automotive vehicle with passenger displays. --> false - - false + + false