summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Michal Brzezinski <brzezinski@google.com> 2024-01-26 15:42:29 +0000
committer Michał Brzeziński <brzezinski@google.com> 2024-02-05 15:14:00 +0000
commit0b192ad401cd64ed33538976eab2a3481ce6c7d5 (patch)
tree2967c3d4e0d135beffce04c872237040518d6b08 /libs/androidfw/FileStream.cpp
parent1152b38d68666b73124673309fb0e73150c35b33 (diff)
Adding UserAwareSecureSettingsRepository
Extracting part of StickyKeysRepositoryImpl into reusable UserAwareSecureSettingsRepository. Why new class? - existing SecureSettingsRepository is in shared customization module because it's used by WallpaperPicker. It cannot be moved out of it so WallpaperPicker can still use it and it can't be modified because it doesn't have dependency on core sysui module that includes SecureSettings and UserRepository Why not using SecureSettingsRepository inside UserAwareSecureSettingsRepository? - because it's dependent on ContentResolver which makes user-dependency less explicit - user is just taken from associated context. In theory it could be implemented with UserTracker.userContentResolver but that requires more callbacks and seems less explicit about what's going on. Bug: 319837892 Test: UserAwareSecureSettingsRepositoryTest Flag: N/A Change-Id: I29114ad561ae997998a984c6d91d2bb90af7148f
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions