Lines Matching refs:status

319      * This file contains the current sync status.  We would like to retain
359 mStatusFile = new AtomicFile(new File(syncDir, "status.bin"));
715 // the periodic syncs status to correspond to it
718 SyncStatusInfo status = getOrCreateSyncStatusLocked(authority.ident);
719 status.setPeriodicSyncTime(authority.periodicSyncs.size() - 1, 0);
723 SyncStatusInfo status = mSyncStatus.get(authority.ident);
733 // remove the corresponding entry from the status
734 if (status != null) {
735 status.removePeriodicSyncTime(i);
866 SyncStatusInfo status = getOrCreateSyncStatusLocked(authority.ident);
867 status.pending = true;
911 SyncStatusInfo status = getOrCreateSyncStatusLocked(authority.ident);
912 status.pending = false;
1133 SyncStatusInfo status = getOrCreateSyncStatusLocked(item.authorityId);
1135 status.numSyncs++;
1136 status.totalElapsedTime += elapsedTime;
1139 status.numSourceLocal++;
1142 status.numSourcePoll++;
1145 status.numSourceUser++;
1148 status.numSourceServer++;
1151 status.numSourcePeriodic++;
1171 if (status.lastSuccessTime == 0 || status.lastFailureTime != 0) {
1174 status.lastSuccessTime = lastSyncTime;
1175 status.lastSuccessSource = item.source;
1176 status.lastFailureTime = 0;
1177 status.lastFailureSource = -1;
1178 status.lastFailureMesg = null;
1179 status.initialFailureTime = 0;
1183 if (status.lastFailureTime == 0) {
1186 status.lastFailureTime = lastSyncTime;
1187 status.lastFailureSource = item.source;
1188 status.lastFailureMesg = resultMessage;
1189 if (status.initialFailureTime == 0) {
1190 status.initialFailureTime = lastSyncTime;
1229 * Return an array of the current sync status for all authorities. Note
1230 * that the objects inside the array are the real, live status objects,
1262 * Returns the status that matches the authority and account.
1290 * Return true if the pending status is true of any matching authorities.
1316 * Return an array of the current sync status for all authorities. Note
1317 * that the objects inside the array are the real, live status objects,
1333 * that the objects inside the array are the real, live status objects,
1441 SyncStatusInfo status = mSyncStatus.get(authorityId);
1442 if (status == null) {
1443 status = new SyncStatusInfo(authorityId);
1444 mSyncStatus.put(authorityId, status);
1446 return status;
1878 // Copy in all of the status information, as well as accounts.
1881 qb.setTables("stats, status");
1883 map.put("_id", "status._id as _id");
1902 qb.appendWhere("stats._id = status.stats_id");
1986 * Read all sync status back in to the initial engine state.
1998 SyncStatusInfo status = new SyncStatusInfo(in);
1999 if (mAuthorities.indexOfKey(status.authorityId) >= 0) {
2000 status.pending = false;
2001 if (DEBUG_FILE) Log.v(TAG, "Adding status for id "
2002 + status.authorityId);
2003 mSyncStatus.put(status.authorityId, status);
2007 Log.w(TAG, "Unknown status token: " + token);
2012 Log.i(TAG, "No initial status");
2017 * Write all sync status to the sync status file.
2032 SyncStatusInfo status = mSyncStatus.valueAt(i);
2034 status.writeToParcel(out, 0);
2042 Log.w(TAG, "Error writing status", e1);
2265 * Write all sync statistics to the sync status file.