summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorDanning Chen <danningc@google.com>2020-03-09 17:19:44 -0700
committerDanning Chen <danningc@google.com>2020-03-09 17:50:19 -0700
commita44febc6e294bf805f82a3a16f05e23b89676e37 (patch)
tree98c5f6ee4c91e03d9ceaa41b946c55d8c614e184 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent18fecf78d38c4ba2a1e3222f3e101466aac268b6 (diff)
Run PeopleService.onUserUnlocked() on worker thread instead of main thread
This change is targeting on reducing the latency to unlock a user. It includes these changes: (1) In DataManager.onUserUnlocked(), execute the listeners registration code on a worker thread. (2) Merge the usage stats service query and data persistence to one thread. (3) Adjust the query events max age from 1 day to 5 mins because we already persist those events in PeopleService. No need to re-query those events. With this change, PeopleService.onUserUnlocked() execution is reduced from ~200 ms to <1ms. And listeners are set up after conversations being loaded from the disk. This ensures at the events query time (such as UsageStatsService query), all the conversations are already available in People Service to avoid missing some events (events without an associated conversation are dropped). Change-Id: I5248afa2771588a2434c335867de4e2d1a2eb6f3 Test: atest com.android.server.people.data.DataManagerTest Test: atest com.android.server.people.data.ConversationStoreTest Test: atest com.android.server.people.data.PackageDataTest Bug: 150733302
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions