Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncOperationTest.java63 SyncOperation op1 = new SyncOperation(account1, 0, in testToKey()
65 SyncOperation.REASON_PERIODIC, in testToKey()
75 SyncOperation op2 = new SyncOperation(account1, 0, in testToKey()
77 SyncOperation.REASON_PERIODIC, in testToKey()
87 SyncOperation op3 = new SyncOperation(account1, 0, in testToKey()
89 SyncOperation.REASON_PERIODIC, in testToKey()
99 SyncOperation op4 = new SyncOperation(account2, 0, in testToKey()
101 SyncOperation.REASON_PERIODIC, in testToKey()
111 SyncOperation op5 = new SyncOperation(account1, 0, in testToKey()
113 SyncOperation.REASON_PERIODIC, in testToKey()
[all …]
DSyncStorageEngineTest.java99 SyncOperation op = new SyncOperation(account, 0, in testPurgeActiveSync()
100 SyncOperation.REASON_PERIODIC, in testPurgeActiveSync()
114 SyncOperation sop = new SyncOperation(account1, in testAppendPending()
116 SyncOperation.REASON_PERIODIC, in testAppendPending()
142 SyncOperation sop = new SyncOperation(account1, in testWritePendingOperationsLocked()
144 SyncOperation.REASON_IS_SYNCABLE, in testWritePendingOperationsLocked()
148 SyncOperation sop1 = new SyncOperation(account2, in testWritePendingOperationsLocked()
150 SyncOperation.REASON_PERIODIC, in testWritePendingOperationsLocked()
154 SyncOperation deleted = new SyncOperation(account2, in testWritePendingOperationsLocked()
156 SyncOperation.REASON_SYNC_AUTO, in testWritePendingOperationsLocked()
/frameworks/base/services/core/java/com/android/server/content/
DSyncQueue.java51 private final HashMap<String, SyncOperation> mOperationsMap = Maps.newHashMap();
66 SyncOperation operationToAdd; in addPendingOperations()
76 operationToAdd = new SyncOperation( in addPendingOperations()
95 operationToAdd = new SyncOperation( in addPendingOperations()
108 public boolean add(SyncOperation operation) { in add()
117 private boolean add(SyncOperation operation, in add()
125 final SyncOperation existingOperation = mOperationsMap.get(operationKey); in add()
158 ArrayList<SyncOperation> opsToRemove = new ArrayList<SyncOperation>(); in removeUserLocked()
159 for (SyncOperation op : mOperationsMap.values()) { in removeUserLocked()
164 for (SyncOperation op : opsToRemove) { in removeUserLocked()
[all …]
DSyncOperation.java33 public class SyncOperation implements Comparable { class
96 public SyncOperation(Account account, int userId, int reason, int source, String provider, in SyncOperation() method in SyncOperation
104 public SyncOperation(ComponentName service, int userId, int reason, int source, in SyncOperation() method in SyncOperation
111 private SyncOperation(SyncStorageEngine.EndPoint info, int reason, int source, Bundle extras, in SyncOperation() method in SyncOperation
144 public SyncOperation(SyncOperation other, long newRunTimeFromNow) { in SyncOperation() method in SyncOperation
153 public boolean matchesAuthority(SyncOperation other) { in matchesAuthority()
185 public boolean isConflict(SyncOperation toRun) { in isConflict()
360 SyncOperation other = (SyncOperation) o; in compareTo()
DSyncManager.java287 scheduleSync(null, UserHandle.USER_ALL, SyncOperation.REASON_ACCOUNTS_UPDATED, null,
455 SyncOperation.REASON_SERVICE_CHANGED, in SyncManager()
692 new SyncOperation(cname, userId, uid, source, extras, in scheduleSync()
876 new SyncOperation(account.account, account.userId, reason, source, in scheduleSync()
892 new SyncOperation(account.account, account.userId, reason, source, in scheduleSync()
1023 private void clearBackoffSetting(SyncOperation op) { in clearBackoffSetting()
1032 private void increaseBackoffSetting(SyncOperation op) { in increaseBackoffSetting()
1078 private void setDelayUntilTime(SyncOperation op, long delayUntilSeconds) { in setDelayUntilTime()
1108 public void scheduleSyncOperation(SyncOperation syncOperation) { in scheduleSyncOperation()
1156 void maybeRescheduleSync(SyncResult syncResult, SyncOperation operation) { in maybeRescheduleSync()
[all …]
DSyncStorageEngine.java700 requestSync(account, userId, SyncOperation.REASON_SYNC_AUTO, providerName, in setSyncAutomatically()
782 requestSync(aInfo, SyncOperation.REASON_IS_SYNCABLE, new Bundle()); in setSyncableStateForEndPoint()
1064 requestSync(null, userId, SyncOperation.REASON_MASTER_SYNC_AUTO, null, in setMasterSyncAutomatically()
1101 public PendingOperation insertIntoPending(SyncOperation op) { in insertIntoPending()
1309 public long insertStartSyncEvent(SyncOperation op, long now) { in insertStartSyncEvent()