Home
last modified time | relevance | path

Searched refs:PackageStatus (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/
DPackageStatusTest.java37 PackageStatus baseline = in equals()
38 new PackageStatus(PackageStatus.CHECK_STARTED, packageVersions1); in equals()
41 PackageStatus deepEqual = in equals()
42 new PackageStatus(PackageStatus.CHECK_STARTED, packageVersions1); in equals()
45 PackageStatus differentStatus = in equals()
46 new PackageStatus(PackageStatus.CHECK_COMPLETED_SUCCESS, packageVersions1); in equals()
49 PackageStatus differentPackageVersions = in equals()
50 new PackageStatus(PackageStatus.CHECK_STARTED, packageVersions2); in equals()
DPackageStatusStorageTest.java169 PackageStatus expectedPackageStatus = in checkToken_tokenIsUnique()
170 new PackageStatus(PackageStatus.CHECK_STARTED, packageVersions); in checkToken_tokenIsUnique()
175 PackageStatus actualPackageStatus1 = mPackageStatusStorage.getPackageStatus(); in checkToken_tokenIsUnique()
192 PackageStatus expectedPackageStatus = in markChecked_checkSucceeded()
193 new PackageStatus(PackageStatus.CHECK_COMPLETED_SUCCESS, packageVersions); in markChecked_checkSucceeded()
205 PackageStatus expectedPackageStatus = in markChecked_checkFailed()
206 new PackageStatus(PackageStatus.CHECK_COMPLETED_FAILURE, packageVersions); in markChecked_checkFailed()
216 PackageStatus packageStatusBeforeChecked = mPackageStatusStorage.getPackageStatus(); in markChecked_optimisticLocking_multipleToken()
226 PackageStatus expectedPackageStatus = in markChecked_optimisticLocking_multipleToken()
227 new PackageStatus(PackageStatus.CHECK_COMPLETED_SUCCESS, packageVersions); in markChecked_optimisticLocking_multipleToken()
[all …]
DPackageTrackerTest.java667 checkPackageStorageStatus(PackageStatus.CHECK_STARTED, packageVersions2); in trackingEnabled_packageUpdate_twoChecksWithPackageChange_firstCheckInProcess()
776 checkPackageStorageStatus(PackageStatus.CHECK_COMPLETED_SUCCESS, packageVersions1); in trackingEnabled_packageUpdate_sameTokenReplayFails()
828 PackageStatus.CHECK_COMPLETED_SUCCESS, packageVersions); in trackingEnabled_reliabilityTrigger_afterRebootNoTriggerNeeded()
837 checkPackageStorageStatus(PackageStatus.CHECK_COMPLETED_SUCCESS, packageVersions); in trackingEnabled_reliabilityTrigger_afterRebootNoTriggerNeeded()
868 PackageStatus.CHECK_COMPLETED_FAILURE, oldPackageVersions); in trackingEnabled_reliabilityTrigger_afterRebootTriggerNeededBecausePreviousFailed()
877 checkPackageStorageStatus(PackageStatus.CHECK_COMPLETED_FAILURE, oldPackageVersions); in trackingEnabled_reliabilityTrigger_afterRebootTriggerNeededBecausePreviousFailed()
914 PackageStatus.CHECK_COMPLETED_FAILURE, oldPackageVersions); in trackingEnabled_reliabilityTrigger_repeatedFailures()
923 checkPackageStorageStatus(PackageStatus.CHECK_COMPLETED_FAILURE, oldPackageVersions); in trackingEnabled_reliabilityTrigger_repeatedFailures()
944 checkPackageStorageStatus(PackageStatus.CHECK_COMPLETED_FAILURE, in trackingEnabled_reliabilityTrigger_repeatedFailures()
973 PackageStatus.CHECK_COMPLETED_FAILURE, oldPackageVersions); in trackingEnabled_reliabilityTrigger_failureCountIsReset()
[all …]
/frameworks/base/services/core/java/com/android/server/timezone/
DPackageStatus.java28 final class PackageStatus { class
47 PackageStatus(@CheckStatus int checkStatus, PackageVersions versions) { in PackageStatus() method in PackageStatus
67 PackageStatus that = (PackageStatus) o; in equals()
DPackageStatusStorage.java38 import static com.android.server.timezone.PackageStatus.CHECK_COMPLETED_FAILURE;
39 import static com.android.server.timezone.PackageStatus.CHECK_COMPLETED_SUCCESS;
40 import static com.android.server.timezone.PackageStatus.CHECK_STARTED;
108 PackageStatus getPackageStatus() { in getPackageStatus()
128 private PackageStatus getPackageStatusLocked() throws ParseException { in getPackageStatusLocked()
137 return new PackageStatus(checkStatus, in getPackageStatusLocked()
DPackageTracker.java290 PackageStatus packageStatus = mPackageStatusStorage.getPackageStatus(); in triggerUpdateIfNeeded()
305 if (packageStatus.mCheckStatus == PackageStatus.CHECK_COMPLETED_SUCCESS) { in triggerUpdateIfNeeded()