Searched refs:SyncStorageEngine (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncQueue.java | 45 private final SyncStorageEngine mSyncStorageEngine; 53 public SyncQueue(PackageManager packageManager, SyncStorageEngine syncStorageEngine, in SyncQueue() 61 for (SyncStorageEngine.PendingOperation op : mSyncStorageEngine.getPendingOperations()) { in addPendingOperations() 62 final SyncStorageEngine.EndPoint info = op.target; in addPendingOperations() 118 SyncStorageEngine.PendingOperation pop) { in add() 199 public void onBackoffChanged(SyncStorageEngine.EndPoint target, long backoff) { in onBackoffChanged() 210 public void onDelayUntilTimeChanged(SyncStorageEngine.EndPoint target, long delayUntil) { in onDelayUntilTimeChanged() 229 public void remove(final SyncStorageEngine.EndPoint info, Bundle extras) { in remove() 234 final SyncStorageEngine.EndPoint opInfo = syncOperation.target; in remove()
|
D | SyncManager.java | 88 import com.android.server.content.SyncStorageEngine.AuthorityInfo; 89 import com.android.server.content.SyncStorageEngine.EndPoint; 90 import com.android.server.content.SyncStorageEngine.OnSyncRequestListener; 214 private SyncStorageEngine mSyncStorageEngine; 247 SyncStorageEngine.EndPoint.USER_ALL_PROVIDER_ALL_ACCOUNTS_ALL, 265 SyncStorageEngine.EndPoint.USER_ALL_PROVIDER_ALL_ACCOUNTS_ALL, 427 SyncStorageEngine.init(context); in SyncManager() 428 mSyncStorageEngine = SyncStorageEngine.getSingleton(); in SyncManager() 431 public void onSyncRequest(SyncStorageEngine.EndPoint info, int reason, Bundle extras) { in SyncManager() 592 public SyncStorageEngine getSyncStorageEngine() { in getSyncStorageEngine() [all …]
|
D | SyncOperation.java | 64 public final SyncStorageEngine.EndPoint target; 75 public SyncStorageEngine.PendingOperation pendingOperation; 99 this(new SyncStorageEngine.EndPoint(account, provider, userId), in SyncOperation() 107 this(new SyncStorageEngine.EndPoint(service, userId), reason, source, extras, in SyncOperation() 111 private SyncOperation(SyncStorageEngine.EndPoint info, int reason, int source, Bundle extras, in SyncOperation() 186 final SyncStorageEngine.EndPoint other = toRun.target; in isConflict() 223 sb.append(SyncStorageEngine.SOURCES[syncSource]) in dump() 288 public static String toKey(SyncStorageEngine.EndPoint info, Bundle extras) { in toKey()
|
D | ContentService.java | 400 SyncStorageEngine.EndPoint info; in syncAsUser() 401 info = new SyncStorageEngine.EndPoint( in syncAsUser() 465 SyncStorageEngine.EndPoint info; in cancelSyncAsUser() 467 info = new SyncStorageEngine.EndPoint(account, authority, userId); in cancelSyncAsUser() 469 info = new SyncStorageEngine.EndPoint(cname, userId); in cancelSyncAsUser() 486 SyncStorageEngine.EndPoint info; in cancelRequest() 490 info = new SyncStorageEngine.EndPoint(account, provider, userId); in cancelRequest() 628 long defaultFlex = SyncStorageEngine.calculateDefaultFlexTime(pollFrequency); in addPeriodicSync() 632 SyncStorageEngine.EndPoint info = in addPeriodicSync() 633 new SyncStorageEngine.EndPoint(account, authority, userId); in addPeriodicSync() [all …]
|
D | SyncStorageEngine.java | 76 public class SyncStorageEngine extends Handler { class 467 private static volatile SyncStorageEngine sSyncStorageEngine = null; 506 private SyncStorageEngine(Context context, File dataDir) { in SyncStorageEngine() method in SyncStorageEngine 537 public static SyncStorageEngine newTestInstance(Context context) { in newTestInstance() 538 return new SyncStorageEngine(context, context.getFilesDir()); in newTestInstance() 548 sSyncStorageEngine = new SyncStorageEngine(context, dataDir); in init() 551 public static SyncStorageEngine getSingleton() { in getSingleton()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
D | SyncStorageEngineTest.java | 36 import com.android.server.content.SyncStorageEngine.EndPoint; 44 import com.android.server.content.SyncStorageEngine.EndPoint; 62 SyncStorageEngine engine; 79 engine = SyncStorageEngine.newTestInstance( in setUp() 96 SyncStorageEngine engine = SyncStorageEngine.newTestInstance( in testPurgeActiveSync() 101 SyncStorageEngine.SOURCE_LOCAL, in testPurgeActiveSync() 105 long time1 = time0 + SyncStorageEngine.MILLIS_IN_4WEEKS * 2; in testPurgeActiveSync() 117 SyncStorageEngine.SOURCE_LOCAL, authority1, Bundle.EMPTY, in testAppendPending() 126 List<SyncStorageEngine.PendingOperation> pops = engine.getPendingOperations(); in testAppendPending() 127 SyncStorageEngine.PendingOperation popRetrieved = pops.get(0); in testAppendPending() [all …]
|