Home
last modified time | relevance | path

Searched refs:workName (Results 1 – 2 of 2) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/sync/
DSyncCompletionWaiterTest.java65 final String workName = "work-name"; in testWaitForSyncWhenSyncFutureNeverCompletes() local
68 when(mMockWorkManager.getWorkInfosForUniqueWork(eq(workName))) in testWaitForSyncWhenSyncFutureNeverCompletes()
75 workName, inputRetryCount)) in testWaitForSyncWhenSyncFutureNeverCompletes()
82 final String workName = "work-name"; in testWaitForSyncWhenWorkerFails() local
85 when(mMockWorkManager.getWorkInfosForUniqueWork(eq(workName))) in testWaitForSyncWhenWorkerFails()
92 workName, inputRetryCount)) in testWaitForSyncWhenWorkerFails()
98 final String workName = "testWorkName"; in testUniqueWorkStatusForPendingWork() local
105 when(mMockWorkManager.getWorkInfosForUniqueWork(workName)).thenReturn(future); in testUniqueWorkStatusForPendingWork()
107 assertThat(SyncCompletionWaiter.isUniqueWorkPending(mMockWorkManager, workName)).isTrue(); in testUniqueWorkStatusForPendingWork()
112 final String workName = "testWorkName"; in testUniqueWorkStatusForCompletedWork() local
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/sync/
DPickerSyncManager.java242 final String workName = in syncMediaProactively() local
252 mWorkManager.enqueueUniqueWork(workName, ExistingWorkPolicy.REPLACE, syncRequest); in syncMediaProactively()
272 private void syncMediaImmediately(@SyncSource int syncSource, @NonNull String workName) { in syncMediaImmediately() argument
283 .enqueueUniqueWork(workName, ExistingWorkPolicy.APPEND_OR_REPLACE, syncRequest); in syncMediaImmediately()