Merge "Add the compile reason for the forceDexOpt method." am: 1a1ed211b6

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2071188

Change-Id: I82af4785265db747315c7a6f542d71dd135bd5bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Songchun Fan
2022-04-22 14:03:02 +00:00
committed by Automerger Merge Worker

View File

@@ -13257,7 +13257,8 @@ public class PackageManagerService extends IPackageManager.Stub
// Don't use profiles since that may cause compilation to be skipped. // Don't use profiles since that may cause compilation to be skipped.
final int res = performDexOptInternalWithDependenciesLI(pkg, pkgSetting, final int res = performDexOptInternalWithDependenciesLI(pkg, pkgSetting,
new DexoptOptions(packageName, new DexoptOptions(packageName,
getDefaultCompilerFilter(), REASON_CMDLINE,
getDefaultCompilerFilter(), null /* splitName */,
DexoptOptions.DEXOPT_FORCE | DexoptOptions.DEXOPT_BOOT_COMPLETE)); DexoptOptions.DEXOPT_FORCE | DexoptOptions.DEXOPT_BOOT_COMPLETE));
Trace.traceEnd(TRACE_TAG_PACKAGE_MANAGER); Trace.traceEnd(TRACE_TAG_PACKAGE_MANAGER);