Home
last modified time | relevance | path

Searched refs:syncTracker (Results 1 – 3 of 3) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/sync/
DSyncTrackerTests.java35 SyncTracker syncTracker = new SyncTracker(); in testCreateSyncFuture() local
36 syncTracker.createSyncFuture(PLACEHOLDER_UUID); in testCreateSyncFuture()
38 Collection<CompletableFuture<Object>> futures = syncTracker.pendingSyncFutures(); in testCreateSyncFuture()
44 SyncTracker syncTracker = new SyncTracker(); in testMarkSyncAsComplete() local
45 syncTracker.createSyncFuture(PLACEHOLDER_UUID); in testMarkSyncAsComplete()
46 syncTracker.markSyncCompleted(PLACEHOLDER_UUID); in testMarkSyncAsComplete()
48 Collection<CompletableFuture<Object>> futures = syncTracker.pendingSyncFutures(); in testMarkSyncAsComplete()
55 SyncTracker syncTracker = new SyncTracker(); in testCompleteOnTimeoutSyncFuture() local
56 syncTracker.createSyncFuture(PLACEHOLDER_UUID, 100L, TimeUnit.MILLISECONDS); in testCompleteOnTimeoutSyncFuture()
58 Collection<CompletableFuture<Object>> pendingSyncFutures = syncTracker.pendingSyncFutures(); in testCompleteOnTimeoutSyncFuture()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/sync/
DSyncCompletionWaiter.java43 @NonNull SyncTracker syncTracker, in waitForSync() argument
48 syncTracker.pendingSyncFutures().toArray(new CompletableFuture[0])); in waitForSync()
95 @NonNull SyncTracker syncTracker, in waitForSyncWithTimeout()
100 syncTracker.pendingSyncFutures().toArray(new CompletableFuture[0])); in waitForSyncWithTimeout()
DSyncTrackerRegistry.java45 public static void setLocalSyncTracker(SyncTracker syncTracker) { in setLocalSyncTracker() argument
46 sLocalSyncTracker = syncTracker; in setLocalSyncTracker()