Home
last modified time | relevance | path

Searched refs:CheckToken (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/
DCheckTokenTest.java36 CheckToken originalToken = new CheckToken(1 /* optimisticLockId */, packageVersions); in toByteArray()
37 assertEquals(originalToken, CheckToken.fromByteArray(originalToken.toByteArray())); in toByteArray()
44 CheckToken token = new CheckToken(1, packageVersions); in fromByteArray()
50 CheckToken.fromByteArray(shortTokenBytes); in fromByteArray()
63 CheckToken baseline = new CheckToken(1, packageVersions1); in equals()
66 CheckToken deepEqual = new CheckToken(1, packageVersions1); in equals()
69 CheckToken differentOptimisticLockId = new CheckToken(2, packageVersions1); in equals()
72 CheckToken differentPackageVersions = new CheckToken(1, packageVersions2); in equals()
DPackageStatusStorageTest.java83 CheckToken token1 = mPackageStatusStorage.generateCheckToken(VALID_PACKAGE_VERSIONS); in resetCheckState()
94 CheckToken token2 = mPackageStatusStorage.generateCheckToken(VALID_PACKAGE_VERSIONS); in resetCheckState()
105 CheckToken token3 = mPackageStatusStorage.generateCheckToken(VALID_PACKAGE_VERSIONS); in resetCheckState()
116 CheckToken token1 = mPackageStatusStorage.generateCheckToken(VALID_PACKAGE_VERSIONS); in generateCheckToken_missingFileBehavior()
134 CheckToken token1 = mPackageStatusStorage.generateCheckToken(VALID_PACKAGE_VERSIONS); in getPackageStatus_missingFileBehavior()
149 CheckToken token1 = mPackageStatusStorage.generateCheckToken(VALID_PACKAGE_VERSIONS); in markChecked_missingFileBehavior()
162 CheckToken token2 = mPackageStatusStorage.generateCheckToken(VALID_PACKAGE_VERSIONS); in markChecked_missingFileBehavior()
172 CheckToken token1 = mPackageStatusStorage.generateCheckToken(packageVersions); in checkToken_tokenIsUnique()
178 CheckToken token2 = mPackageStatusStorage.generateCheckToken(packageVersions); in checkToken_tokenIsUnique()
188 CheckToken token = mPackageStatusStorage.generateCheckToken(packageVersions); in markChecked_checkSucceeded()
[all …]
DPackageTrackerTest.java402 CheckToken token = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_packageUpdate_responseWithToken()
489 CheckToken token1 = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_packageUpdate_twoChecksNoPackageChange_secondWhileFirstInProgress()
499 CheckToken token2 = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_packageUpdate_twoChecksNoPackageChange_secondWhileFirstInProgress()
535 CheckToken token = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_packageUpdate_twoChecksNoPackageChange_sequential()
584 CheckToken token1 = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_packageUpdate_afterFailure()
601 CheckToken token2 = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_packageUpdate_afterFailure()
644 CheckToken token1 = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_packageUpdate_twoChecksWithPackageChange_firstCheckInProcess()
657 CheckToken token2 = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_packageUpdate_twoChecksWithPackageChange_firstCheckInProcess()
706 CheckToken token1 = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_packageUpdate_twoChecksWithPackageChange_sequential()
724 CheckToken token2 = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_packageUpdate_twoChecksWithPackageChange_sequential()
[all …]
DRulesManagerServiceTest.java422 CheckToken token = createArbitraryToken(); in requestInstall_asyncSuccess()
497 CheckToken token = createArbitraryToken(); in requestInstall_asyncInstallFail()
602 CheckToken token = createArbitraryToken(); in requestUninstall_asyncSuccess()
636 CheckToken token = createArbitraryToken(); in requestUninstall_asyncNothingInstalled()
700 CheckToken token = createArbitraryToken(); in requestUninstall_asyncUninstallFail()
740 CheckToken token = createArbitraryToken(); in requestNothing_operationInProgressOk()
780 CheckToken token = createArbitraryToken(); in requestNothing()
911 CheckToken expectedCheckToken, boolean expectedSuccess) { in verifyPackageTrackerCalled()
988 private CheckToken createArbitraryToken() { in createArbitraryToken()
989 return new CheckToken(1, new PackageVersions(1, 1)); in createArbitraryToken()
/frameworks/base/services/core/java/com/android/server/timezone/
DCheckToken.java31 final class CheckToken { class
36 CheckToken(int optimisticLockId, PackageVersions packageVersions) { in CheckToken() method in CheckToken
57 static CheckToken fromByteArray(byte[] tokenBytes) throws IOException { in fromByteArray()
63 return new CheckToken(versionId, new PackageVersions(updateAppVersion, dataAppVersion)); in fromByteArray()
76 CheckToken checkToken = (CheckToken) o; in equals()
DRulesManagerService.java215 CheckToken checkToken = null; in requestInstall()
259 private final CheckToken mCheckToken;
262 InstallRunnable(ParcelFileDescriptor distroParcelFileDescriptor, CheckToken checkToken, in InstallRunnable()
336 CheckToken checkToken = null; in requestUninstall()
360 private final CheckToken mCheckToken;
363 UninstallRunnable(CheckToken checkToken, ICallback callback) { in UninstallRunnable()
428 CheckToken checkToken = null; in requestNothing()
562 private static CheckToken createCheckTokenOrThrow(byte[] checkTokenBytes) { in createCheckTokenOrThrow()
563 CheckToken checkToken; in createCheckTokenOrThrow()
565 checkToken = CheckToken.fromByteArray(checkTokenBytes); in createCheckTokenOrThrow()
DPackageTrackerIntentHelper.java29 void sendTriggerUpdateCheck(CheckToken checkToken); in sendTriggerUpdateCheck()
DPackageStatusStorage.java173 CheckToken generateCheckToken(PackageVersions currentInstalledVersions) { in generateCheckToken()
198 return new CheckToken(newOptimisticLockId, currentInstalledVersions); in generateCheckToken()
238 boolean markChecked(CheckToken checkToken, boolean succeeded) { in markChecked()
DPackageTrackerIntentHelperImpl.java87 public void sendTriggerUpdateCheck(CheckToken checkToken) { in sendTriggerUpdateCheck()
DPackageTracker.java315 CheckToken checkToken = in triggerUpdateIfNeeded()
342 protected synchronized void recordCheckResult(CheckToken checkToken, boolean success) { in recordCheckResult()