Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 05dccb72 authored by Richard Uhler's avatar Richard Uhler
Browse files

Initialize DataManager on boot complete.

Perfetto traces were showing PeopleService.onUnlockUser was often
blocked on monitor contention for the ShortcutService
shortcutHandleUnlockUser thread to finish.

Move DataManager initialization from onUnlockUser to
PHASE_BOOT_COMPLETE so it can add its ShortcutServiceCallback before
shortcutHandleUnlockUser starts. That takes the relatively slow
shortcutHandleUnlockUser off the critical path for boot.

Bug: 389194339
Test: Boot device, confirm monitor contention is gone via Perfetto trace.
Test: atest com.android.server.people.PeopleServiceTest
Flag: com.android.server.flags.early_data_manager_init

Change-Id: I89d1259ad14d33b53561fb97082b054c11a0d659
parent 51ff3146
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment