/frameworks/base/services/core/java/com/android/server/pm/dex/ |
H A D | PackageDexUsage.java | 111 * @param isUsedByOtherApps whether or not this dex file was not loaded by its owning package 120 String loaderIsa, boolean isUsedByOtherApps, boolean primaryOrSplit, 135 // If we have a primary or a split apk, set isUsedByOtherApps. 138 packageUseInfo.mergeCodePathUsedByOtherApps(dexPath, isUsedByOtherApps, 143 DexUseInfo newData = new DexUseInfo(isUsedByOtherApps, ownerUserId, 155 // isUsedByOtherApps information and return if there was an update. 157 dexPath, isUsedByOtherApps, owningPackageName, loadingPackageName); 160 isUsedByOtherApps, ownerUserId, classLoaderContext, loaderIsa); 345 // onwerUserId,isUsedByOtherApps,isa1,isa2 354 // Line 2 is the dex data: (userId, isUsedByOtherApps, is 119 record(String owningPackageName, String dexPath, int ownerUserId, String loaderIsa, boolean isUsedByOtherApps, boolean primaryOrSplit, String loadingPackageName, String classLoaderContext) argument 729 mergeCodePathUsedByOtherApps(String codePath, boolean isUsedByOtherApps, String owningPackageName, String loadingPackage) argument 749 public boolean isUsedByOtherApps(String codePath) { method in class:PackageDexUsage.PackageUseInfo 798 DexUseInfo(boolean isUsedByOtherApps, int ownerUserId, String classLoaderContext, String loaderIsa) argument 844 public boolean isUsedByOtherApps() { method in class:PackageDexUsage.DexUseInfo [all...] |
H A D | DexLogger.java | 99 if (dexUseInfo.isUsedByOtherApps()) {
|
H A D | DexManager.java | 206 // TODO(calin): extend isUsedByOtherApps check to detect the cases where 208 // file as isUsedByOtherApps. Currently this is a safe approximation. 209 boolean isUsedByOtherApps = !loadingAppInfo.packageName.equals( 214 if (primaryOrSplit && !isUsedByOtherApps) { 215 // If the dex file is the primary apk (or a split) and not isUsedByOtherApps 231 dexPath, loaderUserId, loaderIsa, isUsedByOtherApps, primaryOrSplit, 546 boolean isUsedByOtherApps, int userId) { 565 dexPath, userId, isa, isUsedByOtherApps, /*primaryOrSplit*/ false, 545 registerDexModule(ApplicationInfo info, String dexPath, boolean isUsedByOtherApps, int userId) argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
H A D | PackageDexUsageTests.java | 437 final boolean isUsedByOtherApps = false; 439 PackageDexUsage.DexUseInfo validContext = new DexUseInfo(isUsedByOtherApps, userId, 445 PackageDexUsage.DexUseInfo unsupportedContext = new DexUseInfo(isUsedByOtherApps, userId, 451 PackageDexUsage.DexUseInfo variableContext = new DexUseInfo(isUsedByOtherApps, userId, 457 PackageDexUsage.DexUseInfo unknownContext = new DexUseInfo(isUsedByOtherApps, userId, 551 assertEquals(primaryUsedByOtherApps, pInfo.isUsedByOtherApps(primary.mDexFile)); 564 assertEquals(testData.mUsedByOtherApps, dInfo.isUsedByOtherApps()); 621 String loaderIsa, boolean isUsedByOtherApps, boolean primaryOrSplit, String usedBy) { 622 this(packageName, dexFile, ownerUserId, loaderIsa, isUsedByOtherApps, primaryOrSplit, 626 String loaderIsa, boolean isUsedByOtherApps, boolea 620 TestData(String packageName, String dexFile, int ownerUserId, String loaderIsa, boolean isUsedByOtherApps, boolean primaryOrSplit, String usedBy) argument 625 TestData(String packageName, String dexFile, int ownerUserId, String loaderIsa, boolean isUsedByOtherApps, boolean primaryOrSplit, String usedBy, String classLoaderContext) argument [all...] |
H A D | DexManagerTests.java | 154 assertSecondaryUse(mFooUser0, pui, fooSecondaries, /*isUsedByOtherApps*/false, mUser0); 166 assertSecondaryUse(mFooUser0, pui, barSecondaries, /*isUsedByOtherApps*/true, mUser0); 191 assertSecondaryUse(mFooUser0, pui, barSecondaries, /*isUsedByOtherApps*/true, mUser0); 193 /*isUsedByOtherApps*/false, mUser0); 199 assertSecondaryUse(mFooUser0, pui, fooSecondaries, /*isUsedByOtherApps*/false, mUser0); 259 assertSecondaryUse(newPackage, pui, newSecondaries, /*isUsedByOtherApps*/true, mUser0); 275 assertSecondaryUse(newPackage, pui, newSecondaries, /*isUsedByOtherApps*/false, mUser0); 333 /*isUsedByOtherApps*/false, mUser1); 397 assertSecondaryUse(mFooUser0, pui, fooSecondaries, /*isUsedByOtherApps*/false, mUser0); 413 /*isUsedByOtherApps*/fals 480 assertSecondaryUse(TestData testData, PackageUseInfo pui, List<String> secondaries, boolean isUsedByOtherApps, int ownerUserId, String[] expectedContexts) argument 496 assertSecondaryUse(TestData testData, PackageUseInfo pui, List<String> secondaries, boolean isUsedByOtherApps, int ownerUserId) argument 505 assertIsUsedByOtherApps(TestData testData, PackageUseInfo pui, boolean isUsedByOtherApps) argument 510 assertIsUsedByOtherApps(List<String> codePaths, PackageUseInfo pui, boolean isUsedByOtherApps) argument [all...] |
H A D | DexLoggerTests.java | 159 boolean isUsedByOtherApps = otherPackageNames.length > 0; 161 isUsedByOtherApps, OWNER_USER_ID, /* classLoaderContext */ null, /* loaderIsa */ null);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PackageDexOptimizer.java | 225 final boolean isUsedByOtherApps = options.isDexoptAsSharedLibrary() 226 || packageUseInfo.isUsedByOtherApps(path); 228 options.getCompilerFilter(), isUsedByOtherApps); 370 if (options.isDexoptOnlySharedDex() && !dexUseInfo.isUsedByOtherApps()) { 377 dexUseInfo.isUsedByOtherApps()); 463 if (useInfo.isUsedByOtherApps(path)) { 479 if (dexUseInfo.isUsedByOtherApps()) { 496 boolean isUsedByOtherApps) { 507 if (isProfileGuidedCompilerFilter(targetCompilerFilter) && isUsedByOtherApps) { 495 getRealCompilerFilter(ApplicationInfo info, String targetCompilerFilter, boolean isUsedByOtherApps) argument
|