Merge "Preload android.test.base to improve startup performance" into rvc-dev am: dcd5bcaf10

Change-Id: Iec4f99448a624ad25a4e71cf1784a2930ed6b4a6
This commit is contained in:
TreeHugger Robot
2020-05-28 21:45:49 +00:00
committed by Automerger Merge Worker

View File

@@ -376,11 +376,17 @@ public class ZygoteInit {
null /*declaringPackage*/, null /*dependentPackages*/, null /*dependencies*/);
hidlManager.addDependency(hidlBase);
SharedLibraryInfo androidTestBase = new SharedLibraryInfo(
"/system/framework/android.test.base.jar", null /*packageName*/,
null /*codePaths*/, null /*name*/, 0 /*version*/, SharedLibraryInfo.TYPE_BUILTIN,
null /*declaringPackage*/, null /*dependentPackages*/, null /*dependencies*/);
ApplicationLoaders.getDefault().createAndCacheNonBootclasspathSystemClassLoaders(
new SharedLibraryInfo[]{
// ordered dependencies first
hidlBase,
hidlManager,
androidTestBase,
});
}