diff options
author | Felipe Leme <felipeal@google.com> | 2019-09-11 09:23:26 -0700 |
---|---|---|
committer | Felipe Leme <felipeal@google.com> | 2019-10-18 11:05:06 -0700 |
commit | 7ad2f6bdad6f789ed7d1b32ab9e2dcf006026201 (patch) | |
tree | dc8ba3e1cda213f5488f56e205236c240db3b9c1 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 8a201f044253d9faf6b82639457c078eed7bc239 (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
Merged-In: I81de1b5376dc9c42b63be8853d7204c88826401f
Change-Id: I81de1b5376dc9c42b63be8853d7204c88826401f
(cherry picked from commit c1ca4410e1f66b5fa54458a0d4178893d3f7658a)
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions