diff options
author | Annie Meng <anniemeng@google.com> | 2018-12-04 19:18:32 +0000 |
---|---|---|
committer | Annie Meng <anniemeng@google.com> | 2018-12-10 12:43:44 +0000 |
commit | 59f6f7fffaca0533dc636e7441ae28fa5aa199bb (patch) | |
tree | 94eaade06fbb83ab1331ba1c103e09f421ffd18b /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 604eb2a83801d4bfd9e83e1561678956fbe7663c (diff) |
[Multi-user] Initialize user state in UserBMS
Move per-user state initialization (directories for bookkeeping data and
transport manager) from BMS to UserBMS.
The UserBMS constructor is now private and callers should use the static
helper to create a new instance. This is primarily for three reasons:
1) Allows for extracting logic out of the constructor into helpers.
2) Allows for performing necessary user-specific setup in the future
such as data migration.
3) Allows for writing unit tests without having setters/getters
exclusively for tests.
Bug: 120212806
Test: 1) atest RunFrameworksServicesRoboTests
2) boot -> unlock user -> service started and verify transports
registered
3) adb shell bmgr backupnow [package] -> writes to /data dir
adb shell bmgr enable false -> writes to /data dir
4) adb shell bmgr backupnow --all -> writes to /cache dir
Change-Id: If88d95059951dbae0abf691629db1a05d27f743d
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions