diff options
author | Alex Salo <asalo@google.com> | 2020-10-05 17:56:10 -0700 |
---|---|---|
committer | Alex Salo <asalo@google.com> | 2020-10-05 18:38:34 -0700 |
commit | 23f50b66665e4dd2bad2f4a7ef4dabb9d63cdae9 (patch) | |
tree | e4e6df782d8ad7fa12fabe8cc074d3acb5d184ed /rs/java/android/renderscript/ProgramStore.java | |
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
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions