Home
last modified time | relevance | path

Searched refs:syncSource (Results 1 – 5 of 5) sorted by relevance

/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/sync/
DSyncTrackerRegistry.java120 @PickerSyncManager.SyncSource int syncSource, in trackNewSyncRequests()
122 if (syncSource == SYNC_LOCAL_ONLY || syncSource == SYNC_LOCAL_AND_CLOUD) { in trackNewSyncRequests()
125 if (syncSource == SYNC_CLOUD_ONLY || syncSource == SYNC_LOCAL_AND_CLOUD) { in trackNewSyncRequests()
135 @PickerSyncManager.SyncSource int syncSource, in trackNewAlbumMediaSyncRequests()
137 if (syncSource == SYNC_LOCAL_ONLY || syncSource == SYNC_LOCAL_AND_CLOUD) { in trackNewAlbumMediaSyncRequests()
140 if (syncSource == SYNC_CLOUD_ONLY || syncSource == SYNC_LOCAL_AND_CLOUD) { in trackNewAlbumMediaSyncRequests()
149 @PickerSyncManager.SyncSource int syncSource, in markSyncAsComplete()
151 if (syncSource == SYNC_LOCAL_ONLY || syncSource == SYNC_LOCAL_AND_CLOUD) { in markSyncAsComplete()
154 if (syncSource == SYNC_CLOUD_ONLY || syncSource == SYNC_LOCAL_AND_CLOUD) { in markSyncAsComplete()
163 @PickerSyncManager.SyncSource int syncSource, in markAlbumMediaSyncAsComplete()
[all …]
DImmediateAlbumSyncWorker.java73 final int syncSource = getInputData() in doWork() local
79 syncSource, albumId)); in doWork()
82 validateWorkInput(syncSource, albumId); in doWork()
88 if (syncSource == SYNC_LOCAL_ONLY) { in doWork()
98 syncSource, albumId)); in doWork()
103 syncSource, albumId), e); in doWork()
106 markAlbumMediaSyncAsComplete(syncSource, getId()); in doWork()
113 private void validateWorkInput(int syncSource, @Nullable String albumId) in validateWorkInput() argument
117 if (syncSource != SYNC_LOCAL_ONLY && syncSource != SYNC_CLOUD_ONLY) { in validateWorkInput()
118 throw new IllegalArgumentException("Invalid album sync source " + syncSource); in validateWorkInput()
[all …]
DImmediateSyncWorker.java70 final int syncSource = getInputData() in doWork() local
74 "Starting immediate picker sync from sync source: %s", syncSource)); in doWork()
80 if (syncSource == SYNC_LOCAL_AND_CLOUD || syncSource == SYNC_LOCAL_ONLY) { in doWork()
87 if (syncSource == SYNC_LOCAL_AND_CLOUD || syncSource == SYNC_CLOUD_ONLY) { in doWork()
97 "Could not complete immediate sync from sync source: %s", syncSource), e); in doWork()
100 markSyncAsComplete(syncSource, getId()); in doWork()
123 final int syncSource = getInputData() in onStopped() local
125 markSyncAsComplete(syncSource, getId()); in onStopped()
DProactiveSyncWorker.java70 final int syncSource = in doWork() local
78 String.format("Starting proactive picker sync from sync source: %s", syncSource)); in doWork()
81 if (syncSource == SYNC_LOCAL_AND_CLOUD || syncSource == SYNC_LOCAL_ONLY) { in doWork()
93 if (syncSource == SYNC_LOCAL_AND_CLOUD || syncSource == SYNC_CLOUD_ONLY) { in doWork()
107 Log.e(TAG, "Could not complete proactive sync for sync source: " + syncSource, e); in doWork()
110 markSyncAsComplete(syncSource, getId()); in doWork()
134 final int syncSource = getInputData() in onStopped() local
136 markSyncAsComplete(syncSource, getId()); in onStopped()
DPickerSyncManager.java241 final int syncSource = localOnly ? SYNC_LOCAL_ONLY : SYNC_LOCAL_AND_CLOUD; in syncMediaProactively() local
245 final Data inputData = new Data(Map.of(SYNC_WORKER_INPUT_SYNC_SOURCE, syncSource)); in syncMediaProactively()
272 private void syncMediaImmediately(@SyncSource int syncSource, @NonNull String workName) { in syncMediaImmediately() argument
273 final Data inputData = new Data(Map.of(SYNC_WORKER_INPUT_SYNC_SOURCE, syncSource)); in syncMediaImmediately()
278 trackNewSyncRequests(syncSource, syncRequest.getId()); in syncMediaImmediately()
289 markSyncAsComplete(syncSource, syncRequest.getId()); in syncMediaImmediately()
313 @NonNull String albumId, @SyncSource int syncSource, String authority) { in syncAlbumMediaForProviderImmediately() argument
318 SYNC_WORKER_INPUT_SYNC_SOURCE, syncSource, in syncAlbumMediaForProviderImmediately()
327 trackNewAlbumMediaSyncRequests(syncSource, resetRequest.getId()); in syncAlbumMediaForProviderImmediately()
328 trackNewAlbumMediaSyncRequests(syncSource, syncRequest.getId()); in syncAlbumMediaForProviderImmediately()
[all …]