/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/library/ |
D | ApexSharedLibraryUpdaterTest.java | 25 import com.android.internal.pm.parsing.pkg.PackageImpl; 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 …]
|
D | RemoveUnnecessaryOrgApacheHttpLegacyLibraryTest.java | 26 import com.android.internal.pm.parsing.pkg.PackageImpl; 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 …]
|
D | RemoveUnnecessaryAndroidTestBaseLibraryTest.java | 26 import com.android.internal.pm.parsing.pkg.PackageImpl; 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 …]
|
D | AndroidHidlUpdaterTest.java | 27 import com.android.internal.pm.parsing.pkg.PackageImpl; 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 …]
|
D | OrgApacheHttpLegacyUpdaterTest.java | 26 import com.android.internal.pm.parsing.pkg.PackageImpl; 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 …]
|
D | AndroidTestBaseUpdaterTest.java | 26 import com.android.internal.pm.parsing.pkg.PackageImpl; 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 …]
|
D | PackageBackwardCompatibilityTest.java | 31 import com.android.internal.pm.parsing.pkg.PackageImpl; 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() 87 ParsingPackage after = PackageImpl.forTesting(PACKAGE_NAME) 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() 143 ParsingPackage after = PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesLibraries() 161 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in com_google_android_maps_in_usesLibraries() [all …]
|
D | ComGoogleAndroidMapsUpdaterTest.java | 24 import com.android.internal.pm.parsing.pkg.PackageImpl; 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()
|
D | AndroidNetIpSecIkeUpdaterTest.java | 24 import com.android.internal.pm.parsing.pkg.PackageImpl; 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()
|
D | AndroidTestRunnerSplitUpdaterTest.java | 27 import com.android.internal.pm.parsing.pkg.PackageImpl; 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()
|
/frameworks/base/core/java/com/android/internal/pm/parsing/pkg/ |
D | PackageImpl.java | 111 public class PackageImpl implements ParsedPackage, AndroidPackageInternal, class 425 public static PackageImpl forParsing(@NonNull String packageName, @NonNull String baseCodePath, in forParsing() 428 return new PackageImpl( in forParsing() 444 return PackageImpl.forTesting(packageName) in buildFakeForDeletion() 459 return new PackageImpl(packageName, baseCodePath, baseCodePath, null, false, null); in forTesting() 494 public PackageImpl addActivity(ParsedActivity parsedActivity) { in addActivity() 501 public PackageImpl addAdoptPermission(String adoptPermission) { in addAdoptPermission() 508 public final PackageImpl addApexSystemService( in addApexSystemService() 516 public PackageImpl addAttribution(ParsedAttribution attribution) { in addAttribution() 522 public PackageImpl addConfigPreference(ConfigurationInfo configPreference) { in addConfigPreference() [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/parsing/parcelling/ |
D | AndroidPackageTest.kt | 34 import com.android.internal.pm.parsing.pkg.PackageImpl in <lambda>() 56 class AndroidPackageTest : ParcelableComponentTest(AndroidPackage::class, PackageImpl::class) { in <lambda>() 62 override val defaultImpl = PackageImpl.forTesting("com.example.test") in <lambda>() 63 override val creator = PackageImpl.CREATOR in <lambda>() 193 PackageImpl::getPrimaryCpuAbi, in <lambda>() 200 PackageImpl::getSecondaryCpuAbi, in <lambda>() 283 getter(PackageImpl::getVersionCode, 3), in <lambda>() 284 getter(PackageImpl::getVersionCodeMajor, 9), in <lambda>() 305 PackageImpl::setAttributionsAreUserVisible, in <lambda>() 310 PackageImpl::addOverlayable, in <lambda>() [all …]
|
/frameworks/base/apct-tests/perftests/packagemanager/src/android/os/ |
D | PackageParsingPerfTest.kt | 28 import com.android.internal.pm.parsing.pkg.PackageImpl in <lambda>() 194 ParallelParser<PackageImpl>(cacher) { in <lambda>() 212 ) = PackageImpl( in <lambda>() 228 as PackageImpl in <lambda>() 284 class PackageCacher2(cacheDir: File) : PackageCacher<PackageImpl>(cacheDir) { in <lambda>() 286 PackageImpl(parcel) in <lambda>()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | MockSystem.kt | 60 import com.android.internal.pm.parsing.pkg.PackageImpl in <lambda>() 387 withPackage: (PackageImpl) -> PackageImpl = { it }, in stageScanExistingPackage() 422 withPackage: (PackageImpl) -> PackageImpl = { it }, in stageScanNewPackage() 445 ): Pair<File, PackageImpl> { in createBasicAndroidPackage() 447 val pkg = PackageImpl.forTesting(packageName, apkPath.parentFile.path) as PackageImpl in createBasicAndroidPackage() 557 val frameworkPkg = PackageImpl.forTesting("android", in stageFrameworkScan() 558 apk.parentFile.path) as PackageImpl in stageFrameworkScan() 575 withPackage = { pkg: PackageImpl -> in stageInstantAppResolverScan() 593 withPackage = { pkg: PackageImpl -> in stagePermissionsControllerScan() 610 withPackage = { pkg: PackageImpl -> in stageSupplementalProcessScan() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserSystemPackageInstallerTest.java | 56 import com.android.internal.pm.parsing.pkg.PackageImpl; 261 final AndroidPackage pkg1 = ((ParsedPackage) PackageImpl.forTesting(packageName1) in testShouldInstallPackage() 263 final AndroidPackage pkg2 = ((ParsedPackage) PackageImpl.forTesting(packageName2) in testShouldInstallPackage() 265 final AndroidPackage pkg3 = ((ParsedPackage) PackageImpl.forTesting(packageName3) in testShouldInstallPackage() 267 final AndroidPackage pkg4 = ((ParsedPackage) PackageImpl.forTesting(packageName4) in testShouldInstallPackage() 399 final AndroidPackage overlayPackage1 = ((ParsedPackage) PackageImpl.forTesting(overlayName1) in testInstallOverlayPackagesExplicitMode() 407 final AndroidPackage overlayPackage2 = ((ParsedPackage) PackageImpl.forTesting(overlayName2) in testInstallOverlayPackagesExplicitMode() 415 final AndroidPackage overlayPackage3 = ((ParsedPackage) PackageImpl.forTesting(overlayName3) in testInstallOverlayPackagesExplicitMode()
|
D | SELinuxMMACTest.java | 30 import com.android.internal.pm.parsing.pkg.PackageImpl; 231 ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in build()
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/pkg/ |
D | AndroidPackageUtils.java | 34 import com.android.internal.pm.parsing.pkg.PackageImpl; 62 PackageImpl pkg = (PackageImpl) aPkg; in getAllCodePathsExcludingResourceOnly() 82 PackageImpl pkg = (PackageImpl) aPkg; in getAllCodePaths()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/ |
D | ParsingUtils.java | 26 import com.android.internal.pm.parsing.pkg.PackageImpl; 66 return PackageImpl.forParsing(packageName, baseApkPath, path, manifestArray, in parseDefaultOneTime()
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/ |
D | PackageCacher.java | 34 import com.android.internal.pm.parsing.pkg.PackageImpl; 103 ParsedPackage pkg = new PackageImpl(p, callback); in fromCacheEntryStatic() 125 ((PackageImpl) pkg).writeToParcel(p, 0 /* flags */); in toCacheEntryStatic()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | CompatibilityModeTest.java | 35 import com.android.internal.pm.parsing.pkg.PackageImpl; 49 private PackageImpl mMockAndroidPackage; 56 mMockAndroidPackage = mock(PackageImpl.class); in setUp()
|
D | PackageManagerSettingsTests.java | 74 import com.android.internal.pm.parsing.pkg.PackageImpl; 186 ps1.setPkg(((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME_1).hideAsParsed()) in testApplicationInfoForUseSdkOptionalEnabled() 223 ps2.setPkg(((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME_2).hideAsParsed()) in testApplicationInfoForUseSdkOptionalEnabled() 255 ps1.setPkg(((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME_1).hideAsParsed()) in testApplicationInfoForUseSdkOptionalDisabled() 866 ps1.setPkg(((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME_1).hideAsParsed()) in testWriteReadUsesStaticLibraries() 872 ps2.setPkg(((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME_2).hideAsParsed()) in testWriteReadUsesStaticLibraries() 931 ps1.setPkg(((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME_1).hideAsParsed()) in testWriteReadUsesSdkLibraries() 937 ps2.setPkg(((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME_2).hideAsParsed()) in testWriteReadUsesSdkLibraries() 1015 packageSetting.setPkg(PackageImpl.forTesting(PACKAGE_NAME_1).hideAsParsed() in testWriteReadPendingRestore() 1034 packageSetting.setPkg(PackageImpl.forTesting(PACKAGE_NAME_1).hideAsParsed() in testWriteReadArchiveState() [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/pkg/ |
D | PackageStateTest.kt | 27 import com.android.internal.pm.parsing.pkg.PackageImpl 124 fillMissingData(packageState, pkg as PackageImpl) in collectionImmutability() 146 private fun fillMissingData(pkgSetting: PackageSetting, pkg: PackageImpl) { in fillMissingData()
|
/frameworks/base/core/java/com/android/internal/pm/parsing/ |
D | PackageParser2.java | 36 import com.android.internal.pm.parsing.pkg.PackageImpl; 195 return PackageImpl.forParsing(packageName, baseCodePath, codePath, manifestArray, in startParsingPackage()
|
D | PackageInfoCommonUtils.java | 50 import com.android.internal.pm.parsing.pkg.PackageImpl; 548 PackageImpl pkg = ((PackageImpl) input); in initForUser() 587 PackageImpl pkg = ((PackageImpl) input); in initForUser()
|
/frameworks/base/core/java/com/android/internal/pm/pkg/component/ |
D | ParsedServiceImpl.java | 19 import static com.android.internal.pm.parsing.pkg.PackageImpl.sForInternedString;
|