Searched refs:packageVersions (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/ |
D | PackageStatusStorageTest.java | 168 PackageVersions packageVersions = VALID_PACKAGE_VERSIONS; in checkToken_tokenIsUnique() local 170 new PackageStatus(PackageStatus.CHECK_STARTED, packageVersions); in checkToken_tokenIsUnique() 172 CheckToken token1 = mPackageStatusStorage.generateCheckToken(packageVersions); in checkToken_tokenIsUnique() 173 assertEquals(packageVersions, token1.mPackageVersions); in checkToken_tokenIsUnique() 178 CheckToken token2 = mPackageStatusStorage.generateCheckToken(packageVersions); in checkToken_tokenIsUnique() 179 assertEquals(packageVersions, token1.mPackageVersions); in checkToken_tokenIsUnique() 186 PackageVersions packageVersions = VALID_PACKAGE_VERSIONS; in markChecked_checkSucceeded() local 188 CheckToken token = mPackageStatusStorage.generateCheckToken(packageVersions); in markChecked_checkSucceeded() 193 new PackageStatus(PackageStatus.CHECK_COMPLETED_SUCCESS, packageVersions); in markChecked_checkSucceeded() 199 PackageVersions packageVersions = VALID_PACKAGE_VERSIONS; in markChecked_checkFailed() local [all …]
|
D | PackageTrackerTest.java | 312 PackageVersions packageVersions = in trackingEnabled_packageUpdate_badUpdateAppManifestEntry() local 317 UPDATE_APP_PACKAGE_NAME, packageVersions.mUpdateAppVersion); in trackingEnabled_packageUpdate_badUpdateAppManifestEntry() 318 configureDataAppPackageVersion(DATA_APP_PACKAGE_NAME, packageVersions.mDataAppVersion); in trackingEnabled_packageUpdate_badUpdateAppManifestEntry() 349 PackageVersions packageVersions = in trackingEnabled_packageUpdate_badDataAppManifestEntry() local 354 UPDATE_APP_PACKAGE_NAME, packageVersions.mUpdateAppVersion); in trackingEnabled_packageUpdate_badDataAppManifestEntry() 355 configureDataAppPackageVersion(DATA_APP_PACKAGE_NAME, packageVersions.mDataAppVersion); in trackingEnabled_packageUpdate_badDataAppManifestEntry() 394 PackageVersions packageVersions = in trackingEnabled_packageUpdate_responseWithToken() local 396 simulatePackageInstallation(packageVersions); in trackingEnabled_packageUpdate_responseWithToken() 399 checkUpdateCheckTriggered(packageVersions); in trackingEnabled_packageUpdate_responseWithToken() 407 checkUpdateCheckSuccessful(packageVersions); in trackingEnabled_packageUpdate_responseWithToken() [all …]
|
D | CheckTokenTest.java | 34 PackageVersions packageVersions = in toByteArray() local 36 CheckToken originalToken = new CheckToken(1 /* optimisticLockId */, packageVersions); in toByteArray() 42 PackageVersions packageVersions = in fromByteArray() local 44 CheckToken token = new CheckToken(1, packageVersions); in fromByteArray()
|
/frameworks/base/services/core/java/com/android/server/timezone/ |
D | PackageStatusStorage.java | 289 int newOptimisticLockId, Integer status, PackageVersions packageVersions) in writePackageStatusWithOptimisticLockCheck() argument 303 writePackageStatusLocked(status, newOptimisticLockId, packageVersions); in writePackageStatusWithOptimisticLockCheck() 309 PackageVersions packageVersions) throws IOException { in writePackageStatusLocked() argument 310 if ((status == null) != (packageVersions == null)) { in writePackageStatusLocked() 328 ? UNKNOWN_PACKAGE_VERSION : packageVersions.mUpdateAppVersion; in writePackageStatusLocked() 332 ? UNKNOWN_PACKAGE_VERSION : packageVersions.mDataAppVersion; in writePackageStatusLocked() 349 public void forceCheckStateForTests(int checkStatus, PackageVersions packageVersions) in forceCheckStateForTests() argument 354 writePackageStatusLocked(checkStatus, initialOptimisticLockId, packageVersions); in forceCheckStateForTests()
|
D | CheckToken.java | 36 CheckToken(int optimisticLockId, PackageVersions packageVersions) { in CheckToken() argument 39 if (packageVersions == null) { in CheckToken() 42 this.mPackageVersions = packageVersions; in CheckToken()
|