summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Eric Lin <ericth@google.com> 2024-06-19 14:34:57 +0000
committer Eric Lin <ericth@google.com> 2024-07-01 09:36:39 +0000
commit66f9b6839b54c5ee7d42e065bb046684c3d562c1 (patch)
treee9bbde6668a5a17ddb60978c09afea310376def3 /libs/hwui/FrameInfoVisualizer.cpp
parentc5002e47d6a5382821b7c893cecd6cb0c140be49 (diff)
Store display window settings per user to avoid conflicts.
This change resolves conflicts arising from shared display window settings between users. The density preference is stored in both per-user secure settings `display_density_forced` and the shared display_settings.xml written by DisplayWindowSettingsProvider. The window manager service reads display density from settings during display initialization and user switching, showing correct density before device folding. However, after folding, it update display content from the DisplayWindowSettingsProvider, leading to incorrect density values based on the previously active user's settings. This change store display window settings in user-specific data directories, allowing each user's window settings to persist independently. The window manager service has been updated to notify the DisplayWindowSettingsProvider during user switching. Additionally, stale settings are now removed upon initialization to ensure settings accuracy and optimize storage resources. Fix: 346668297 Flag: com.android.window.flags.per_user_display_window_settings Test: atest WmTests:DisplayWindowSettingsProviderTests Change-Id: I7d34939212ec3aa7af698cccdd23f1cfdecb8b7b
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions