Fix regression with OverlayManagerPerfTest

Also fixed a regression with ActivityManagerAppExitInfoTest

Bug: 179054146
Bug: 178978839
Bug: 179052239
Test: atest OverlayManagerPerfTest
Test: atest ConfigChangeTests
Test: atest ActivityManagerAppExitInfoTest
Change-Id: I438e91f22bf5adea8b14ecac1295d3f32586aa33
This commit is contained in:
Jing Ji
2021-02-01 12:14:07 -08:00
parent dcd9397730
commit af7ea99914
2 changed files with 3 additions and 1 deletions

View File

@@ -4447,7 +4447,7 @@ public final class ProcessList {
}
app.getPkgList().forEachPackage(packageName -> {
if (updateFrameworkRes && packagesToUpdate.contains(packageName)) {
if (updateFrameworkRes || packagesToUpdate.contains(packageName)) {
try {
final ApplicationInfo ai = AppGlobals.getPackageManager()
.getApplicationInfo(packageName, STOCK_PM_FLAGS, app.userId);

View File

@@ -623,6 +623,8 @@ final class ProcessProfileRecord {
DebugUtils.printSizeValue(pw, mLastCachedSwapPss * 1024);
pw.print(" lastRss=");
DebugUtils.printSizeValue(pw, mLastRss * 1024);
pw.println();
pw.print(prefix);
pw.print(" trimMemoryLevel=");
pw.println(mTrimMemoryLevel);
pw.println();