summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/settings/UserFileManagerImpl.kt
Commit message (Collapse)AuthorAgeFilesLines
* Backup and restore - Fix non-system usersMatt Pietal2023-02-141-87/+98
| | | | | | | | | | | | | | | | | | Use a flat format, rather than a directory structure, to store files for non-primary users. Shared preferences does not explicitly support directories. The code was relying on a soon to be removed API, as well as it being unsupported by the backup helper. Files will remain stored under "shared_prefs" and "files", but the format will be __USER_{id}_{fileName} Test: atest UserFileManagerImplTest AuxiliaryPersistenceWrapperTest DeletionJobServiceTest Test: manual run Backup and Restore from Settings Fixes: 261168533 Fixes: 266918967 Change-Id: Ib9804a2ec46fc2f5d53995c50adc36ff712fc1c1
* Backup & Restore support for quick affordances.Alejandro Nijamkin2022-11-291-64/+87
| | | | | | | | | | | | | | | Adds support for backup & restore of the currently-selected quick affordances on the lock screen. Only supports user 0 for now. A future CL will add support for additional users since the feature is broken for multi-user anyway (see b/260251307). Fix: 258278136 Test: added test case. Manually verified, using the instructions from go/localtransport that selecting some affordances, then triggering a backup, then changing the selections and triggering a restore properly restores the initial set of selections. Change-Id: I9f2a51287a7467af95e7824f2b1804baba962099
* Make CoreStartable an Interface.Dave Mankoff2022-10-131-2/+2
| | | | | | | | | Context is no longer passed in as a constructor arg. Bug: 229228871 Test: manual Change-Id: I3dd5e593f209d120eb36faf33ba629a2066ad3f5 Merged-In: I3dd5e593f209d120eb36faf33ba629a2066ad3f5
* [UserFileManager] Ensure parent exists.Aaron Liu2022-07-261-3/+20
| | | | | | | | | Ensure that parent file exists for files being pulled from UserFileManager. Bug: 227776912 Test: Added a unit test, and tested on device Change-Id: Idb5d3bd61b5d82c5526c22c82957a4d3a8b30f1a
* [MultiUser] Add file access wrapper.Aaron Liu2022-07-121-0/+144
Adds a class that handles files access for multiple users. Will work on integration in follow-up CL. Test: Add unit tests. Change-Id: Ia0af0d18970a8376edcccbe0f59e3d21e55c4f42