Home
last modified time | relevance | path

Searched refs:PackageVersions (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/
DPackageTrackerTest.java59 private static final PackageVersions INITIAL_APP_PACKAGE_VERSIONS =
60 new PackageVersions(2 /* updateAppVersion */, 2 /* dataAppVersion */);
312 PackageVersions packageVersions = in trackingEnabled_packageUpdate_badUpdateAppManifestEntry()
313 new PackageVersions(2 /* updateAppPackageVersion */, 3 /* dataAppPackageVersion */); in trackingEnabled_packageUpdate_badUpdateAppManifestEntry()
349 PackageVersions packageVersions = in trackingEnabled_packageUpdate_badDataAppManifestEntry()
350 new PackageVersions(2 /* updateAppPackageVersion */, 3 /* dataAppPackageVersion */); in trackingEnabled_packageUpdate_badDataAppManifestEntry()
394 PackageVersions packageVersions = in trackingEnabled_packageUpdate_responseWithToken()
395 new PackageVersions(2 /* updateAppPackageVersion */, 3 /* dataAppPackageVersion */); in trackingEnabled_packageUpdate_responseWithToken()
442 PackageVersions packageVersions = in trackingEnabled_packageUpdate_responseWithoutTokenCausesStorageReset()
443 new PackageVersions(2 /* updateAppPackageVersion */, 3 /* dataAppPackageVersion */); in trackingEnabled_packageUpdate_responseWithoutTokenCausesStorageReset()
[all …]
DPackageVersionsTest.java31 PackageVersions baseline = in equals()
32 new PackageVersions(1 /* updateAppVersion */, 1 /* dataAppVersion */); in equals()
35 PackageVersions deepEqual = in equals()
36 new PackageVersions(1 /* updateAppVersion */, 1 /* dataAppVersion */); in equals()
39 PackageVersions differentUpdateAppVersion = in equals()
40 new PackageVersions(2 /* updateAppVersion */, 1 /* dataAppVersion */); in equals()
43 PackageVersions differentDataAppVersion = in equals()
44 new PackageVersions(1 /* updateAppVersion */, 2 /* dataAppVersion */); in equals()
DCheckTokenTest.java34 PackageVersions packageVersions = in toByteArray()
35 new PackageVersions(1 /* updateAppVersion */, 1 /* dataAppVersion */); in toByteArray()
42 PackageVersions packageVersions = in fromByteArray()
43 new PackageVersions(1 /* updateAppVersion */, 1 /* dataAppVersion */); in fromByteArray()
57 PackageVersions packageVersions1 = in equals()
58 new PackageVersions(1 /* updateAppVersion */, 1 /* dataAppVersion */); in equals()
59 PackageVersions packageVersions2 = in equals()
60 new PackageVersions(2 /* updateAppVersion */, 2 /* dataAppVersion */); in equals()
DPackageStatusTest.java31 PackageVersions packageVersions1 = in equals()
32 new PackageVersions(1 /* updateAppVersion */, 1 /* dataAppVersion */); in equals()
33 PackageVersions packageVersions2 = in equals()
34 new PackageVersions(2 /* updateAppVersion */, 1 /* dataAppVersion */); in equals()
DPackageStatusStorageTest.java43 private static final PackageVersions VALID_PACKAGE_VERSIONS = new PackageVersions(1, 2);
168 PackageVersions packageVersions = VALID_PACKAGE_VERSIONS; in checkToken_tokenIsUnique()
186 PackageVersions packageVersions = VALID_PACKAGE_VERSIONS; in markChecked_checkSucceeded()
199 PackageVersions packageVersions = VALID_PACKAGE_VERSIONS; in markChecked_checkFailed()
212 PackageVersions packageVersions = VALID_PACKAGE_VERSIONS; in markChecked_optimisticLocking_multipleToken()
233 PackageVersions packageVersions = VALID_PACKAGE_VERSIONS; in markChecked_optimisticLocking_repeatedTokenUse()
DRulesManagerServiceTest.java989 return new CheckToken(1, new PackageVersions(1, 1)); in createArbitraryToken()
/frameworks/base/services/core/java/com/android/server/timezone/
DPackageVersions.java22 final class PackageVersions { class
27 PackageVersions(long updateAppVersion, long dataAppVersion) { in PackageVersions() method in PackageVersions
41 PackageVersions that = (PackageVersions) o; in equals()
DCheckToken.java34 final PackageVersions mPackageVersions;
36 CheckToken(int optimisticLockId, PackageVersions packageVersions) { in CheckToken()
63 return new CheckToken(versionId, new PackageVersions(updateAppVersion, dataAppVersion)); in fromByteArray()
DPackageStatus.java45 final PackageVersions mVersions;
47 PackageStatus(@CheckStatus int checkStatus, PackageVersions versions) { in PackageStatus()
DPackageStatusStorage.java138 new PackageVersions(updateAppVersion, dataAppVersion)); in getPackageStatusLocked()
173 CheckToken generateCheckToken(PackageVersions currentInstalledVersions) { in generateCheckToken()
289 int newOptimisticLockId, Integer status, PackageVersions packageVersions) in writePackageStatusWithOptimisticLockCheck()
309 PackageVersions packageVersions) throws IOException { in writePackageStatusLocked()
349 public void forceCheckStateForTests(int checkStatus, PackageVersions packageVersions) in forceCheckStateForTests()
DPackageTracker.java280 PackageVersions currentInstalledVersions = lookupInstalledPackageVersions(); in triggerUpdateIfNeeded()
456 private PackageVersions lookupInstalledPackageVersions() { in lookupInstalledPackageVersions()
469 return new PackageVersions(updatePackageVersion, dataPackageVersion); in lookupInstalledPackageVersions()