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

Commit 57899a3e authored by Kevin Jeon's avatar Kevin Jeon
Browse files

Move getResources() off of boot critical path

When starting VoiceInteractionManagerService, there is a getResources()
call that blocks boot for 150ms. This happens when the service's
RoleObserver is instantiated. This change updates this work to happen in
a separate thread, with results being returned in a future.

This change also updates SystemServerInitThreadPool to allow submitted
tasks to return results.

Test: verify in traces that resources are loaded in a separate thread
Bug: 406841419
Flag: android.server.voiceinteractionmanagerservice_get_resources_in_init_thread
Change-Id: I029a09e7d1bb6af1aeebcd65bfefa3a9a46540fe
parent 34ae379c
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