summaryrefslogtreecommitdiff
path: root/libs/androidfw/ConfigDescription.cpp
diff options
context:
space:
mode:
author Alejandro Nijamkin <nijamkin@google.com> 2022-11-28 15:35:14 -0800
committer Alejandro Nijamkin <nijamkin@google.com> 2022-11-29 13:53:07 -0800
commit74df4ef2f069530a8cc6e42a134d0344aad18fe0 (patch)
tree1a1e246f046c91be90d8725a50c9c6136ea0bb01 /libs/androidfw/ConfigDescription.cpp
parente5f67447bc734128034b15db1c58de394b6de5b1 (diff)
Multi-user customizable quick affordances.
This CL adds support for multi-users to the customizable lock screen quick affordance system. The process that creates windows and renders System UI is always the primary user's system UI process. The process that owns the content provider accessed by Wallpaper Picker is bound to the currently-selected user on the system, which may be different than the primary user. What this means is that, when switching to a secondary user, what the Wallpaper Picker sees is fed to it from a secondary system UI process which is not the same system UI process that is rendering the affordances on the lock screen. Therefore, it didn't work. This CL adds a "remote user" selection manager which the repository can switch to when it's running on the primary user process but needs to query the state of the selected affordances for a secondary user. The "remote user" selection manager queries the content provider associated with the system UI process linked to the secondary user. This way, we can display the correct affordances on the screen, even when switching to a secondary user. Fix: 260251307 Test: included new and expanded unit tests. Manually verified that the selection of quick affordances for the primary and secondary user are correctly reflected on the lock screen when switching users and is retained even after switching away and back. Change-Id: I281577ed6efb987c23b19c2078e77c91e45ce9f2
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
0 files changed, 0 insertions, 0 deletions