Home
last modified time | relevance | path

Searched refs:SYNC_LOCAL_ONLY (Results 1 – 8 of 8) sorted by relevance

/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/sync/
DSyncTrackerRegistry.java21 import static com.android.providers.media.photopicker.sync.PickerSyncManager.SYNC_LOCAL_ONLY;
122 if (syncSource == SYNC_LOCAL_ONLY || syncSource == SYNC_LOCAL_AND_CLOUD) { in trackNewSyncRequests()
137 if (syncSource == SYNC_LOCAL_ONLY || syncSource == SYNC_LOCAL_AND_CLOUD) { in trackNewAlbumMediaSyncRequests()
151 if (syncSource == SYNC_LOCAL_ONLY || syncSource == SYNC_LOCAL_AND_CLOUD) { in markSyncAsComplete()
165 if (syncSource == SYNC_LOCAL_ONLY || syncSource == SYNC_LOCAL_AND_CLOUD) { in markAlbumMediaSyncAsComplete()
DImmediateAlbumSyncWorker.java21 import static com.android.providers.media.photopicker.sync.PickerSyncManager.SYNC_LOCAL_ONLY;
88 if (syncSource == SYNC_LOCAL_ONLY) { in doWork()
117 if (syncSource != SYNC_LOCAL_ONLY && syncSource != SYNC_CLOUD_ONLY) { in validateWorkInput()
144 .getInt(SYNC_WORKER_INPUT_SYNC_SOURCE, /* defaultValue */ SYNC_LOCAL_ONLY); in onStopped()
DPickerSyncManager.java67 public static final int SYNC_LOCAL_ONLY = 1; field in PickerSyncManager
71 @IntDef(value = { SYNC_LOCAL_ONLY, SYNC_CLOUD_ONLY, SYNC_LOCAL_AND_CLOUD })
241 final int syncSource = localOnly ? SYNC_LOCAL_ONLY : SYNC_LOCAL_AND_CLOUD; in syncMediaProactively()
263 syncMediaImmediately(PickerSyncManager.SYNC_LOCAL_ONLY, IMMEDIATE_LOCAL_SYNC_WORK_NAME); in syncMediaImmediately()
404 ? SYNC_LOCAL_ONLY in getSyncSource()
DImmediateSyncWorker.java22 import static com.android.providers.media.photopicker.sync.PickerSyncManager.SYNC_LOCAL_ONLY;
71 .getInt(SYNC_WORKER_INPUT_SYNC_SOURCE, /* defaultValue */ SYNC_LOCAL_ONLY); in doWork()
80 if (syncSource == SYNC_LOCAL_AND_CLOUD || syncSource == SYNC_LOCAL_ONLY) { in doWork()
DProactiveSyncWorker.java21 import static com.android.providers.media.photopicker.sync.PickerSyncManager.SYNC_LOCAL_ONLY;
81 if (syncSource == SYNC_LOCAL_AND_CLOUD || syncSource == SYNC_LOCAL_ONLY) { in doWork()
DMediaResetWorker.java20 import static com.android.providers.media.photopicker.sync.PickerSyncManager.SYNC_LOCAL_ONLY;
120 if (mSyncSource == SYNC_LOCAL_ONLY) { in doWork()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/sync/
DSyncWorkerTestUtils.java21 import static com.android.providers.media.photopicker.sync.PickerSyncManager.SYNC_LOCAL_ONLY;
55 return new Data(Map.of(SYNC_WORKER_INPUT_SYNC_SOURCE, SYNC_LOCAL_ONLY)); in getLocalSyncInputData()
61 return new Data(Map.of(SYNC_WORKER_INPUT_SYNC_SOURCE, SYNC_LOCAL_ONLY, in getLocalAlbumSyncInputData()
78 SYNC_WORKER_INPUT_SYNC_SOURCE, isLocal ? SYNC_LOCAL_ONLY : SYNC_CLOUD_ONLY, in getAlbumResetInputData()
DPickerSyncManagerTest.java21 import static com.android.providers.media.photopicker.sync.PickerSyncManager.SYNC_LOCAL_ONLY;
227 .isEqualTo(SYNC_LOCAL_ONLY); in testAdhocProactiveSyncLocalOnly()
276 .isEqualTo(SYNC_LOCAL_ONLY); in testImmediateLocalSync()
302 .isEqualTo(SYNC_LOCAL_ONLY); in testImmediateCloudSync()
341 .isEqualTo(SYNC_LOCAL_ONLY); in testImmediateLocalAlbumSync()
352 .isEqualTo(SYNC_LOCAL_ONLY); in testImmediateLocalAlbumSync()