Home
last modified time | relevance | path

Searched refs:checkToken (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/android/app/timezone/
DRulesManager.java153 ParcelFileDescriptor distroFileDescriptor, byte[] checkToken, Callback callback) in requestInstall() argument
159 return mIRulesManager.requestInstall(distroFileDescriptor, checkToken, iCallback); in requestInstall()
175 public int requestUninstall(byte[] checkToken, Callback callback) { in requestUninstall() argument
179 return mIRulesManager.requestUninstall(checkToken, iCallback); in requestUninstall()
221 public void requestNothing(byte[] checkToken, boolean succeeded) { in requestNothing() argument
223 logDebug("mIRulesManager.requestNothing() with token=" + Arrays.toString(checkToken)); in requestNothing()
224 mIRulesManager.requestNothing(checkToken, succeeded); in requestNothing()
DIRulesManager.aidl54 int requestInstall(in ParcelFileDescriptor distroFileDescriptor, in byte[] checkToken, in requestInstall() argument
67 int requestUninstall(in byte[] checkToken, ICallback callback); in requestUninstall() argument
/frameworks/base/services/core/java/com/android/server/timezone/
DRulesManagerService.java215 CheckToken checkToken = null; in requestInstall() local
217 checkToken = createCheckTokenOrThrow(checkTokenBytes); in requestInstall()
219 EventLogTags.writeTimezoneRequestInstall(toStringOrNull(checkToken)); in requestInstall()
235 new InstallRunnable(distroParcelFileDescriptor, checkToken, callback)); in requestInstall()
262 InstallRunnable(ParcelFileDescriptor distroParcelFileDescriptor, CheckToken checkToken, in InstallRunnable() argument
265 mCheckToken = checkToken; in InstallRunnable()
336 CheckToken checkToken = null; in requestUninstall() local
338 checkToken = createCheckTokenOrThrow(checkTokenBytes); in requestUninstall()
340 EventLogTags.writeTimezoneRequestUninstall(toStringOrNull(checkToken)); in requestUninstall()
352 mExecutor.execute(new UninstallRunnable(checkToken, callback)); in requestUninstall()
[all …]
DPackageTracker.java315 CheckToken checkToken = in triggerUpdateIfNeeded() local
317 if (checkToken == null) { in triggerUpdateIfNeeded()
326 mIntentHelper.sendTriggerUpdateCheck(checkToken); in triggerUpdateIfNeeded()
342 protected synchronized void recordCheckResult(CheckToken checkToken, boolean success) { in recordCheckResult() argument
343 Slog.i(TAG, "recordOperationResult: checkToken=" + checkToken + " success=" + success); in recordCheckResult()
354 if (checkToken == null) { in recordCheckResult()
363 Slog.w(TAG, "recordCheckResult: Tracking is disabled and a token " + checkToken in recordCheckResult()
370 if (checkToken == null) { in recordCheckResult()
401 mPackageStatusStorage.markChecked(checkToken, success); in recordCheckResult()
420 Slog.i(TAG, "recordCheckResult: could not update token=" + checkToken in recordCheckResult()
DCheckToken.java76 CheckToken checkToken = (CheckToken) o; in equals() local
78 if (mOptimisticLockId != checkToken.mOptimisticLockId) { in equals()
81 return mPackageVersions.equals(checkToken.mPackageVersions); in equals()
DPackageTrackerIntentHelperImpl.java87 public void sendTriggerUpdateCheck(CheckToken checkToken) { in sendTriggerUpdateCheck() argument
89 mContext, mUpdaterAppPackageName, checkToken.toByteArray()); in sendTriggerUpdateCheck()
90 EventLogTags.writeTimezoneTriggerCheck(checkToken.toString()); in sendTriggerUpdateCheck()
DPackageTrackerIntentHelper.java29 void sendTriggerUpdateCheck(CheckToken checkToken); in sendTriggerUpdateCheck() argument
DPackageStatusStorage.java238 boolean markChecked(CheckToken checkToken, boolean succeeded) { in markChecked() argument
240 int optimisticLockId = checkToken.mOptimisticLockId; in markChecked()
245 newOptimisticLockId, status, checkToken.mPackageVersions); in markChecked()
/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/
DPackageTrackerTest.java886 CheckToken checkToken = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_reliabilityTrigger_afterRebootTriggerNeededBecausePreviousFailed() local
887 mPackageTracker.recordCheckResult(checkToken, true /* success */); in trackingEnabled_reliabilityTrigger_afterRebootTriggerNeededBecausePreviousFailed()
936 CheckToken checkToken = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_reliabilityTrigger_repeatedFailures() local
937 mPackageTracker.recordCheckResult(checkToken, false /* success */); in trackingEnabled_reliabilityTrigger_repeatedFailures()
996 CheckToken checkToken = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_reliabilityTrigger_failureCountIsReset() local
997 mPackageTracker.recordCheckResult(checkToken, false /* success */); in trackingEnabled_reliabilityTrigger_failureCountIsReset()
1021 CheckToken checkToken = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_reliabilityTrigger_failureCountIsReset() local
1022 mPackageTracker.recordCheckResult(checkToken, true /* success */); in trackingEnabled_reliabilityTrigger_failureCountIsReset()
1436 public void sendTriggerUpdateCheck(CheckToken checkToken) { in sendTriggerUpdateCheck() argument
1440 mLastToken = checkToken; in sendTriggerUpdateCheck()