Home
last modified time | relevance | path

Searched refs:ParsedPackage (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/base/core/java/com/android/internal/pm/parsing/pkg/
DParsedPackage.java34 public interface ParsedPackage extends AndroidPackage { interface
38 ParsedPackage addUsesLibrary(int index, String libraryName); in addUsesLibrary()
40 ParsedPackage addUsesOptionalLibrary(int index, String libraryName); in addUsesOptionalLibrary()
42 ParsedPackage capPermissionPriorities(); in capPermissionPriorities()
44 ParsedPackage clearAdoptPermissions(); in clearAdoptPermissions()
46 ParsedPackage clearOriginalPackages(); in clearOriginalPackages()
48 ParsedPackage clearProtectedBroadcasts(); in clearProtectedBroadcasts()
50 ParsedPackage setBaseApkPath(String baseApkPath); in setBaseApkPath()
52 ParsedPackage setPath(String path); in setPath()
54 ParsedPackage setNativeLibraryDir(String nativeLibraryDir); in setNativeLibraryDir()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/library/
DApexSharedLibraryUpdaterTest.java26 import com.android.internal.pm.parsing.pkg.ParsedPackage;
91 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in checkNoChanges()
95 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in checkNoChanges()
105 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSince30Applied()
110 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSince30Applied()
123 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSinceFutureNotAppliedWithoutLibrary()
127 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSinceFutureNotAppliedWithoutLibrary()
139 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSinceFutureNotAppliedWithLibrary()
145 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSinceFutureNotAppliedWithLibrary()
159 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpBefore30NotApplied()
[all …]
DRemoveUnnecessaryOrgApacheHttpLegacyLibraryTest.java27 import com.android.internal.pm.parsing.pkg.ParsedPackage;
48 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O()
52 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O()
63 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries()
68 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries()
80 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries()
87 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries()
97 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries()
104 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries()
114 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
[all …]
DRemoveUnnecessaryAndroidTestBaseLibraryTest.java27 import com.android.internal.pm.parsing.pkg.ParsedPackage;
48 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O()
52 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O()
63 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries()
68 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries()
80 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries()
87 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries()
97 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries()
104 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries()
114 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
[all …]
DAndroidHidlUpdaterTest.java28 import com.android.internal.pm.parsing.pkg.ParsedPackage;
47 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P()
51 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P()
62 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_system()
68 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_system()
81 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_not_empty_usesLibraries()
86 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_not_empty_usesLibraries()
98 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_not_empty_usesLibraries_system()
106 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_not_empty_usesLibraries_system()
120 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_in_usesLibraries()
[all …]
DOrgApacheHttpLegacyUpdaterTest.java27 import com.android.internal.pm.parsing.pkg.ParsedPackage;
46 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O()
51 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O()
62 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries()
69 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries()
81 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries()
86 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries()
99 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries()
104 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries()
117 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
[all …]
DAndroidTestBaseUpdaterTest.java27 import com.android.internal.pm.parsing.pkg.ParsedPackage;
46 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q()
51 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q()
62 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_not_empty_usesLibraries()
69 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_not_empty_usesLibraries()
81 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_in_usesLibraries()
86 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_in_usesLibraries()
99 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_in_usesOptionalLibraries()
104 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_in_usesOptionalLibraries()
117 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
[all …]
DPackageBackwardCompatibilityTest.java32 import com.android.internal.pm.parsing.pkg.ParsedPackage;
49 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in null_usesLibraries_and_usesOptionalLibraries()
53 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in null_usesLibraries_and_usesOptionalLibraries()
82 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O()
96 checkBackwardsCompatibility(before, ((ParsedPackage) after.hideAsParsed()).hideAsFinal(), in targeted_at_O()
114 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_base_in_usesLibraries()
121 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_base_in_usesLibraries()
138 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesLibraries()
151 checkBackwardsCompatibility(before, ((ParsedPackage) after.hideAsParsed()).hideAsFinal(), in android_test_runner_in_usesLibraries()
161 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in com_google_android_maps_in_usesLibraries()
[all …]
DComGoogleAndroidMapsUpdaterTest.java25 import com.android.internal.pm.parsing.pkg.ParsedPackage;
42 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in otherUsesLibraries()
48 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in otherUsesLibraries()
59 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
64 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
76 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries()
81 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries()
91 private void checkBackwardsCompatibility(ParsedPackage before, AndroidPackage after, in checkBackwardsCompatibility()
DAndroidNetIpSecIkeUpdaterTest.java25 import com.android.internal.pm.parsing.pkg.ParsedPackage;
42 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in otherUsesLibraries()
48 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in otherUsesLibraries()
59 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
64 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
74 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries()
79 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries()
87 private void checkBackwardsCompatibility(ParsedPackage before, AndroidPackage after, in checkBackwardsCompatibility()
DAndroidTestRunnerSplitUpdaterTest.java28 import com.android.internal.pm.parsing.pkg.ParsedPackage;
46 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesOptionalLibraries()
51 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesOptionalLibraries()
63 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesLibraries_android_test_mock_in_usesOptionalLibraries()
69 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesLibraries_android_test_mock_in_usesOptionalLibraries()
79 private void checkBackwardsCompatibility(ParsedPackage before, AndroidPackage after, in checkBackwardsCompatibility()
/frameworks/base/services/core/java/com/android/server/pm/parsing/
DPackageCacher.java35 import com.android.internal.pm.parsing.pkg.ParsedPackage;
83 protected ParsedPackage fromCacheEntry(byte[] bytes) { in fromCacheEntry()
89 public static ParsedPackage fromCacheEntryStatic(byte[] bytes) { in fromCacheEntryStatic()
93 private static ParsedPackage fromCacheEntryStatic(byte[] bytes, in fromCacheEntryStatic()
103 ParsedPackage pkg = new PackageImpl(p, callback); in fromCacheEntryStatic()
113 protected byte[] toCacheEntry(ParsedPackage pkg) { in toCacheEntry()
120 public static byte[] toCacheEntryStatic(ParsedPackage pkg) { in toCacheEntryStatic()
182 public ParsedPackage getCachedResult(File packageFile, int flags) { in getCachedResult()
193 ParsedPackage parsed = fromCacheEntry(bytes); in getCachedResult()
213 public void cacheResult(File packageFile, int flags, ParsedPackage parsed) { in cacheResult()
/frameworks/base/core/java/com/android/internal/pm/parsing/
DIPackageCacher.java18 import com.android.internal.pm.parsing.pkg.ParsedPackage;
29 ParsedPackage getCachedResult(File packageFile, int flags); in getCachedResult()
34 void cacheResult(File packageFile, int flags, ParsedPackage parsed); in cacheResult()
DPackageParser2.java37 import com.android.internal.pm.parsing.pkg.ParsedPackage;
117 public ParsedPackage parsePackage(File packageFile, int flags, boolean useCaches) in parsePackage()
126 ParsedPackage parsed = mCacher.getCachedResult(packageFile, flags); in parsePackage()
140 ParsedPackage parsed = (ParsedPackage) result.getResult().hideAsParsed(); in parsePackage()
163 public ParsedPackage parsePackageFromPackageLite(PackageLite packageLite, int flags) in parsePackageFromPackageLite()
/frameworks/base/services/core/java/com/android/server/pm/parsing/library/
DPackageBackwardCompatibility.java27 import com.android.internal.pm.parsing.pkg.ParsedPackage;
133 public static void modifySharedLibraries(ParsedPackage parsedPackage, boolean isSystemApp, in modifySharedLibraries()
139 public void updatePackage(ParsedPackage parsedPackage, boolean isSystemApp, in updatePackage()
167 public void updatePackage(ParsedPackage parsedPackage, boolean isSystemApp, in updatePackage()
184 public void updatePackage(ParsedPackage parsedPackage, boolean isSystemApp, in updatePackage()
200 public void updatePackage(ParsedPackage parsedPackage, boolean isSystemApp, in updatePackage()
DApexSharedLibraryUpdater.java22 import com.android.internal.pm.parsing.pkg.ParsedPackage;
46 public void updatePackage(ParsedPackage parsedPackage, boolean isSystemApp, in updatePackage()
55 ParsedPackage parsedPackage) { in updateSharedLibraryForPackage()
DAndroidNetIpSecIkeUpdater.java19 import com.android.internal.pm.parsing.pkg.ParsedPackage;
32 public void updatePackage(ParsedPackage parsedPackage, boolean isSystemApp, in updatePackage()
DComGoogleAndroidMapsUpdater.java19 import com.android.internal.pm.parsing.pkg.ParsedPackage;
32 public void updatePackage(ParsedPackage parsedPackage, boolean isSystemApp, in updatePackage()
DOrgApacheHttpLegacyUpdater.java23 import com.android.internal.pm.parsing.pkg.ParsedPackage;
40 public void updatePackage(ParsedPackage parsedPackage, boolean isSystemApp, in updatePackage()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDexMetadataHelperTest.java41 import com.android.internal.pm.parsing.pkg.ParsedPackage;
158 private static void validatePackageDexMetatadataVaryingRequireManifest(ParsedPackage pkg) in validatePackageDexMetatadataVaryingRequireManifest()
169 ParsedPackage pkg = new TestPackageParser2().parsePackage(mTmpDir, /*flags=*/0, false); in testParsePackageWithDmFileValid()
188 ParsedPackage pkg = new TestPackageParser2().parsePackage(mTmpDir, /*flags=*/0, false); in testParsePackageSplitsWithDmFileValid()
210 ParsedPackage pkg = new TestPackageParser2().parsePackage(mTmpDir, /*flags=*/0, false); in testParsePackageSplitsNoBaseWithDmFileValid()
229 ParsedPackage pkg = new TestPackageParser2().parsePackage(mTmpDir, /*flags=*/0, false); in testParsePackageWithDmFileInvalid()
237 ParsedPackage pkg = new TestPackageParser2().parsePackage(mTmpDir, /*flags=*/0, false); in testParsePackageWithDmFileInvalid()
255 ParsedPackage pkg = new TestPackageParser2().parsePackage(mTmpDir, /*flags=*/0, false); in testParsePackageSplitsWithDmFileInvalid()
263 ParsedPackage pkg = new TestPackageParser2().parsePackage(mTmpDir, /*flags=*/0, false); in testParsePackageSplitsWithDmFileInvalid()
278 ParsedPackage pkg = new TestPackageParser2().parsePackage(mTmpDir, /*flags=*/0, false); in testParsePackageWithDmFileInvalidManifest()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DScanTests.java54 import com.android.internal.pm.parsing.pkg.ParsedPackage;
244 final ParsedPackage pkg = ((ParsedPackage) createBasicPackage("ogl.sdk_123") in installSdkLibrary()
275 final ParsedPackage pkg = ((ParsedPackage) createBasicPackage("static.lib.pkg") in installStaticSharedLibrary()
307 final ParsedPackage pkg = ((ParsedPackage) createBasicPackage( in installDynamicLibraries()
357 final ParsedPackage basicPackage = ((ParsedPackage) createBasicPackage(DUMMY_PACKAGE_NAME) in volumeUuidChangesOnUpdate()
377 final ParsedPackage basicPackage = in scanFirstBoot_apexDontDeriveAbis()
378 ((ParsedPackage) new PackageImpl(DUMMY_PACKAGE_NAME, codePath, codePath, in scanFirstBoot_apexDontDeriveAbis()
413 final ParsedPackage basicPackage = in scanFirstBoot_derivesAbis()
414 ((ParsedPackage) createBasicPackage(DUMMY_PACKAGE_NAME) in scanFirstBoot_derivesAbis()
432 final ParsedPackage basicPackage = in scanWithOriginalPkgSetting_packageNameChanges()
[all …]
DScanRequestBuilder.java23 import com.android.internal.pm.parsing.pkg.ParsedPackage;
27 private final ParsedPackage mPkg;
42 ScanRequestBuilder(ParsedPackage pkg) { in ScanRequestBuilder()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/
DPackageParserLegacyCoreTest.java42 import com.android.internal.pm.parsing.pkg.ParsedPackage;
415 ParsedPackage parsePackage(String apkFileName, int apkResourceId, in parsePackage()
416 Function<ParsedPackage, ParsedPackage> converter) throws Exception { in parsePackage() argument
493 Function<ParsedPackage, ParsedPackage> converter) throws Exception { in checkPackageWithComponents() argument
494 ParsedPackage p = parsePackage( in checkPackageWithComponents()
527 private void findAndRemoveAppDetailsActivity(ParsedPackage p) { in findAndRemoveAppDetailsActivity()
553 Function<ParsedPackage, ParsedPackage> converter) throws Exception { in checkPackageWithIntentFilters() argument
554 ParsedPackage p = parsePackage( in checkPackageWithIntentFilters()
575 ParsedPackage pkg; in testUsesSdk()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageAbiHelper.java25 import com.android.internal.pm.parsing.pkg.ParsedPackage;
101 public void applyTo(ParsedPackage pkg) { in applyTo()
122 public void applyTo(ParsedPackage pkg) { in applyTo()
DScanRequest.java24 import com.android.internal.pm.parsing.pkg.ParsedPackage;
32 @NonNull public final ParsedPackage mParsedPackage;
63 @NonNull ParsedPackage parsedPackage, in ScanRequest()

123