OSDN Git Service

Async handling of AMS.onUnlockUser
authorFyodor Kupolov <fkupolov@google.com>
Tue, 19 Dec 2017 19:53:47 +0000 (11:53 -0800)
committerFyodor Kupolov <fkupolov@google.com>
Tue, 19 Dec 2017 19:53:47 +0000 (11:53 -0800)
commit2bc895dfe9e196366c08a437e7ea6f832eac10d0
tree9bad9048c071f26b60c50b369aebc034ed64f75e
parentf7ca81fbc99888076d56666475a33b7b1a40fbd7
Async handling of AMS.onUnlockUser

syncSharedAccounts opens CE database and can block ActivityManager
thread for 100+ ms. This operation can be offloaded to a worker thread.

Test: Manual - No "AccountManagerService$Lifecycle took X ms" warnings
Bug: 37579992
Change-Id: Ie517722efe37da7c6782144beccdad53b047770b
services/core/java/com/android/server/accounts/AccountManagerService.java