Searched refs:PackageVersions (Results 1 – 11 of 11) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/ |
D | PackageTrackerTest.java | 59 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 …]
|
D | PackageVersionsTest.java | 31 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()
|
D | CheckTokenTest.java | 34 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()
|
D | PackageStatusTest.java | 31 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()
|
D | PackageStatusStorageTest.java | 43 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()
|
D | RulesManagerServiceTest.java | 989 return new CheckToken(1, new PackageVersions(1, 1)); in createArbitraryToken()
|
/frameworks/base/services/core/java/com/android/server/timezone/ |
D | PackageVersions.java | 22 final class PackageVersions { class 27 PackageVersions(long updateAppVersion, long dataAppVersion) { in PackageVersions() method in PackageVersions 41 PackageVersions that = (PackageVersions) o; in equals()
|
D | CheckToken.java | 34 final PackageVersions mPackageVersions; 36 CheckToken(int optimisticLockId, PackageVersions packageVersions) { in CheckToken() 63 return new CheckToken(versionId, new PackageVersions(updateAppVersion, dataAppVersion)); in fromByteArray()
|
D | PackageStatus.java | 45 final PackageVersions mVersions; 47 PackageStatus(@CheckStatus int checkStatus, PackageVersions versions) { in PackageStatus()
|
D | PackageStatusStorage.java | 138 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()
|
D | PackageTracker.java | 280 PackageVersions currentInstalledVersions = lookupInstalledPackageVersions(); in triggerUpdateIfNeeded() 456 private PackageVersions lookupInstalledPackageVersions() { in lookupInstalledPackageVersions() 469 return new PackageVersions(updatePackageVersion, dataPackageVersion); in lookupInstalledPackageVersions()
|