commit | 23f50b66665e4dd2bad2f4a7ef4dabb9d63cdae9 | [log] [tgz] |
---|---|---|
author | Alex Salo <asalo@google.com> | Mon Oct 05 17:56:10 2020 -0700 |
committer | Alex Salo <asalo@google.com> | Mon Oct 05 18:38:34 2020 -0700 |
tree | e4e6df782d8ad7fa12fabe8cc074d3acb5d184ed | |
parent | 82bc48af03d5cb2a192682f6a0f219dc1066b9ad [diff] |
Fix lock contention in Attention Call checkAttention() sits in the critical path inside the PowerManager. To avoid the lock contention, don't call into the PackageManager. Specifically, checking the configuration with the PackageManager is redundant since it's already done by SystemServer - it won't start the AttentionManagerService if it's not configured. Bug: 169427927 Test: manually Change-Id: I46ca7a6ce01d2229521f1fe12a80440024465c67