Home
last modified time | relevance | path

Searched refs:versionCode (Results 1 – 22 of 22) sorted by relevance

/cts/libs/rollback/src/com/android/cts/rollback/lib/
DRollback.java41 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/
DAppValidationTest.java84 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/
DTestApp.java85 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/
DUseSharedLibraryTest.java128 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/
DRestoreAnyVersionTest.java73 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/
DUpgradeTest.java113 private Install getParameterizedInstall(int versionCode) { in getParameterizedInstall() argument
114 List<TestApp> testApps = mInstallRule.getTestApps(mInstallType, versionCode); in getParameterizedInstall()
DDowngradeTest.java148 private Install getParameterizedInstall(int versionCode) { in getParameterizedInstall() argument
149 List<TestApp> testApps = mInstallRule.getTestApps(mInstallType, versionCode); in getParameterizedInstall()
DSamegradeTest.java162 private Install getParameterizedInstall(int versionCode) { in getParameterizedInstall() argument
163 List<TestApp> testApps = mInstallRule.getTestApps(mInstallType, versionCode); in getParameterizedInstall()
DInstallRule.java95 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/
DPackageIncidentTest.java61 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/
DVersion.java48 return getPackageInfo(context).versionCode; in getVersionCode()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DVersion.java37 return getPackageInfo(context).versionCode; in getVersionCode()
/cts/hostsidetests/install/src/android/cts/install/host/
DShimApexRule.java84 assertThat(shim.versionCode).isEqualTo(1L); in uninstallShimApexIfNecessary()
/cts/hostsidetests/webkit/app/src/com/android/cts/webkit/
DWebViewDeviceSideStartupTest.java158 assertEquals(expected.versionCode, actual.versionCode); in assertPackageEquals()
/cts/tools/release-parser/tests/resources/
DHelloActivity.apk.pb.txt42 key: "versionCode"
DCtsJniTestCases.apk.pb.txt154 key: "versionCode"
DShell.apk.pb.txt151 key: "versionCode"
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPackageUtil.java117 info.getLongVersionCode() : (long) info.versionCode; in getLongVersionCode()
/cts/tests/security/src/android/keystore/cts/
DAttestationApplicationId.java52 packageInfos.add(new AttestationPackageInfo(packageName, packageInfo.versionCode)); in AttestationApplicationId()
/cts/hostsidetests/incrementalinstall/src/android/incrementalinstall/cts/
DIncrementalInstallTest.java295 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/
DInstallUtilsHost.java105 assertThat(shim.versionCode).isEqualTo(1L); in uninstallShimApexIfNecessary()
/cts/hostsidetests/stagedinstall/src/com/android/tests/stagedinstall/host/
DStagedInstallTest.java241 assertThat(shimApex.versionCode).isEqualTo(1); in testShimApexShouldPreInstalledIfUpdatingApexIsSupported()
753 assertThat(apexInfo.getVersionCode()).isEqualTo(apex.versionCode); in testApexInfoList()