Remove unnecessary query in IMMS#switchUserOnHandlerLocked() (2nd try)
This is the 2nd attempt of submitting my previous CL [1], which got
reverted [2] due to a boottime regression (Bug 329414077).
We have already addressed the major contributor of the boot time
regression [3], so this CL should be ready to be submitted again.
This is a follow up CL to my previous CL [4], which started using
InputMethodSettingsRepository
as a on-memory data repository of InputMethodSettings to avoid
unnecessary queries to PackageManagerService again.
With this CL
InputMethodManagerService#switchUserOnHandlerLocked()
also start using InputMethodSettingsRepository instead of querying
available IMEs for the new user dynamically.
This CL is supposed to improve the IME user switching latency.
[1]: I9437455cd9ad907a3587b8087c2aa2620ef4c8fd
e5475c78d31a4dcb5b4e1ce2e12eaf30d0315555
[2]: Ib1ae7a2ac556799a7243ba2798bae3910a74d297
fa26cc98aa2eb8da2f3c615660e01946d65cbc4d
[3]: I8e51b1ced4dc16cdca7e898885c64793665fafef
bce89b5742781e680efac88cbc7179bf029638d9
[4]: Ic0dd655fbd86b8ccce2b3298b4c70359a468f9ec
8130073e978ab0a826ecfab9bee1254551023a32
Bug: 309837937
Bug: 329163064
Bug: 333591545
Test: presubmit
Change-Id: If1285c532d70496956938751519810ff008b0eda
1 file changed