diff options
author | Hui Yu <huiyu@google.com> | 2020-04-27 14:31:04 -0700 |
---|---|---|
committer | Hui Yu <huiyu@google.com> | 2020-04-27 14:31:04 -0700 |
commit | f759a58e3b3145da979a2446c1cf9a467eeee9bb (patch) | |
tree | 88837120e008abdfc3ab206ff7e4380dd4907795 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | a29a359ce4e9bb12cd49c41ec758161a8ea92239 (diff) |
If didSomething condition is reversed.
updateOomAdjLocked() should be called when didSomething is true.
When startActivity, WindowManager post a runnable to DisplayThread and
ActivityManagerService to update UidRecord's proc state, because the
thread switch, sometimes proc state does not get updated on time.
This fix will make updateOomAdjLocked() is called immediately after
startActivity.
Bug: 155110902
Test: regression test
atest cts/tests/app/src/android/app/cts/ActivityManagerProcessStateTest.java
Change-Id: Icdb93fbd25c3c281c7dfdaafe190765630e7b64e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions