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: If068aa79a770bed4abf3f7ca1859a95cd1eb4ecd
This commit is contained in:
Adam Bookatz
2022-11-07 10:51:01 -08:00
parent 21d9c6c796
commit 81e5f3730c
11 changed files with 63 additions and 60 deletions

View File

@@ -94,10 +94,10 @@
settings:allowDividerAbove="true"/>
<com.android.settingslib.RestrictedPreference
android:key="timeout_to_user_zero_preference"
android:title="@string/switch_to_user_zero_when_docked"
android:key="timeout_to_dock_user_preference"
android:title="@string/switch_to_dock_user_when_docked"
android:order="106"
android:fragment="com.android.settings.users.TimeoutToUserZeroSettings"
settings:controller="com.android.settings.users.TimeoutToUserZeroPreferenceController"/>
android:fragment="com.android.settings.users.TimeoutToDockUserSettings"
settings:controller="com.android.settings.users.TimeoutToDockUserPreferenceController"/>
</PreferenceScreen>

View File

@@ -17,4 +17,4 @@
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/switch_to_user_zero_when_docked"/>
android:title="@string/switch_to_dock_user_when_docked"/>