Searched refs:workName (Results 1 – 2 of 2) sorted by relevance
65 final String workName = "work-name"; in testWaitForSyncWhenSyncFutureNeverCompletes() local68 when(mMockWorkManager.getWorkInfosForUniqueWork(eq(workName))) in testWaitForSyncWhenSyncFutureNeverCompletes()75 workName, inputRetryCount)) in testWaitForSyncWhenSyncFutureNeverCompletes()82 final String workName = "work-name"; in testWaitForSyncWhenWorkerFails() local85 when(mMockWorkManager.getWorkInfosForUniqueWork(eq(workName))) in testWaitForSyncWhenWorkerFails()92 workName, inputRetryCount)) in testWaitForSyncWhenWorkerFails()98 final String workName = "testWorkName"; in testUniqueWorkStatusForPendingWork() local105 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 …]
242 final String workName = in syncMediaProactively() local252 mWorkManager.enqueueUniqueWork(workName, ExistingWorkPolicy.REPLACE, syncRequest); in syncMediaProactively()272 private void syncMediaImmediately(@SyncSource int syncSource, @NonNull String workName) { in syncMediaImmediately() argument283 .enqueueUniqueWork(workName, ExistingWorkPolicy.APPEND_OR_REPLACE, syncRequest); in syncMediaImmediately()