/cts/libs/rollback/src/com/android/cts/rollback/lib/ |
D | Rollback.java | 41 private Rollback(String packageName, long versionCode) { in Rollback() argument 42 mFrom = new VersionedPackage(packageName, versionCode); in Rollback() 57 public static Rollback from(String packageName, long versionCode) { in from() argument 58 return new Rollback(packageName, versionCode); in from() 73 public Rollback to(String packageName, long versionCode) { in to() argument 74 mTo = new VersionedPackage(packageName, versionCode); in to()
|
/cts/hostsidetests/incrementalinstall/appvalidator/src/android/incrementalinstall/inrementaltestappvalidation/ |
D | AppValidationTest.java | 84 int versionCode = Integer.parseInt(InstrumentationRegistry.getArguments() in testInstallationTypeAndVersion() local 89 assertEquals(versionCode, installedAppInfo.versionCode); in testInstallationTypeAndVersion() 106 int versionCode = Integer.parseInt( in getInstalledAppInfo() local 108 return new InstalledAppInfo(installationPath, versionCode); in getInstalledAppInfo() 114 private final int versionCode; field in AppValidationTest.InstalledAppInfo 116 InstalledAppInfo(String installedPath, int versionCode) { in InstalledAppInfo() argument 118 this.versionCode = versionCode; in InstalledAppInfo()
|
/cts/libs/install/src/com/android/cts/install/lib/ |
D | TestApp.java | 85 public TestApp(String name, String packageName, long versionCode, boolean isApex, in TestApp() argument 89 mVersionCode = versionCode; in TestApp() 95 public TestApp(String name, String packageName, long versionCode, boolean isApex, in TestApp() argument 99 mVersionCode = versionCode; in TestApp() 118 public TestApp(String name, String packageName, long versionCode, boolean isApex, File path) { in TestApp() argument 119 this(name, packageName, versionCode, isApex, new File[]{ path }); in TestApp()
|
/cts/hostsidetests/os/test-apps/StaticSharedLibConsumerApp1/src/android/os/lib/consumer1/ |
D | UseSharedLibraryTest.java | 128 final long versionCode = sharedLib.getLongVersion(); in testSharedLibrariesProperlyReported() local 129 if (versionCode == 1) { in testSharedLibrariesProperlyReported() 136 } else if (versionCode == 2) { in testSharedLibrariesProperlyReported() 140 } else if (versionCode == 5) { in testSharedLibrariesProperlyReported() 147 } else if (versionCode == 6) { in testSharedLibrariesProperlyReported() 183 final long versionCode = sharedLib.getLongVersion(); in testDeclaredSharedLibrariesProperlyReported() local 184 if (versionCode == 1) { in testDeclaredSharedLibrariesProperlyReported() 191 } else if (versionCode == 2) { in testDeclaredSharedLibrariesProperlyReported() 195 } else if (versionCode == 5) { in testDeclaredSharedLibrariesProperlyReported()
|
/cts/hostsidetests/backup/RestoreAnyVersion/src/ |
D | RestoreAnyVersionTest.java | 73 assertEquals(NEW_VERSION, packageInfo.versionCode); in checkAppVersionIsNew() 92 assertEquals(OLD_VERSION, packageInfo.versionCode); in checkAppVersionIsOld() 106 .getPackageInfo(mContext.getPackageName(), 0).versionCode); in saveAppVersionCodeToSharedPreference()
|
/cts/hostsidetests/install/app/src/android/cts/install/ |
D | UpgradeTest.java | 113 private Install getParameterizedInstall(int versionCode) { in getParameterizedInstall() argument 114 List<TestApp> testApps = mInstallRule.getTestApps(mInstallType, versionCode); in getParameterizedInstall()
|
D | DowngradeTest.java | 148 private Install getParameterizedInstall(int versionCode) { in getParameterizedInstall() argument 149 List<TestApp> testApps = mInstallRule.getTestApps(mInstallType, versionCode); in getParameterizedInstall()
|
D | SamegradeTest.java | 162 private Install getParameterizedInstall(int versionCode) { in getParameterizedInstall() argument 163 List<TestApp> testApps = mInstallRule.getTestApps(mInstallType, versionCode); in getParameterizedInstall()
|
D | InstallRule.java | 95 List<TestApp> getTestApps(INSTALL_TYPE installType, int versionCode) { in getTestApps() argument 97 .map(packageName -> getTestApp(packageName, versionCode)) in getTestApps()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | PackageIncidentTest.java | 61 final int versionCode = Integer.parseInt(matcher.group(2)); in testPackageServiceDump() local 78 assertEquals(testPackage.getVersionCode(), versionCode); in testPackageServiceDump() local
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/ |
D | Version.java | 48 return getPackageInfo(context).versionCode; in getVersionCode()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | Version.java | 37 return getPackageInfo(context).versionCode; in getVersionCode()
|
/cts/hostsidetests/install/src/android/cts/install/host/ |
D | ShimApexRule.java | 84 assertThat(shim.versionCode).isEqualTo(1L); in uninstallShimApexIfNecessary()
|
/cts/hostsidetests/webkit/app/src/com/android/cts/webkit/ |
D | WebViewDeviceSideStartupTest.java | 158 assertEquals(expected.versionCode, actual.versionCode); in assertPackageEquals()
|
/cts/tools/release-parser/tests/resources/ |
D | HelloActivity.apk.pb.txt | 42 key: "versionCode"
|
D | CtsJniTestCases.apk.pb.txt | 154 key: "versionCode"
|
D | Shell.apk.pb.txt | 151 key: "versionCode"
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PackageUtil.java | 117 info.getLongVersionCode() : (long) info.versionCode; in getLongVersionCode()
|
/cts/tests/security/src/android/keystore/cts/ |
D | AttestationApplicationId.java | 52 packageInfos.add(new AttestationPackageInfo(packageName, packageInfo.versionCode)); in AttestationApplicationId()
|
/cts/hostsidetests/incrementalinstall/src/android/incrementalinstall/cts/ |
D | IncrementalInstallTest.java | 295 int versionCode) throws Exception { in verifyInstallationTypeAndVersion() argument 299 args.put(Consts.INSTALLED_VERSION_CODE_TAG, Integer.toString(versionCode)); in verifyInstallationTypeAndVersion()
|
/cts/libs/install/src/android/cts/install/lib/host/ |
D | InstallUtilsHost.java | 105 assertThat(shim.versionCode).isEqualTo(1L); in uninstallShimApexIfNecessary()
|
/cts/hostsidetests/stagedinstall/src/com/android/tests/stagedinstall/host/ |
D | StagedInstallTest.java | 241 assertThat(shimApex.versionCode).isEqualTo(1); in testShimApexShouldPreInstalledIfUpdatingApexIsSupported() 753 assertThat(apexInfo.getVersionCode()).isEqualTo(apex.versionCode); in testApexInfoList()
|