Home | History | Annotate | Download | only in content

Lines Matching defs:syncResult

49 import android.content.SyncResult;
1284 SyncResult syncResult) {
1288 msg.obj = new SyncFinishedOrCancelledMessagePayload(syncContext, syncResult);
1344 public final SyncResult syncResult;
1347 SyncResult syncResult) {
1349 this.syncResult = syncResult;
1722 private void maybeRescheduleSync(SyncResult syncResult, SyncOperation operation) {
1725 Log.d(TAG, "encountered error(s) during the sync: " + syncResult + ", " + operation);
1736 && !syncResult.syncAlreadyInProgress) {
1745 && !syncResult.syncAlreadyInProgress) {
1753 } else if (syncResult.tooManyRetries) {
1760 } else if (syncResult.madeSomeProgress()) {
1767 } else if (syncResult.syncAlreadyInProgress) {
1773 } else if (syncResult.hasSoftError()) {
1907 public void onFinished(SyncResult result) {
3075 runSyncFinishedOrCanceledH(payload.syncResult,
3120 SyncResult syncResult = new SyncResult();
3121 syncResult.stats.numIoExceptions++;
3125 runSyncFinishedOrCanceledH(syncResult, currentSyncContext);
3691 private void runSyncFinishedOrCanceledH(SyncResult syncResult,
3707 mLogger.log("runSyncFinishedOrCanceledH() op=", syncOperation, " result=", syncResult);
3709 if (syncResult != null) {
3712 + syncOperation + ", result " + syncResult);
3725 if (!syncResult.hasError()) {
3727 // TODO: set these correctly when the SyncResult is extended to include it
3739 Log.w(TAG, "failed sync operation " + syncOperation + ", " + syncResult);
3749 // reschedule the sync if so indicated by the syncResult
3750 maybeRescheduleSync(syncResult, syncOperation);
3757 syncResultToErrorNumber(syncResult));
3758 // TODO: set these correctly when the SyncResult is extended to include it
3762 setDelayUntilTime(syncOperation.target, syncResult.delayUntil);
3794 if (syncResult != null && syncResult.tooManyDeletions) {
3796 info.provider, syncResult.stats.numDeletes,
3804 if (syncResult != null && syncResult.fullSyncRequested) {
3831 * Convert the error-containing SyncResult into the Sync.History error number. Since
3832 * the SyncResult may indicate multiple errors at once, this method just returns the
3834 * @param syncResult the SyncResult from which to read
3835 * @return the most "serious" error set in the SyncResult
3836 * @throws IllegalStateException if the SyncResult does not indicate any errors.
3837 * If SyncResult.error() is true then it is safe to call this.
3839 private int syncResultToErrorNumber(SyncResult syncResult) {
3840 if (syncResult.syncAlreadyInProgress)
3842 if (syncResult.stats.numAuthExceptions > 0)
3844 if (syncResult.stats.numIoExceptions > 0)
3846 if (syncResult.stats.numParseExceptions > 0)
3848 if (syncResult.stats.numConflictDetectedExceptions > 0)
3850 if (syncResult.tooManyDeletions)
3852 if (syncResult.tooManyRetries)
3854 if (syncResult.databaseError)
3856 throw new IllegalStateException("we are not in an error state, " + syncResult);