Home
last modified time | relevance | path

Searched refs:getLongVersionCode (Results 1 – 25 of 65) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackageInfo.java132 mVersionCode = pi.getLongVersionCode(); in updateFromPackageInfo()
155 if (!anyVersionOkay && (currentPackage.getLongVersionCode() < mBackupSourceVersionCode)) { in canRestoreTo()
158 currentPackage.getLongVersionCode(), mBackupSourceVersionCode)); in canRestoreTo()
176 final ShortcutPackageInfo ret = new ShortcutPackageInfo(pi.getLongVersionCode(), in generateForInstalledPackageForTest()
180 ret.mBackupSourceVersionCode = pi.getLongVersionCode(); in generateForInstalledPackageForTest()
DPackageManagerNative.java102 return pInfo.getLongVersionCode(); in getVersionCodeForPackage()
DInstallPackageHelper.java2653 if (dataOwnerPkg.getLongVersionCode() != requiredInstalledVersionCode) { in verifyReplacingVersionCode()
2657 + dataOwnerPkg.getLongVersionCode(); in verifyReplacingVersionCode()
2716 final long activeVersion = activePackage.getLongVersionCode(); in verifyReplacingVersionCodeForApex()
2728 final long newVersionCode = pkgLite.getLongVersionCode(); in verifyReplacingVersionCodeForApex()
2975 info.mRemovedPackageVersionCode = request.getPkg().getLongVersionCode(); in handlePackagePostInstall()
3414 + scannedPkg.getLongVersionCode()); in prepareSystemPackageCleanUp()
4081 && parsedPackage.getLongVersionCode() > pkgSetting.getVersionCode(); in scanSystemPackageLI()
4105 + parsedPackage.getLongVersionCode() in scanSystemPackageLI()
4149 + " better than this " + parsedPackage.getLongVersionCode(), in scanSystemPackageLI()
4212 + parsedPackage.getLongVersionCode() in scanSystemPackageLI()
[all …]
DShortcutPackageItem.java134 currentVersionCode = pi.getLongVersionCode(); in attemptToRestoreIfNeededAndSave()
DPackageManagerServiceUtils.java1425 if (after.getLongVersionCode() < before.getLongVersionCode()) { in checkDowngrade()
1428 + before.getLongVersionCode()); in checkDowngrade()
1429 } else if (after.getLongVersionCode() == before.getLongVersionCode()) { in checkDowngrade()
/frameworks/base/core/java/android/content/pm/
DAuxiliaryResolveInfo.java104 this.versionCode = resolveInfo.getLongVersionCode(); in AuxiliaryFilter()
113 this.versionCode = resolveInfo.getLongVersionCode(); in AuxiliaryFilter()
DVersionedPackage.java90 public @VersionCode long getLongVersionCode() { in getLongVersionCode() method in VersionedPackage
DPackageInfoLite.java60 public long getLongVersionCode() { in getLongVersionCode() method in PackageInfoLite
/frameworks/base/services/core/java/com/android/server/pm/parsing/pkg/
DAndroidPackageUtils.java100 pkg.getLongVersionCode()), in createSharedLibraryForSdk()
111 pkg.getLongVersionCode()), in createSharedLibraryForStatic()
120 pkg.getLongVersionCode()), in createSharedLibraryForDynamic()
144 long versionCode = pkg.getLongVersionCode(); in validatePackageDexMetadata()
/frameworks/base/core/java/android/webkit/
DWebViewFactory.java412 if (chosen.getLongVersionCode() > toUse.getLongVersionCode()) { in verifyPackageInfo()
414 + "version code is lower than expected: " + chosen.getLongVersionCode() in verifyPackageInfo()
415 + " actual: " + toUse.getLongVersionCode()); in verifyPackageInfo()
547 sPackageInfo.versionName + " (code " + sPackageInfo.getLongVersionCode() + ")"); in getProviderClass()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DScanTests.java265 assertThat(scanResult.mSdkSharedLibraryInfo.getDeclaringPackage().getLongVersionCode(), in installSdkLibrary()
266 is(pkg.getLongVersionCode())); in installSdkLibrary()
297 assertThat(scanResult.mStaticSharedLibraryInfo.getDeclaringPackage().getLongVersionCode(), in installStaticSharedLibrary()
298 is(pkg.getLongVersionCode())); in installStaticSharedLibrary()
329 assertThat(dynamicLib0.getDeclaringPackage().getLongVersionCode(), in installDynamicLibraries()
330 is(pkg.getLongVersionCode())); in installDynamicLibraries()
342 assertThat(dynamicLib1.getDeclaringPackage().getLongVersionCode(), in installDynamicLibraries()
343 is(pkg.getLongVersionCode())); in installDynamicLibraries()
/frameworks/base/tests/StagedInstallTest/app/src/com/android/tests/stagedinstallinternal/
DStagedInstallInternalTest.java449 assertThat(apex.getLongVersionCode()).isEqualTo(1); in testRebootlessUpdates()
463 assertThat(apex.getLongVersionCode()).isEqualTo(1); in testRebootlessUpdates()
473 assertThat(apex.getLongVersionCode()).isEqualTo(1); in testRebootlessUpdates()
487 assertThat(apex.getLongVersionCode()).isEqualTo(2); in testRebootlessUpdates()
497 assertThat(apex.getLongVersionCode()).isEqualTo(1); in testRebootlessUpdates()
603 assertThat(pi.getLongVersionCode()).isEqualTo(1); in testVendorApex_VerifyFactory()
614 assertThat(pi.getLongVersionCode()).isEqualTo(2); in testVendorApex_VerifyData()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java285 long longVersionCode = pkgInfo.getLongVersionCode(); in installPackage()
286 if (existingPkgInfo.getLongVersionCode() == longVersionCode) { in installPackage()
296 } else if (existingPkgInfo.getLongVersionCode() > longVersionCode) { in installPackage()
301 + existingPkgInfo.getLongVersionCode() + in installPackage()
307 + existingPkgInfo.getLongVersionCode() + ") for " + packageName); in installPackage()
/frameworks/base/tests/RollbackTest/SampleRollbackApp/src/com/android/sample/rollbackapp/
DMainActivity.java144 + pkgInfo.getVersionRolledBackFrom().getLongVersionCode() + " -> " in getView()
145 + pkgInfo.getVersionRolledBackTo().getLongVersionCode() + ","); in getView()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollback.java582 pkgRollbackInfo.getVersionRolledBackFrom().getLongVersionCode()); in commit()
808 && pkgRollbackInfo.getVersionRolledBackFrom().getLongVersionCode() in includesPackageWithDifferentVersion()
973 + " " + pkg.getVersionRolledBackFrom().getLongVersionCode() in dump()
974 + " -> " + pkg.getVersionRolledBackTo().getLongVersionCode() in dump()
982 ipw.println(cPkg.getPackageName() + " " + cPkg.getLongVersionCode()); in dump()
/frameworks/base/services/core/java/com/android/server/security/
DKeyAttestationApplicationIdProviderService.java73 pInfo.versionCode = packageInfo.getLongVersionCode(); in getKeyAttestationApplicationId()
/frameworks/base/services/core/java/com/android/server/crashrecovery/
DCrashRecoveryHelper.java104 final long versionCode = getPackageInfo(packageName).getLongVersionCode(); in getVersionedPackage()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DApexManagerTest.java401 assertThat(newPkg.getLongVersionCode()).isEqualTo(2); in testInstallPackage_activeOnSystem()
406 assertThat(factoryPkg.getLongVersionCode()).isEqualTo(1); in testInstallPackage_activeOnSystem()
432 assertThat(newPkg.getLongVersionCode()).isEqualTo(2); in testInstallPackage_activeOnData()
437 assertThat(factoryPkg.getLongVersionCode()).isEqualTo(1); in testInstallPackage_activeOnData()
/frameworks/base/services/backup/java/com/android/server/backup/
DPackageManagerBackupAgent.java315 && info.getLongVersionCode() in onBackup()
343 outputBufferStream.writeLong(info.getLongVersionCode()); in onBackup()
358 + info.getLongVersionCode() in onBackup()
680 out.writeLong(pkg.getLongVersionCode()); in writeStateFile()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DBackupManagerMonitorEventSender.java104 pkg.getLongVersionCode()); in monitorEvent()
DTarBackupReader.java450 } else if (pkgInfo.getLongVersionCode() >= info.version) { in chooseRestorePolicy()
476 + pkgInfo.getLongVersionCode() in chooseRestorePolicy()
788 && (installedPackageInfo.getLongVersionCode() in isAllowlistedForVToURestore()
/frameworks/base/services/core/java/com/android/server/webkit/
DWebViewUpdateServiceImpl.java553 if (!versionCodeGE(packageInfo.getLongVersionCode(), getMinimumVersionCode()) in validityResult()
740 systemUserPackageInfo.getLongVersionCode(), in dumpAllPackageInformationLocked()
DWebViewUpdateServiceImpl2.java613 if (!versionCodeGE(packageInfo.getLongVersionCode(), getMinimumVersionCode()) in validityResult()
796 systemUserPackageInfo.getLongVersionCode(), in dumpAllPackageInformationLocked()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DAppMetadataBackupWriter.java133 printer.println(Long.toString(packageInfo.getLongVersionCode())); in getManifestBytes()
/frameworks/base/packages/SettingsLib/HelpUtils/src/com/android/settingslib/
DHelpUtils.java265 sCachedVersionCode = Long.toString(info.getLongVersionCode()); in uriWithAddedParameters()

123