summaryrefslogtreecommitdiff
path: root/tests/Codegen/src/com/android/codegentest/SampleDataClassTest.java
diff options
context:
space:
mode:
authorFelipe Leme <felipeal@google.com>2019-09-11 09:23:26 -0700
committerFelipe Leme <felipeal@google.com>2019-10-02 08:35:42 -0700
commitc1ca4410e1f66b5fa54458a0d4178893d3f7658a (patch)
tree206bc0753c66848f80684c78f668bc2c14ed4718 /tests/Codegen/src/com/android/codegentest/SampleDataClassTest.java
parent817d014bf06170034a6eef572a66274bc643b260 (diff)
Added option to pre-create user templates to optimize first user creation time.
Initial user creation is slow because the system must prepare per-user data (like storage and permissions) whose cost is proportional to the number of pre-installed apps. On automovive's reference implementation, it can take more than 10s, which is a bad user experience. This change lets OEMs pre-create some users , so that high initial-creation cost is "paid" during the initial boot. On automotive, it improves the creation of an additional user (or guest user) in about 7s (from ~17s to 9s). Bug: 111451156 Bug: 132111956 Bug: 140750212 Bug: 140868593 Test: manual verification Test: atest FrameworksServicesTests:UserControllerTest#testStartTemplateUser_background Change-Id: I81de1b5376dc9c42b63be8853d7204c88826401f
Diffstat (limited to 'tests/Codegen/src/com/android/codegentest/SampleDataClassTest.java')
0 files changed, 0 insertions, 0 deletions