summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2020-09-11 01:00:49 +0800
committerRiddle Hsu <riddlehsu@google.com>2020-09-25 21:40:12 +0800
commit39380dcf3a399e8309286d985389380feb7c598f (patch)
tree901daa18813670cec41716a026ebe87ba44bd01b /tools/aapt2/java/JavaClassGenerator_test.cpp
parent697f2d91fdcd6f9bb898c3d867bb8cd2d2ea367e (diff)
Remove WM lock from WPC#computeOomAdjFromActivities
Since the result of computeOomAdjFromActivities depends on task layer rank and activity state. It can be calculated once the states are changed before oom-adjustment calculation. So when activity manager asks the result from any reason, it can get the computed states without entering heavy WM lock. Also remove lock in WPC#hasVisibleActivities because its returned result is also computed in computeOomAdjFromActivities. Bug: 159104503 Test: WindowProcessControllerTests#testComputeOomAdjFromActivities Change-Id: I797c81a5ebe447802cc02ac37736a0464108836f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions